Home
last modified time | relevance | path

Searched full:log (Results 1 – 25 of 1764) sorted by relevance

12345678910>>...71

/Linux-v6.6/kernel/bpf/
Dlog.c13 static bool bpf_verifier_log_attr_valid(const struct bpf_verifier_log *log) in bpf_verifier_log_attr_valid() argument
16 if (!!log->ubuf != !!log->len_total) in bpf_verifier_log_attr_valid()
18 /* log buf without log_level is meaningless */ in bpf_verifier_log_attr_valid()
19 if (log->ubuf && log->level == 0) in bpf_verifier_log_attr_valid()
21 if (log->level & ~BPF_LOG_MASK) in bpf_verifier_log_attr_valid()
23 if (log->len_total > UINT_MAX >> 2) in bpf_verifier_log_attr_valid()
28 int bpf_vlog_init(struct bpf_verifier_log *log, u32 log_level, in bpf_vlog_init() argument
31 log->level = log_level; in bpf_vlog_init()
32 log->ubuf = log_buf; in bpf_vlog_init()
33 log->len_total = log_size; in bpf_vlog_init()
[all …]
/Linux-v6.6/fs/jfs/
Djfs_logmgr.c8 * jfs_logmgr.c: log manager
15 * log buffer manager:
16 * special purpose buffer manager supporting log i/o requirements.
17 * per log serial pageout of logpage
25 * log page during the pageout of previous/current log page(s) are
29 * transactions are committed asynchronously when the log page
33 * . a per log lock serialize log write.
34 * . a per log lock serialize group commit.
35 * . a per log lock serialize log open/close;
37 * TBD log integrity:
[all …]
Djfs_logmgr.h15 * log manager configuration parameters
18 /* log page size */
22 #define LOGPAGES 16 /* Log pages per mounted file system */
25 * log logical volume
27 * a log is used to make the commit operation on journalled
29 * a log is implemented with a logical volume.
30 * there is one log per logical volume group.
32 * block 0 of the log logical volume is not used (ipl etc).
33 * block 1 contains a log "superblock" and is used by logFormat(),
35 * of the log but is not otherwise used during normal processing.
[all …]
/Linux-v6.6/drivers/gpu/drm/i915/gt/uc/
Dintel_guc_log.c31 static void guc_log_copy_debuglogs_for_relay(struct intel_guc_log *log);
40 static void _guc_log_init_sizes(struct intel_guc_log *log) in _guc_log_init_sizes() argument
42 struct intel_guc *guc = log_to_guc(log); in _guc_log_init_sizes()
66 log->sizes[i].bytes = sections[i].default_val; in _guc_log_init_sizes()
69 if (log->sizes[GUC_LOG_SECTIONS_DEBUG].bytes >= SZ_1M && in _guc_log_init_sizes()
71 log->sizes[GUC_LOG_SECTIONS_CRASH].bytes = SZ_1M; in _guc_log_init_sizes()
76 if ((log->sizes[i].bytes % SZ_1M) == 0) { in _guc_log_init_sizes()
77 log->sizes[i].units = SZ_1M; in _guc_log_init_sizes()
78 log->sizes[i].flag = sections[i].flag; in _guc_log_init_sizes()
80 log->sizes[i].units = SZ_4K; in _guc_log_init_sizes()
[all …]
Dintel_guc_log_debugfs.c31 static u32 guc_log_dump_size(struct intel_guc_log *log) in guc_log_dump_size() argument
33 struct intel_guc *guc = log_to_guc(log); in guc_log_dump_size()
38 if (!log->vma) in guc_log_dump_size()
41 return obj_to_guc_log_dump_size(log->vma->obj); in guc_log_dump_size()
59 static u32 guc_load_err_dump_size(struct intel_guc_log *log) in guc_load_err_dump_size() argument
61 struct intel_guc *guc = log_to_guc(log); in guc_load_err_dump_size()
84 struct intel_guc_log *log = data; in guc_log_level_get() local
86 if (!log->vma) in guc_log_level_get()
89 *val = intel_guc_log_get_level(log); in guc_log_level_get()
96 struct intel_guc_log *log = data; in guc_log_level_set() local
[all …]
Dintel_guc_log.h19 * While we're using plain log level in i915, GuC controls are much more...
21 * log enabling, and separate bit for default logging - which "conveniently"
76 void intel_guc_log_init_early(struct intel_guc_log *log);
77 bool intel_guc_check_log_buf_overflow(struct intel_guc_log *log, enum guc_log_buffer_type type,
79 unsigned int intel_guc_get_log_buffer_size(struct intel_guc_log *log,
81 size_t intel_guc_get_log_buffer_offset(struct intel_guc_log *log, enum guc_log_buffer_type type);
82 int intel_guc_log_create(struct intel_guc_log *log);
83 void intel_guc_log_destroy(struct intel_guc_log *log);
85 int intel_guc_log_set_level(struct intel_guc_log *log, u32 level);
86 bool intel_guc_log_relay_created(const struct intel_guc_log *log);
[all …]
/Linux-v6.6/fs/xfs/
Dxfs_log.c35 struct xlog *log,
39 struct xlog *log);
45 struct xlog *log);
48 struct xlog *log,
55 struct xlog *log,
59 struct xlog *log,
65 struct xlog *log);
68 struct xlog *log,
73 struct xlog *log,
83 struct xlog *log);
[all …]
Dxfs_log_recover.c51 * Verify the log-relative block number and length in basic blocks are valid for
52 * an operation involving the given XFS log buffer. Returns true if the fields
57 struct xlog *log, in xlog_verify_bno() argument
61 if (blk_no < 0 || blk_no >= log->l_logBBsize) in xlog_verify_bno()
63 if (bbcount <= 0 || (blk_no + bbcount) > log->l_logBBsize) in xlog_verify_bno()
69 * Allocate a buffer to hold log data. The buffer needs to be able to map to
70 * a range of nbblks basic blocks at any valid offset within the log.
74 struct xlog *log, in xlog_alloc_buffer() argument
78 * Pass log block 0 since we don't have an addr yet, buffer will be in xlog_alloc_buffer()
81 if (XFS_IS_CORRUPT(log->l_mp, !xlog_verify_bno(log, 0, nbblks))) { in xlog_alloc_buffer()
[all …]
Dxfs_log_priv.h34 * In core log state
37 XLOG_STATE_ACTIVE, /* Current IC log being written to */
39 XLOG_STATE_SYNCING, /* This IC log is syncing */
42 XLOG_STATE_DIRTY, /* Dirty IC log, not ready for ACTIVE status */
54 * In core log flags
65 * Log ticket flags
75 * log write such that no allocation transactions will be re-done during
77 * log write.
79 * These states are used to insert dummy log entries to cover
92 * in the log record header needs to point beyond the last possible
[all …]
Dxfs_log_cil.c35 struct xlog *log) in xlog_cil_ticket_alloc() argument
39 tic = xlog_ticket_alloc(log, 0, 1, 0); in xlog_cil_ticket_alloc()
53 struct xlog *log = cil->xc_log; in xlog_cil_set_iclog_hdr_count() local
56 (XLOG_CIL_BLOCKING_SPACE_LIMIT(log) / in xlog_cil_set_iclog_hdr_count()
57 (log->l_iclog_size - log->l_iclog_hsize))); in xlog_cil_set_iclog_hdr_count()
61 * Check if the current log item was first committed in this sequence.
62 * We can't rely on just the log item being in the CIL, we have to check
78 * li_seq is written on the first commit of a log item to record the in xlog_item_in_current_chkpt()
200 * After the first stage of log recovery is done, we know where the head and
201 * tail of the log are. We need this log initialisation done before we can
[all …]
/Linux-v6.6/drivers/md/
Draid5-cache.c18 #include "raid5-log.h"
28 * log->max_free_space is min(1/4 disk size, 10G reclaimable space).
30 * In write through mode, the reclaim runs every log->max_free_space.
70 * writes are committed from the log device. Therefore, a stripe in
72 * - write to log device
87 sector_t device_size; /* log device size, round to
92 sector_t last_checkpoint; /* log tail. where recovery scan
94 u64 last_cp_seq; /* log tail sequence */
96 sector_t log_start; /* log head. where new data appends */
97 u64 seq; /* log head sequence */
[all …]
Ddm-log.c14 #include <linux/dm-dirty-log.h>
18 #define DM_MSG_PREFIX "dirty region log"
56 * Log modules are named "dm-log-" followed by the 'type_name'.
58 * This function will first try the module "dm-log-<type_name>",
62 * 'dm-log-clustered-disk' then 'dm-log-clustered'.
80 DMWARN("No memory left to attempt log module load for \"%s\"", in get_type()
85 while (request_module("dm-log-%s", type_name_dup) || in get_type()
154 struct dm_dirty_log *log; in dm_dirty_log_create() local
156 log = kmalloc(sizeof(*log), GFP_KERNEL); in dm_dirty_log_create()
157 if (!log) in dm_dirty_log_create()
[all …]
Draid5-ppl.c3 * Partial Parity Log for closing the RAID5 write hole
15 #include "raid5-log.h"
76 * data+parity is written). The log->io_list tracks all io_units of a log
97 atomic64_t seq; /* current log write sequence number */
116 struct ppl_conf *ppl_conf; /* shared between all log instances */
119 * this log instance */
124 struct list_head io_list; /* all io_units of this log */
136 struct ppl_log *log; member
143 u64 seq; /* sequence number of this log write */
144 struct list_head log_sibling; /* log->io_list */
[all …]
Draid5-log.h7 int r5l_write_stripe(struct r5l_log *log, struct stripe_head *head_sh);
8 void r5l_write_stripe_run(struct r5l_log *log);
9 void r5l_flush_stripe_to_raid(struct r5l_log *log);
11 int r5l_handle_flush_request(struct r5l_log *log, struct bio *bio);
12 void r5l_quiesce(struct r5l_log *log, int quiesce);
14 bool r5c_is_writeback(struct r5l_log *log);
21 void r5l_wake_reclaim(struct r5l_log *log, sector_t space);
24 int r5c_cache_data(struct r5l_log *log, struct stripe_head *sh);
32 int r5l_start(struct r5l_log *log);
61 if (conf->log) { in log_stripe()
[all …]
/Linux-v6.6/Documentation/filesystems/
Dxfs-delayed-logging-design.rst40 The reason for these differences is to keep the amount of log space and CPU time
46 The method used to log an item or chain modifications together isn't
57 XFS has two types of high level transactions, defined by the type of log space
141 a "log force" to flush the outstanding committed transactions to stable storage
146 tend to use log forces to ensure modifications are on stable storage only when
160 A transaction reservation provides a guarantee that there is physical log space
164 log in the worst case. This means that if we are modifying a btree in the
179 log has this much space available before the transaction is allowed to proceed
180 so that when we come to write the dirty metadata into the log we don't run out
181 of log space half way through the write.
[all …]
/Linux-v6.6/drivers/accel/ivpu/
Divpu_fw_log.c32 struct vpu_tracing_buffer_header *log; in fw_log_ptr() local
34 if ((*offset + sizeof(*log)) > bo->base.size) in fw_log_ptr()
37 log = bo->kvaddr + *offset; in fw_log_ptr()
39 if (log->vpu_canary_start != VPU_TRACING_BUFFER_CANARY) in fw_log_ptr()
42 if (log->header_size < sizeof(*log) || log->header_size > 1024) { in fw_log_ptr()
43 ivpu_dbg(vdev, FW_BOOT, "Invalid header size 0x%x\n", log->header_size); in fw_log_ptr()
46 if ((char *)log + log->size > (char *)bo->kvaddr + bo->base.size) { in fw_log_ptr()
47 ivpu_dbg(vdev, FW_BOOT, "Invalid log size 0x%x\n", log->size); in fw_log_ptr()
51 *log_header = log; in fw_log_ptr()
52 *offset += log->size; in fw_log_ptr()
[all …]
/Linux-v6.6/tools/testing/selftests/tc-testing/tc-tests/actions/
Dxt.json4 "name": "Add xt action with log-prefix",
17 "cmdUnderTest": "$TC action add action xt -j LOG --log-prefix PONG index 100",
20 … "matchPattern": "action order [0-9]*:.*target LOG level warning prefix \"PONG\".*index 100 ref",
28 "name": "Replace xt action log-prefix",
41 "$TC action add action xt -j LOG --log-prefix PONG index 1",
47 "cmdUnderTest": "$TC action replace action xt -j LOG --log-prefix WIN index 1",
50 … "matchPattern": "action order [0-9]*:.*target LOG level warning prefix \"WIN\".*index 1 ref",
71 "$TC action add action xt -j LOG --log-prefix PONG index 1000",
80 … "matchPattern": "action order [0-9]*:.*target LOG level warning prefix \"PONG\".*index 1000 ref",
101 "$TC action add action xt -j LOG --log-prefix PONG index 1000",
[all …]
/Linux-v6.6/drivers/char/tpm/eventlog/
Defi.c16 /* read binary bios log from EFI configuration table */
23 struct tpm_bios_log *log; in tpm_read_log_efi() local
35 log = &chip->log; in tpm_read_log_efi()
39 pr_err("Could not map UEFI TPM log table !\n"); in tpm_read_log_efi()
47 pr_warn("UEFI TPM log area empty\n"); in tpm_read_log_efi()
54 pr_err("Could not map UEFI TPM log table payload!\n"); in tpm_read_log_efi()
59 log->bios_event_log = devm_kmemdup(&chip->dev, log_tbl->log, log_size, GFP_KERNEL); in tpm_read_log_efi()
60 if (!log->bios_event_log) { in tpm_read_log_efi()
65 log->bios_event_log_end = log->bios_event_log + log_size; in tpm_read_log_efi()
79 pr_err("Could not map UEFI TPM final log\n"); in tpm_read_log_efi()
[all …]
/Linux-v6.6/Documentation/admin-guide/device-mapper/
Dlog-writes.rst2 dm-log-writes
5 This target takes 2 devices, one to pass all IO to normally, and one to log all
9 able to take arbitrary data from userspace to insert into the log. The data
10 that is in the WRITE requests is copied into the log to make the replay happen
13 Log Ordering
16 We log things in order of completion once we are sure the write is no longer in
19 the log in a way that correlates to what is on disk and not what is in cache,
24 the FLUSH request completes we log all of the WRITEs and then the FLUSH. Only
31 The log would show the following:
52 which isn't quite what happened and wouldn't be caught during the log replay.
[all …]
Ddm-log.rst16 dm_dirty_log_type in include/linux/dm-dirty-log.h). Various different
23 disk drivers/md/dm-log.c
24 core drivers/md/dm-log.c
25 userspace drivers/md/dm-log-userspace* include/linux/dm-log-userspace.h
28 The "disk" log type
30 This log implementation commits the log state to disk. This way, the
33 The "core" log type
35 This log implementation keeps the log state in memory. The log state
38 available for storing log state.
40 The "userspace" log type
[all …]
/Linux-v6.6/fs/ntfs3/
Dfslog.c18 * LOG FILE structs
29 __le32 sys_page_size; // 0x10: Page size of the system which initialized the log.
30 __le32 page_size; // 0x14: Log page size used for this log file.
53 /* Two copies of these will exist at the beginning of the log file */
55 __le64 current_lsn; // 0x00: Current logical end of log file.
62 __le64 l_size; // 0x18: Usable log file size.
64 __le16 rec_hdr_len; // 0x24: Log page data offset.
65 __le16 data_off; // 0x26: Log page data length.
193 __le32 undo_records; // 0x20: Number of undo log records pending abort
232 /* The following type defines the different log record types. */
[all …]
/Linux-v6.6/fs/xfs/libxfs/
Dxfs_log_recover.h10 * Each log item type (XFS_LI_*) gets its own xlog_recover_item_ops to
11 * define how recovery should work for that type of log item.
15 /* Sorting hat for log items as they're read in. */
27 * Help sort recovered log items into the order required to replay them
28 * correctly. Log item types that always use XLOG_REORDER_ITEM_LIST do
36 void (*ra_pass2)(struct xlog *log, struct xlog_recover_item *item);
39 int (*commit_pass1)(struct xlog *log, struct xlog_recover_item *item);
42 * This function should do whatever work is needed for pass2 of log
46 * the recovered item to construct an in-core log intent item and
47 * insert it into the AIL. The in-core log intent item should have 1
[all …]
Dxfs_log_format.h13 * On-disk Log Format definitions.
15 * This file contains all the on-disk format definitions used within the log. It
16 * includes the physical log structure itself, as well as all the log item
17 * format structures that are written into the log and intepreted by log
18 * recovery. We start with the physical log format definitions, and then work
19 * through all the log items definitions and everything they encode into the
20 * log.
28 #define XLOG_VERSION_2 2 /* Large IClogs, Log sunit */
40 /* Minimum number of transactions that must fit in the log (defined by mkfs) */
43 #define XLOG_REC_SHIFT(log) \ argument
[all …]
/Linux-v6.6/include/linux/
Ddm-dirty-log.h6 * Device-Mapper dirty region log.
36 int (*ctr)(struct dm_dirty_log *log, struct dm_target *ti,
38 void (*dtr)(struct dm_dirty_log *log);
41 * There are times when we don't want the log to touch
44 int (*presuspend)(struct dm_dirty_log *log);
45 int (*postsuspend)(struct dm_dirty_log *log);
46 int (*resume)(struct dm_dirty_log *log);
49 * Retrieves the smallest size of region that the log can
52 uint32_t (*get_region_size)(struct dm_dirty_log *log);
58 int (*is_clean)(struct dm_dirty_log *log, region_t region);
[all …]
/Linux-v6.6/include/uapi/linux/
Ddm-log-userspace.h15 * The device-mapper userspace log module consists of a kernel component and
17 * in dm-dirty-log.h. Its purpose is simply to pass the parameters and
22 * dirty log API. Each of these is described in more detail below.
50 * DM_ULOG_CTR corresponds to (found in dm-dirty-log.h):
51 * int (*ctr)(struct dm_dirty_log *log, struct dm_target *ti,
58 * as the backing store for the log data. 'dm_get_device' will be called
61 * for log data, 'data_size' in the dm_ulog_request struct should be 0.
64 * will be used by all request types to a specific log. The constructor must
69 * data field with the log device if necessary, and setting 'data_size'
75 * DM_ULOG_DTR corresponds to (found in dm-dirty-log.h):
[all …]

12345678910>>...71