Home
last modified time | relevance | path

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

12345678910>>...21

/Linux-v4.19/fs/jfs/
Djfs_logmgr.c93 #define LOG_LOCK_INIT(log) mutex_init(&(log)->loglock) argument
94 #define LOG_LOCK(log) mutex_lock(&((log)->loglock)) argument
95 #define LOG_UNLOCK(log) mutex_unlock(&((log)->loglock)) argument
102 #define LOGGC_LOCK_INIT(log) spin_lock_init(&(log)->gclock) argument
103 #define LOGGC_LOCK(log) spin_lock_irq(&(log)->gclock) argument
104 #define LOGGC_UNLOCK(log) spin_unlock_irq(&(log)->gclock) argument
176 static int lmWriteRecord(struct jfs_log * log, struct tblock * tblk,
179 static int lmNextPage(struct jfs_log * log);
180 static int lmLogFileSystem(struct jfs_log * log, struct jfs_sb_info *sbi,
185 static int lbmLogInit(struct jfs_log * log);
[all …]
Djfs_txnmgr.c164 static int diLog(struct jfs_log * log, struct tblock * tblk, struct lrd * lrd,
166 static int dataLog(struct jfs_log * log, struct tblock * tblk, struct lrd * lrd,
168 static void dtLog(struct jfs_log * log, struct tblock * tblk, struct lrd * lrd,
170 static void mapLog(struct jfs_log * log, struct tblock * tblk, struct lrd * lrd,
175 static int txLog(struct jfs_log * log, struct tblock * tblk,
179 static void xtLog(struct jfs_log * log, struct tblock * tblk, struct lrd * lrd,
365 struct jfs_log *log; in txBegin() local
368 log = JFS_SBI(sb)->log; in txBegin()
379 if (test_bit(log_SYNCBARRIER, &log->flag) || in txBegin()
380 test_bit(log_QUIESCE, &log->flag)) { in txBegin()
[all …]
Djfs_logmgr.h349 } log; member
490 #define LOGSYNC_LOCK_INIT(log) spin_lock_init(&(log)->synclock) argument
491 #define LOGSYNC_LOCK(log, flags) spin_lock_irqsave(&(log)->synclock, flags) argument
492 #define LOGSYNC_UNLOCK(log, flags) \ argument
493 spin_unlock_irqrestore(&(log)->synclock, flags)
496 #define logdiff(diff, lsn, log)\ argument
498 diff = (lsn) - (log)->syncpt;\
500 diff += (log)->logsize;\
505 extern int lmLogShutdown(struct jfs_log * log);
506 extern int lmLogInit(struct jfs_log * log);
[all …]
Djfs_umount.c57 struct jfs_log *log; in jfs_umount() local
67 if ((log = sbi->log)) in jfs_umount()
71 jfs_flush_journal(log, 2); in jfs_umount()
121 if (log) { /* log = NULL if read-only mount */ in jfs_umount()
139 struct jfs_log *log = sbi->log; in jfs_umount_rw() local
141 if (!log) in jfs_umount_rw()
149 jfs_flush_journal(log, 2); in jfs_umount_rw()
/Linux-v4.19/drivers/gpu/drm/i915/
Dintel_guc_log.c30 static void guc_log_capture_logs(struct intel_guc_log *log);
75 static inline struct intel_guc *log_to_guc(struct intel_guc_log *log) in log_to_guc() argument
77 return container_of(log, struct intel_guc, log); in log_to_guc()
80 static void guc_log_enable_flush_events(struct intel_guc_log *log) in guc_log_enable_flush_events() argument
82 intel_guc_enable_msg(log_to_guc(log), in guc_log_enable_flush_events()
87 static void guc_log_disable_flush_events(struct intel_guc_log *log) in guc_log_disable_flush_events() argument
89 intel_guc_disable_msg(log_to_guc(log), in guc_log_disable_flush_events()
162 static void guc_move_to_next_buf(struct intel_guc_log *log) in guc_move_to_next_buf() argument
171 relay_reserve(log->relay.channel, log->vma->obj->base.size); in guc_move_to_next_buf()
174 relay_flush(log->relay.channel); in guc_move_to_next_buf()
[all …]
Dintel_guc_log.h83 void intel_guc_log_init_early(struct intel_guc_log *log);
84 int intel_guc_log_create(struct intel_guc_log *log);
85 void intel_guc_log_destroy(struct intel_guc_log *log);
87 int intel_guc_log_set_level(struct intel_guc_log *log, u32 level);
88 bool intel_guc_log_relay_enabled(const struct intel_guc_log *log);
89 int intel_guc_log_relay_open(struct intel_guc_log *log);
90 void intel_guc_log_relay_flush(struct intel_guc_log *log);
91 void intel_guc_log_relay_close(struct intel_guc_log *log);
93 void intel_guc_log_handle_flush_event(struct intel_guc_log *log);
95 static inline u32 intel_guc_log_get_level(struct intel_guc_log *log) in intel_guc_log_get_level() argument
[all …]
/Linux-v4.19/drivers/md/
Draid5-cache.c221 struct r5l_log *log; member
261 bool r5c_is_writeback(struct r5l_log *log) in r5c_is_writeback() argument
263 return (log != NULL && in r5c_is_writeback()
264 log->r5c_journal_mode == R5C_JOURNAL_MODE_WRITE_BACK); in r5c_is_writeback()
267 static sector_t r5l_ring_add(struct r5l_log *log, sector_t start, sector_t inc) in r5l_ring_add() argument
270 if (start >= log->device_size) in r5l_ring_add()
271 start = start - log->device_size; in r5l_ring_add()
275 static sector_t r5l_ring_distance(struct r5l_log *log, sector_t start, in r5l_ring_distance() argument
281 return end + log->device_size - start; in r5l_ring_distance()
284 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.c142 struct ppl_log *log; member
239 static struct ppl_io_unit *ppl_new_iounit(struct ppl_log *log, in ppl_new_iounit() argument
242 struct ppl_conf *ppl_conf = log->ppl_conf; in ppl_new_iounit()
255 io->log = log; in ppl_new_iounit()
273 static int ppl_log_stripe(struct ppl_log *log, struct stripe_head *sh) in ppl_log_stripe() argument
275 struct ppl_io_unit *io = log->current_io; in ppl_log_stripe()
286 if (io && (io->pp_size == log->entry_space || in ppl_log_stripe()
295 io = ppl_new_iounit(log, sh); in ppl_log_stripe()
298 spin_lock_irq(&log->io_list_lock); in ppl_log_stripe()
299 list_add_tail(&io->log_sibling, &log->io_list); in ppl_log_stripe()
[all …]
Ddm-log-userspace-base.c190 static int userspace_ctr(struct dm_dirty_log *log, struct dm_target *ti, in userspace_ctr() argument
320 log->context = lc; in userspace_ctr()
326 static void userspace_dtr(struct dm_dirty_log *log) in userspace_dtr() argument
328 struct log_c *lc = log->context; in userspace_dtr()
352 static int userspace_presuspend(struct dm_dirty_log *log) in userspace_presuspend() argument
355 struct log_c *lc = log->context; in userspace_presuspend()
363 static int userspace_postsuspend(struct dm_dirty_log *log) in userspace_postsuspend() argument
366 struct log_c *lc = log->context; in userspace_postsuspend()
380 static int userspace_resume(struct dm_dirty_log *log) in userspace_resume() argument
383 struct log_c *lc = log->context; in userspace_resume()
[all …]
/Linux-v4.19/fs/xfs/
Dxfs_log.c32 struct xlog *log,
45 struct xlog *log,
49 struct xlog *log,
53 struct xlog *log);
59 struct xlog *log,
64 struct xlog *log,
72 struct xlog *log,
76 struct xlog *log,
81 struct xlog *log,
86 struct xlog *log,
[all …]
Dxfs_log_recover.c55 #define xlog_recover_check_summary(log) argument
83 struct xlog *log, in xlog_verify_bp() argument
87 if (blk_no < 0 || blk_no >= log->l_logBBsize) in xlog_verify_bp()
89 if (bbcount <= 0 || (blk_no + bbcount) > log->l_logBBsize) in xlog_verify_bp()
101 struct xlog *log, in xlog_get_bp() argument
110 if (!xlog_verify_bp(log, 0, nbblks)) { in xlog_get_bp()
111 xfs_warn(log->l_mp, "Invalid block length (0x%x) for buffer", in xlog_get_bp()
113 XFS_ERROR_REPORT(__func__, XFS_ERRLEVEL_HIGH, log->l_mp); in xlog_get_bp()
133 if (nbblks > 1 && log->l_sectBBsize > 1) in xlog_get_bp()
134 nbblks += log->l_sectBBsize; in xlog_get_bp()
[all …]
Dxfs_log_cil.c39 struct xlog *log) in xlog_cil_ticket_alloc() argument
43 tic = xlog_ticket_alloc(log, 0, 1, XFS_TRANSACTION, 0, in xlog_cil_ticket_alloc()
66 struct xlog *log) in xlog_cil_init_post_recovery() argument
68 log->l_cilp->xc_ctx->ticket = xlog_cil_ticket_alloc(log); in xlog_cil_init_post_recovery()
69 log->l_cilp->xc_ctx->sequence = 1; in xlog_cil_init_post_recovery()
129 struct xlog *log, in xlog_cil_alloc_shadow_bufs() argument
229 struct xlog *log, in xfs_cil_prepare_item() argument
269 lv->lv_item->li_seq = log->l_cilp->xc_ctx->sequence; in xfs_cil_prepare_item()
302 struct xlog *log, in xlog_cil_insert_format_items() argument
377 xfs_cil_prepare_item(log, lv, old_lv, diff_len, diff_iovecs); in xlog_cil_insert_format_items()
[all …]
Dxfs_log_priv.h330 #define XLOG_CIL_SPACE_LIMIT(log) (log->l_logsize >> 3) argument
409 #define XLOG_BUF_CANCEL_BUCKET(log, blkno) \ argument
410 ((log)->l_buf_cancel_table + ((uint64_t)blkno % XLOG_BC_TABLE_SIZE))
412 #define XLOG_FORCED_SHUTDOWN(log) ((log)->l_flags & XLOG_IO_ERROR) argument
417 struct xlog *log);
420 struct xlog *log);
424 extern __le32 xlog_cksum(struct xlog *log, struct xlog_rec_header *rhead,
430 struct xlog *log,
450 struct xlog *log,
515 int xlog_cil_init(struct xlog *log);
[all …]
/Linux-v4.19/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-v4.19/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 …]
/Linux-v4.19/Documentation/device-mapper/
Dlog-writes.txt1 dm-log-writes
4 This target takes 2 devices, one to pass all IO to normally, and one to log all
8 able to take arbitrary data from userspace to insert into the log. The data
9 that is in the WRITE requests is copied into the log to make the replay happen
15 We log things in order of completion once we are sure the write is no longer in
18 the log in a way that correlates to what is on disk and not what is in cache,
23 the FLUSH request completes we log all of the WRITEs and then the FLUSH. Only
30 The log would show the following
51 which isn't quite what happened and wouldn't be caught during the log replay.
58 log-writes <dev_path> <log_dev_path>
[all …]
Ddm-log.txt15 dm_dirty_log_type in include/linux/dm-dirty-log.h). Various different
21 disk drivers/md/dm-log.c
22 core drivers/md/dm-log.c
23 userspace drivers/md/dm-log-userspace* include/linux/dm-log-userspace.h
25 The "disk" log type
27 This log implementation commits the log state to disk. This way, the
30 The "core" log type
32 This log implementation keeps the log state in memory. The log state
35 available for storing log state.
37 The "userspace" log type
[all …]
/Linux-v4.19/Documentation/filesystems/
Dxfs-delayed-logging-design.txt11 logged. The reason for these differences is to reduce the amount of log space
18 modifications to a single object to be carried in the log at any given time.
19 This allows the log to avoid needing to flush each change to disk before
23 changes in the new transaction that is written to the log.
26 written to disk after change D, we would see in the log the following series
27 of transactions, their contents and the log sequence number (LSN) of the
40 the aggregation of all the previous changes currently held only in the log.
42 This relogging technique also allows objects to be moved forward in the log so
43 that an object being relogged does not prevent the tail of the log from ever
46 direct encoding of the location in the log of the transaction.
[all …]
/Linux-v4.19/tools/perf/tests/
Dattr.py90 log.debug(" %s = %s" % (key, val))
94 log.debug(" Event %s" % name);
102 log.debug(" [%s] %s %s" % (t, self[t], other[t]));
119 log.warning("expected %s=%s, got %s" % (t, self[t], other[t]))
140 log.warning("running '%s'" % path)
155 log.warning("test limitation '%s'" % self.arch)
161 log.debug(" loading expected events");
182 log.warning("excluded architecture list %s" % arch_list)
227 log.info(" '%s' ret '%s', expected '%s'" % (cmd, str(ret), str(self.ret)))
235 log.debug(" compare");
[all …]
/Linux-v4.19/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 …]
/Linux-v4.19/drivers/char/tpm/eventlog/
Dacpi.c56 struct tpm_bios_log *log; in tpm_read_log_acpi() local
61 log = &chip->log; in tpm_read_log_acpi()
93 log->bios_event_log = kmalloc(len, GFP_KERNEL); in tpm_read_log_acpi()
94 if (!log->bios_event_log) in tpm_read_log_acpi()
97 log->bios_event_log_end = log->bios_event_log + len; in tpm_read_log_acpi()
103 memcpy_fromio(log->bios_event_log, virt, len); in tpm_read_log_acpi()
109 kfree(log->bios_event_log); in tpm_read_log_acpi()
110 log->bios_event_log = NULL; in tpm_read_log_acpi()
Defi.c25 struct tpm_bios_log *log; in tpm_read_log_efi() local
35 log = &chip->log; in tpm_read_log_efi()
54 log->bios_event_log = kmemdup(log_tbl->log, log_size, GFP_KERNEL); in tpm_read_log_efi()
55 if (!log->bios_event_log) in tpm_read_log_efi()
57 log->bios_event_log_end = log->bios_event_log + log_size; in tpm_read_log_efi()
/Linux-v4.19/Documentation/ABI/stable/
Dsysfs-firmware-opal-elog5 This directory exposes error log entries retrieved
8 Each error log is identified by a unique ID and will
11 Each log entry has a directory in /sys/firmware/opal/elog.
15 Linux if there is no room for more log entries.
17 In the event that Linux has retrieved the log entries
19 the service processor needs more room for log entries,
20 the only remaining copy of a log message may be in
26 The service processor may be able to store more log
31 The raw log format is a binary format. We currently
38 For each log entry (directory), there are the following
[all …]

12345678910>>...21