Home
last modified time | relevance | path

Searched refs:log (Results 1 – 25 of 651) sorted by relevance

12345678910>>...27

/Linux-v5.15/fs/jfs/
Djfs_logmgr.c80 #define LOG_LOCK_INIT(log) mutex_init(&(log)->loglock) argument
81 #define LOG_LOCK(log) mutex_lock(&((log)->loglock)) argument
82 #define LOG_UNLOCK(log) mutex_unlock(&((log)->loglock)) argument
89 #define LOGGC_LOCK_INIT(log) spin_lock_init(&(log)->gclock) argument
90 #define LOGGC_LOCK(log) spin_lock_irq(&(log)->gclock) argument
91 #define LOGGC_UNLOCK(log) spin_unlock_irq(&(log)->gclock) argument
163 static int lmWriteRecord(struct jfs_log * log, struct tblock * tblk,
166 static int lmNextPage(struct jfs_log * log);
167 static int lmLogFileSystem(struct jfs_log * log, struct jfs_sb_info *sbi,
172 static int lbmLogInit(struct jfs_log * log);
[all …]
Djfs_txnmgr.c151 static void diLog(struct jfs_log *log, struct tblock *tblk, struct lrd *lrd,
153 static void dataLog(struct jfs_log *log, struct tblock *tblk, struct lrd *lrd,
155 static void dtLog(struct jfs_log * log, struct tblock * tblk, struct lrd * lrd,
157 static void mapLog(struct jfs_log * log, struct tblock * tblk, struct lrd * lrd,
162 static void txLog(struct jfs_log *log, struct tblock *tblk,
166 static void xtLog(struct jfs_log * log, struct tblock * tblk, struct lrd * lrd,
352 struct jfs_log *log; in txBegin() local
355 log = JFS_SBI(sb)->log; in txBegin()
366 if (test_bit(log_SYNCBARRIER, &log->flag) || in txBegin()
367 test_bit(log_QUIESCE, &log->flag)) { in txBegin()
[all …]
/Linux-v5.15/drivers/gpu/drm/i915/gt/uc/
Dintel_guc_log.c13 static void guc_log_capture_logs(struct intel_guc_log *log);
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()
155 relay_flush(log->relay.channel); in guc_move_to_next_buf()
158 static void *guc_get_write_buffer(struct intel_guc_log *log) in guc_get_write_buffer() argument
169 return relay_reserve(log->relay.channel, 0); in guc_get_write_buffer()
[all …]
Dintel_guc_log_debugfs.c32 struct intel_guc_log *log = data; in guc_log_level_get() local
34 if (!intel_guc_is_used(log_to_guc(log))) in guc_log_level_get()
37 *val = intel_guc_log_get_level(log); in guc_log_level_get()
44 struct intel_guc_log *log = data; in guc_log_level_set() local
46 if (!intel_guc_is_used(log_to_guc(log))) in guc_log_level_set()
49 return intel_guc_log_set_level(log, val); in guc_log_level_set()
58 struct intel_guc_log *log = inode->i_private; in guc_log_relay_open() local
60 if (!intel_guc_is_ready(log_to_guc(log))) in guc_log_relay_open()
63 file->private_data = log; in guc_log_relay_open()
65 return intel_guc_log_relay_open(log); in guc_log_relay_open()
[all …]
Dintel_guc_log.h62 void intel_guc_log_init_early(struct intel_guc_log *log);
63 int intel_guc_log_create(struct intel_guc_log *log);
64 void intel_guc_log_destroy(struct intel_guc_log *log);
66 int intel_guc_log_set_level(struct intel_guc_log *log, u32 level);
67 bool intel_guc_log_relay_created(const struct intel_guc_log *log);
68 int intel_guc_log_relay_open(struct intel_guc_log *log);
69 int intel_guc_log_relay_start(struct intel_guc_log *log);
70 void intel_guc_log_relay_flush(struct intel_guc_log *log);
71 void intel_guc_log_relay_close(struct intel_guc_log *log);
73 void intel_guc_log_handle_flush_event(struct intel_guc_log *log);
[all …]
/Linux-v5.15/drivers/md/
Draid5-cache.c210 struct r5l_log *log; member
250 bool r5c_is_writeback(struct r5l_log *log) in r5c_is_writeback() argument
252 return (log != NULL && in r5c_is_writeback()
253 log->r5c_journal_mode == R5C_JOURNAL_MODE_WRITE_BACK); in r5c_is_writeback()
256 static sector_t r5l_ring_add(struct r5l_log *log, sector_t start, sector_t inc) in r5l_ring_add() argument
259 if (start >= log->device_size) in r5l_ring_add()
260 start = start - log->device_size; in r5l_ring_add()
264 static sector_t r5l_ring_distance(struct r5l_log *log, sector_t start, in r5l_ring_distance() argument
270 return end + log->device_size - start; in r5l_ring_distance()
273 static bool r5l_has_free_space(struct r5l_log *log, sector_t size) in r5l_has_free_space() argument
[all …]
Ddm-log.c153 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()
161 kfree(log); in dm_dirty_log_create()
165 log->flush_callback_fn = flush_callback_fn; in dm_dirty_log_create()
166 log->type = type; in dm_dirty_log_create()
167 if (type->ctr(log, ti, argc, argv)) { in dm_dirty_log_create()
168 kfree(log); in dm_dirty_log_create()
173 return log; in dm_dirty_log_create()
177 void dm_dirty_log_destroy(struct dm_dirty_log *log) in dm_dirty_log_destroy() argument
[all …]
Draid5-log.h7 extern int r5l_write_stripe(struct r5l_log *log, struct stripe_head *head_sh);
8 extern void r5l_write_stripe_run(struct r5l_log *log);
9 extern void r5l_flush_stripe_to_raid(struct r5l_log *log);
11 extern int r5l_handle_flush_request(struct r5l_log *log, struct bio *bio);
12 extern void r5l_quiesce(struct r5l_log *log, int quiesce);
14 extern bool r5c_is_writeback(struct r5l_log *log);
23 extern void r5l_wake_reclaim(struct r5l_log *log, sector_t space);
26 extern int r5c_cache_data(struct r5l_log *log, struct stripe_head *sh);
35 extern int r5l_start(struct r5l_log *log);
47 extern int ppl_handle_flush_request(struct r5l_log *log, struct bio *bio);
[all …]
Draid5-ppl.c136 struct ppl_log *log; member
232 static struct ppl_io_unit *ppl_new_iounit(struct ppl_log *log, in ppl_new_iounit() argument
235 struct ppl_conf *ppl_conf = log->ppl_conf; in ppl_new_iounit()
248 io->log = log; in ppl_new_iounit()
266 static int ppl_log_stripe(struct ppl_log *log, struct stripe_head *sh) in ppl_log_stripe() argument
268 struct ppl_io_unit *io = log->current_io; in ppl_log_stripe()
279 if (io && (io->pp_size == log->entry_space || in ppl_log_stripe()
288 io = ppl_new_iounit(log, sh); in ppl_log_stripe()
291 spin_lock_irq(&log->io_list_lock); in ppl_log_stripe()
292 list_add_tail(&io->log_sibling, &log->io_list); in ppl_log_stripe()
[all …]
/Linux-v5.15/fs/xfs/
Dxfs_log.c35 struct xlog *log,
39 struct xlog *log);
45 struct xlog *log);
48 struct xlog *log,
56 struct xlog *log,
60 struct xlog *log,
65 struct xlog *log,
69 struct xlog *log);
72 struct xlog *log,
77 struct xlog *log,
[all …]
Dxfs_log_recover.c47 #define xlog_recover_check_summary(log) argument
64 struct xlog *log, in xlog_verify_bno() argument
68 if (blk_no < 0 || blk_no >= log->l_logBBsize) in xlog_verify_bno()
70 if (bbcount <= 0 || (blk_no + bbcount) > log->l_logBBsize) in xlog_verify_bno()
81 struct xlog *log, in xlog_alloc_buffer() argument
88 if (XFS_IS_CORRUPT(log->l_mp, !xlog_verify_bno(log, 0, nbblks))) { in xlog_alloc_buffer()
89 xfs_warn(log->l_mp, "Invalid block length (0x%x) for buffer", in xlog_alloc_buffer()
108 if (nbblks > 1 && log->l_sectBBsize > 1) in xlog_alloc_buffer()
109 nbblks += log->l_sectBBsize; in xlog_alloc_buffer()
110 nbblks = round_up(nbblks, log->l_sectBBsize); in xlog_alloc_buffer()
[all …]
Dxfs_log_priv.h373 #define XLOG_CIL_SPACE_LIMIT(log) \ argument
374 min_t(int, (log)->l_logsize >> 3, BBTOB(XLOG_TOTAL_REC_SHIFT(log)) << 4)
376 #define XLOG_CIL_BLOCKING_SPACE_LIMIT(log) \ argument
377 (XLOG_CIL_SPACE_LIMIT(log) * 2)
457 #define XLOG_BUF_CANCEL_BUCKET(log, blkno) \ argument
458 ((log)->l_buf_cancel_table + ((uint64_t)blkno % XLOG_BC_TABLE_SIZE))
470 xlog_recovery_needed(struct xlog *log) in xlog_recovery_needed() argument
472 return test_bit(XLOG_RECOVERY_NEEDED, &log->l_opstate); in xlog_recovery_needed()
476 xlog_in_recovery(struct xlog *log) in xlog_in_recovery() argument
478 return test_bit(XLOG_ACTIVE_RECOVERY, &log->l_opstate); in xlog_in_recovery()
[all …]
Dxfs_log_cil.c36 struct xlog *log) in xlog_cil_ticket_alloc() argument
40 tic = xlog_ticket_alloc(log, 0, 1, XFS_TRANSACTION, 0); in xlog_cil_ticket_alloc()
90 struct xlog *log) in xlog_cil_init_post_recovery() argument
92 log->l_cilp->xc_ctx->ticket = xlog_cil_ticket_alloc(log); in xlog_cil_init_post_recovery()
93 log->l_cilp->xc_ctx->sequence = 1; in xlog_cil_init_post_recovery()
153 struct xlog *log, in xlog_cil_alloc_shadow_bufs() argument
261 struct xlog *log, in xfs_cil_prepare_item() argument
302 lv->lv_item->li_seq = log->l_cilp->xc_ctx->sequence; in xfs_cil_prepare_item()
335 struct xlog *log, in xlog_cil_insert_format_items() argument
410 xfs_cil_prepare_item(log, lv, old_lv, diff_len, diff_iovecs); in xlog_cil_insert_format_items()
[all …]
/Linux-v5.15/fs/ntfs3/
Dfslog.c1045 static inline u32 lsn_to_vbo(struct ntfs_log *log, const u64 lsn) in lsn_to_vbo() argument
1047 u32 vbo = (lsn << log->seq_num_bits) >> (log->seq_num_bits - 3); in lsn_to_vbo()
1053 static inline u32 next_page_off(struct ntfs_log *log, u32 off) in next_page_off() argument
1055 off = (off & ~log->sys_page_mask) + log->page_size; in next_page_off()
1056 return off >= log->l_size ? log->first_page : off; in next_page_off()
1059 static inline u32 lsn_to_page_off(struct ntfs_log *log, u64 lsn) in lsn_to_page_off() argument
1061 return (((u32)lsn) << 3) & log->page_mask; in lsn_to_page_off()
1064 static inline u64 vbo_to_lsn(struct ntfs_log *log, u32 off, u64 Seq) in vbo_to_lsn() argument
1066 return (off >> 3) + (Seq << log->file_data_bits); in vbo_to_lsn()
1069 static inline bool is_lsn_in_file(struct ntfs_log *log, u64 lsn) in is_lsn_in_file() argument
[all …]
/Linux-v5.15/include/linux/
Ddm-dirty-log.h35 int (*ctr)(struct dm_dirty_log *log, struct dm_target *ti,
37 void (*dtr)(struct dm_dirty_log *log);
43 int (*presuspend)(struct dm_dirty_log *log);
44 int (*postsuspend)(struct dm_dirty_log *log);
45 int (*resume)(struct dm_dirty_log *log);
51 uint32_t (*get_region_size)(struct dm_dirty_log *log);
57 int (*is_clean)(struct dm_dirty_log *log, region_t region);
70 int (*in_sync)(struct dm_dirty_log *log, region_t region,
77 int (*flush)(struct dm_dirty_log *log);
85 void (*mark_region)(struct dm_dirty_log *log, region_t region);
[all …]
/Linux-v5.15/drivers/char/tpm/eventlog/
Defi.c22 struct tpm_bios_log *log; in tpm_read_log_efi() local
34 log = &chip->log; in tpm_read_log_efi()
58 log->bios_event_log = kmemdup(log_tbl->log, log_size, GFP_KERNEL); in tpm_read_log_efi()
59 if (!log->bios_event_log) { in tpm_read_log_efi()
64 log->bios_event_log_end = log->bios_event_log + log_size; in tpm_read_log_efi()
79 kfree(log->bios_event_log); in tpm_read_log_efi()
94 tmp = krealloc(log->bios_event_log, in tpm_read_log_efi()
98 kfree(log->bios_event_log); in tpm_read_log_efi()
103 log->bios_event_log = tmp; in tpm_read_log_efi()
110 memcpy((void *)log->bios_event_log + log_size, in tpm_read_log_efi()
[all …]
/Linux-v5.15/tools/testing/selftests/bpf/
Dtest_verifier_log.c48 static int load(char *log, size_t log_len, int log_level) in load() argument
57 attr.log_buf = ptr_to_u64(log); in load()
88 static void test_log_good(char *log, size_t buf_len, size_t log_len, in test_log_good() argument
94 memset(log, 1, buf_len); in test_log_good()
96 ret = load(log, log_len, 1); in test_log_good()
99 len = strnlen(log, buf_len); in test_log_good()
110 if (strchr(log, 1)) { in test_log_good()
115 check_ones(log + len + 1, buf_len - len - 1, in test_log_good()
118 if (memcmp(full_log, log, LOG_SIZE)) { in test_log_good()
124 static void test_log_bad(char *log, size_t log_len, int log_level) in test_log_bad() argument
[all …]
Dtest_xdp_redirect_multi.sh103 ip netns exec ns2 tcpdump -e -i veth0 -nn -l -e &> mac_ns1-2_${mode}.log &
104 ip netns exec ns3 tcpdump -e -i veth0 -nn -l -e &> mac_ns1-3_${mode}.log &
111 grep -q "${veth_mac[2]} > ff:ff:ff:ff:ff:ff" mac_ns1-2_${mode}.log && \
113 grep -q "${veth_mac[3]} > ff:ff:ff:ff:ff:ff" mac_ns1-3_${mode}.log && \
124 ip netns exec ns1 tcpdump -i veth0 -nn -l -e &> ns1-1_${mode}.log &
125 ip netns exec ns2 tcpdump -i veth0 -nn -l -e &> ns1-2_${mode}.log &
126 ip netns exec ns3 tcpdump -i veth0 -nn -l -e &> ns1-3_${mode}.log &
138 [ $(grep -c "who-has 192.0.2.254" ns1-1_${mode}.log) -gt 4 ] && \
141 [ $(grep -c "who-has 192.0.2.254" ns1-2_${mode}.log) -le 4 ] && \
144 [ $(grep -c "who-has 192.0.2.254" ns1-3_${mode}.log) -le 4 ] && \
[all …]
/Linux-v5.15/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
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.
59 log-writes <dev_path> <log_dev_path>
[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-v5.15/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 …]
/Linux-v5.15/fs/
Dfs_parser.c103 int __fs_parse(struct p_log *log, in __fs_parse() argument
117 warn_plog(log, "Deprecated parameter '%s'", param->key); in __fs_parse()
124 return inval_plog(log, "Unexpected value for '%s'", in __fs_parse()
128 int ret = p->type(log, p, param, result); in __fs_parse()
191 static int fs_param_bad_value(struct p_log *log, struct fs_parameter *param) in fs_param_bad_value() argument
193 return inval_plog(log, "Bad value for '%s'", param->key); in fs_param_bad_value()
196 int fs_param_is_bool(struct p_log *log, const struct fs_parameter_spec *p, in fs_param_is_bool() argument
201 return fs_param_bad_value(log, param); in fs_param_is_bool()
204 return fs_param_bad_value(log, param); in fs_param_is_bool()
210 int fs_param_is_u32(struct p_log *log, const struct fs_parameter_spec *p, in fs_param_is_u32() argument
[all …]
/Linux-v5.15/tools/perf/tests/
Dattr.py95 log.debug(" %s = %s" % (key, val))
99 log.debug(" Event %s" % name);
107 log.debug(" [%s] %s %s" % (t, self[t], other[t]));
124 log.warning("expected %s=%s, got %s" % (t, self[t], other[t]))
145 log.warning("running '%s'" % path)
160 log.warning("test limitation '%s'" % self.arch)
166 log.debug(" loading expected events");
187 log.warning("excluded architecture list %s" % arch_list)
232 log.info(" '%s' ret '%s', expected '%s'" % (cmd, str(ret), str(self.ret)))
240 log.debug(" compare");
[all …]
/Linux-v5.15/tools/testing/selftests/powerpc/eeh/
Deeh-functions.sh6 log() { function
56 log "debugfs EEH testing files are missing. Is debugfs mounted?"
68 log "$dev, Skipped: bridge"
77 log "$dev, Skipped: ahci doesn't support recovery"
87 log "$dev, Skipped: Bad initial PE state"
101 log "Error: '$dev' must be a sysfs device name (DDDD:BB:DD.F)"
125 log "$dev, waited $i/${max_wait}"
130 log "$dev, Failed to recover!"
134 log "$dev, Recovered after $i seconds"
208 log "Unable to enable VFs on $pf, skipping"
[all …]
/Linux-v5.15/Documentation/ABI/testing/
Dsysfs-fs-xfs1 What: /sys/fs/xfs/<disk>/log/log_head_lsn
6 The log sequence number (LSN) of the current head of the
7 log. The LSN is exported in "cycle:basic block" format.
10 What: /sys/fs/xfs/<disk>/log/log_tail_lsn
15 The log sequence number (LSN) of the current tail of the
16 log. The LSN is exported in "cycle:basic block" format.
18 What: /sys/fs/xfs/<disk>/log/reserve_grant_head
23 The current state of the log reserve grant head. It
24 represents the total log reservation of all currently
29 What: /sys/fs/xfs/<disk>/log/write_grant_head
[all …]

12345678910>>...27