Home
last modified time | relevance | path

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

12345678910>>...165

/kernel/linux/linux-6.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 …]
/kernel/linux/linux-6.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 …]
/kernel/linux/linux-5.10/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 …]
/kernel/linux/linux-6.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 …]
/kernel/linux/linux-5.10/fs/xfs/
Dxfs_log.c35 struct xlog *log,
39 struct xlog *log);
46 struct xlog *log,
54 struct xlog *log,
59 struct xlog *log,
63 struct xlog *log,
68 struct xlog *log,
72 struct xlog *log);
75 struct xlog *log,
80 struct xlog *log,
[all …]
Dxfs_log_recover.c44 #define xlog_recover_check_summary(log) argument
55 * Verify the log-relative block number and length in basic blocks are valid for
56 * an operation involving the given XFS log buffer. Returns true if the fields
61 struct xlog *log, in xlog_verify_bno() argument
65 if (blk_no < 0 || blk_no >= log->l_logBBsize) in xlog_verify_bno()
67 if (bbcount <= 0 || (blk_no + bbcount) > log->l_logBBsize) in xlog_verify_bno()
73 * Allocate a buffer to hold log data. The buffer needs to be able to map to
74 * a range of nbblks basic blocks at any valid offset within the log.
78 struct xlog *log, in xlog_alloc_buffer() argument
81 int align_mask = xfs_buftarg_dma_alignment(log->l_targ); in xlog_alloc_buffer()
[all …]
Dxfs_log_priv.h15 * Flags for log structure
18 #define XLOG_RECOVERY_NEEDED 0x4 /* log was recovered */
19 #define XLOG_IO_ERROR 0x8 /* log hit an I/O error, and being
21 #define XLOG_TAIL_WARN 0x10 /* log tail verify warning issued */
41 * In core log state
44 XLOG_STATE_ACTIVE, /* Current IC log being written to */
46 XLOG_STATE_SYNCING, /* This IC log is syncing */
49 XLOG_STATE_DIRTY, /* Dirty IC log, not ready for ACTIVE status */
50 XLOG_STATE_IOERROR, /* IO error happened in sync'ing log */
54 * Log ticket flags
[all …]
/kernel/linux/linux-5.10/drivers/gpu/drm/i915/gt/uc/
Dintel_guc_log.c13 static void guc_log_capture_logs(struct intel_guc_log *log);
16 * DOC: GuC firmware log
18 * Firmware log is enabled by setting i915.guc_log_level to the positive level.
19 * Log data is printed out via reading debugfs i915_guc_log_dump. Reading from
58 static void guc_log_enable_flush_events(struct intel_guc_log *log) in guc_log_enable_flush_events() argument
60 intel_guc_enable_msg(log_to_guc(log), in guc_log_enable_flush_events()
65 static void guc_log_disable_flush_events(struct intel_guc_log *log) in guc_log_disable_flush_events() argument
67 intel_guc_disable_msg(log_to_guc(log), in guc_log_disable_flush_events()
143 static void guc_move_to_next_buf(struct intel_guc_log *log) in guc_move_to_next_buf() argument
152 relay_reserve(log->relay.channel, log->vma->obj->base.size); in guc_move_to_next_buf()
[all …]
/kernel/linux/linux-6.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 …]
/kernel/linux/linux-5.10/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.c13 #include <linux/dm-dirty-log.h>
17 #define DM_MSG_PREFIX "dirty region log"
55 * Log modules are named "dm-log-" followed by the 'type_name'.
57 * This function will first try the module "dm-log-<type_name>",
61 * 'dm-log-clustered-disk' then 'dm-log-clustered'.
79 DMWARN("No memory left to attempt log module load for \"%s\"", in get_type()
84 while (request_module("dm-log-%s", type_name_dup) || in get_type()
153 struct dm_dirty_log *log; in dm_dirty_log_create() local
155 log = kmalloc(sizeof(*log), GFP_KERNEL); in dm_dirty_log_create()
156 if (!log) in dm_dirty_log_create()
[all …]
/kernel/linux/linux-6.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 …]
/kernel/linux/linux-5.10/Documentation/filesystems/
Dxfs-delayed-logging-design.rst14 logged. The reason for these differences is to reduce the amount of log space
21 modifications to a single object to be carried in the log at any given time.
22 This allows the log to avoid needing to flush each change to disk before
26 changes in the new transaction that is written to the log.
29 written to disk after change D, we would see in the log the following series
30 of transactions, their contents and the log sequence number (LSN) of the
43 the aggregation of all the previous changes currently held only in the log.
45 This relogging technique also allows objects to be moved forward in the log so
46 that an object being relogged does not prevent the tail of the log from ever
49 direct encoding of the location in the log of the transaction.
[all …]
/kernel/linux/linux-6.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 …]
/kernel/linux/linux-6.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 …]
/kernel/linux/linux-6.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 …]
/kernel/linux/linux-5.10/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 …]
/kernel/linux/linux-6.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 …]
/kernel/linux/linux-6.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 …]
/kernel/linux/linux-6.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 …]
/kernel/linux/linux-5.10/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 …]

12345678910>>...165