/linux/fs/jfs/ |
H A D | jfs_logmgr.c | 8 * 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 …]
|
H A D | jfs_logmgr.h | 15 * 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 …]
|
H A D | jfs_umount.c | 44 struct jfs_log *log; in jfs_umount() local 50 * update superblock and close log in jfs_umount() 52 * if mounted read-write and log based recovery was enabled in jfs_umount() 54 if ((log = sbi->log)) in jfs_umount() 56 * Wait for outstanding transactions to be written to log: in jfs_umount() 58 jfs_flush_journal(log, 2); in jfs_umount() 103 * consistent state) and log superblock active file system in jfs_umount() 106 if (log) { /* log = NULL if read-only mount */ in jfs_umount() 110 * close log: in jfs_umount() 112 * remove file system from log active file system list. in jfs_umount() [all …]
|
/linux/drivers/gpu/drm/i915/gt/uc/ |
H A D | intel_guc_log.c | 31 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 …]
|
H A D | intel_guc_log_debugfs.c | 31 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 …]
|
H A D | intel_guc_log.h | 19 * 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/drivers/md/ |
H A D | raid5-cache.c | 18 #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 …]
|
H A D | dm-log.c | 14 #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 …]
|
H A D | raid5-ppl.c | 3 * 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 …]
|
H A D | raid5-log.h | 7 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/Documentation/filesystems/xfs/ |
H A D | xfs-delayed-logging-design.rst | 40 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/drivers/accel/ivpu/ |
H A D | ivpu_fw_log.c | 32 struct vpu_tracing_buffer_header *log; in fw_log_ptr() local 34 if ((*offset + sizeof(*log)) > ivpu_bo_size(bo)) in fw_log_ptr() 37 log = ivpu_bo_vaddr(bo) + *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 *)ivpu_bo_vaddr(bo) + ivpu_bo_size(bo)) { 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/fs/ntfs3/ |
H A D | fslog.c | 18 * 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/kernel/bpf/ |
H A D | log.c | 16 static bool bpf_verifier_log_attr_valid(const struct bpf_verifier_log *log) in bpf_verifier_log_attr_valid() argument 19 if (!!log->ubuf != !!log->len_total) in bpf_verifier_log_attr_valid() 21 /* log buf without log_level is meaningless */ in bpf_verifier_log_attr_valid() 22 if (log->ubuf && log->level == 0) in bpf_verifier_log_attr_valid() 24 if (log->level & ~BPF_LOG_MASK) in bpf_verifier_log_attr_valid() 26 if (log->len_total > UINT_MAX >> 2) in bpf_verifier_log_attr_valid() 31 int bpf_vlog_init(struct bpf_verifier_log *log, u32 log_level, in bpf_vlog_init() argument 34 log->level = log_level; in bpf_vlog_init() 35 log->ubuf = log_buf; in bpf_vlog_init() 36 log->len_total = log_size; in bpf_vlog_init() [all …]
|
/linux/fs/xfs/ |
H A D | xfs_log_priv.h | 34 * 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 …]
|
H A D | xfs_log_cil.c | 35 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/Documentation/admin-guide/device-mapper/ |
H A D | log-writes.rst | 2 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 …]
|
H A D | dm-log.rst | 16 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/drivers/char/tpm/eventlog/ |
H A D | efi.c | 16 /* 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 …]
|
H A D | acpi.c | 14 * Access to the event log extended by the TCG BIOS of PC platform 45 /* Check that the given log is indeed a TPM2 log. */ 66 /* read binary bios log */ 73 struct tpm_bios_log *log; in tpm_read_log_acpi() local 79 log = &chip->log; in tpm_read_log_acpi() 81 /* Unfortuntely ACPI does not associate the event log with a specific in tpm_read_log_acpi() 82 * TPM, like PPI. Thus all ACPI TPMs will read the same log. in tpm_read_log_acpi() 134 dev_warn(&chip->dev, "%s: TCPA log area empty\n", __func__); in tpm_read_log_acpi() 139 log->bios_event_log = devm_kmalloc(&chip->dev, len, GFP_KERNEL); in tpm_read_log_acpi() 140 if (!log->bios_event_log) in tpm_read_log_acpi() [all …]
|
/linux/include/linux/ |
H A D | dm-dirty-log.h | 6 * 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/include/uapi/linux/ |
H A D | dm-log-userspace.h | 15 * 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 …]
|
/linux/tools/testing/selftests/rcutorture/bin/ |
H A D | kvm-remote.sh | 77 touch "$oldrun/remote-log" 78 echo $scriptname $args >> "$oldrun/remote-log" 79 echo | tee -a "$oldrun/remote-log" 80 echo " ----" kvm.sh output: "(`date`)" | tee -a "$oldrun/remote-log" 81 cat $T/kvm.sh.out | tee -a "$oldrun/remote-log" 88 echo $scriptname: kvm-again.sh failed exit code $? | tee -a "$oldrun/remote-log" 89 cat $T/kvm-again.sh.out | tee -a "$oldrun/remote-log" 100 touch "$oldrun/remote-log" 101 echo $scriptname $args >> "$oldrun/remote-log" 106 echo $scriptname: kvm-again.sh failed exit code $? | tee -a "$oldrun/remote-log" [all …]
|
/linux/Documentation/ABI/stable/ |
H A D | sysfs-firmware-opal-elog | 5 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. 13 Log entries may be purged by the service processor 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 [all …]
|
/linux/fs/ |
H A D | fs_parser.c | 87 * @log: The filesystem context to log errors through. 103 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() 138 * @fc: The filesystem context to log errors through. 192 static int fs_param_bad_value(struct p_log *log, struct fs_parameter *param) in fs_param_bad_value() argument 194 return inval_plog(log, "Bad value for '%s'", param->key); in fs_param_bad_value() 197 int fs_param_is_bool(struct p_log *log, const struct fs_parameter_spec *p, in fs_param_is_bool() argument 202 return fs_param_bad_value(log, param); in fs_param_is_bool() [all …]
|