| /linux/fs/xfs/ |
| H A D | xfs_log.c | 45 struct xlog *log); 51 struct xlog *log); 54 struct xlog *log, 58 struct xlog *log, 64 struct xlog *log, 69 struct xlog *log, 78 struct xlog *log); 110 struct xlog *log, in xlog_grant_return_space() argument 114 int64_t diff = xlog_lsn_sub(log, new_head, old_head); in xlog_grant_return_space() 116 xlog_grant_sub_space(&log->l_reserve_head, diff); in xlog_grant_return_space() [all …]
|
| H A D | xfs_log_recover.c | 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() 74 struct xlog *log, in xlog_alloc_buffer() argument 81 if (XFS_IS_CORRUPT(log->l_mp, !xlog_verify_bno(log, 0, nbblks))) { in xlog_alloc_buffer() 82 xfs_warn(log->l_mp, "Invalid block length (0x%x) for buffer", in xlog_alloc_buffer() 101 if (nbblks > 1 && log->l_sectBBsize > 1) in xlog_alloc_buffer() 102 nbblks += log->l_sectBBsize; in xlog_alloc_buffer() 103 nbblks = round_up(nbblks, log->l_sectBBsize); in xlog_alloc_buffer() 113 struct xlog *log, in xlog_align() argument [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() 205 struct xlog *log) in xlog_cil_init_post_recovery() argument 207 log->l_cilp->xc_ctx->ticket = xlog_cil_ticket_alloc(log); in xlog_cil_init_post_recovery() 208 log->l_cilp->xc_ctx->sequence = 1; in xlog_cil_init_post_recovery() 209 xlog_cil_set_iclog_hdr_count(log->l_cilp); in xlog_cil_init_post_recovery() 269 struct xlog *log, in xlog_cil_alloc_shadow_bufs() argument [all …]
|
| H A D | xfs_dquot_item_recover.c | 26 struct xlog *log, in xlog_recover_dquot_ra_pass2() argument 29 struct xfs_mount *mp = log->l_mp; in xlog_recover_dquot_ra_pass2() 45 if (log->l_quotaoffs_flag & type) in xlog_recover_dquot_ra_pass2() 52 xlog_buf_readahead(log, dq_f->qlf_blkno, in xlog_recover_dquot_ra_pass2() 62 struct xlog *log, in xlog_recover_dquot_commit_pass2() argument 67 struct xfs_mount *mp = log->l_mp; in xlog_recover_dquot_commit_pass2() 84 xfs_alert(log->l_mp, "NULL dquot in %s.", __func__); in xlog_recover_dquot_commit_pass2() 88 xfs_alert(log->l_mp, "dquot too small (%zd) in %s.", in xlog_recover_dquot_commit_pass2() 98 if (log->l_quotaoffs_flag & type) in xlog_recover_dquot_commit_pass2() 157 fa = xfs_dqblk_verify(log->l_mp, dqb, dq_f->qlf_id); in xlog_recover_dquot_commit_pass2() [all …]
|
| /linux/drivers/accel/ivpu/ |
| H A D | ivpu_fw_log.c | 32 struct vpu_tracing_buffer_header *log; in fw_log_from_bo() local 34 if ((*offset + sizeof(*log)) > ivpu_bo_size(bo)) in fw_log_from_bo() 37 log = ivpu_bo_vaddr(bo) + *offset; in fw_log_from_bo() 39 if (log->vpu_canary_start != VPU_TRACING_BUFFER_CANARY) in fw_log_from_bo() 42 if (log->header_size < sizeof(*log) || log->header_size > 1024) { in fw_log_from_bo() 43 ivpu_dbg(vdev, FW_BOOT, "Invalid header size 0x%x\n", log->header_size); in fw_log_from_bo() 46 if (log->size < log->header_size) { in fw_log_from_bo() 47 ivpu_dbg(vdev, FW_BOOT, "Invalid log size 0x%x\n", log->size); in fw_log_from_bo() 50 if ((char *)log + log->size > (char *)ivpu_bo_vaddr(bo) + ivpu_bo_size(bo)) { in fw_log_from_bo() 51 ivpu_dbg(vdev, FW_BOOT, "Invalid log size 0x%x\n", log->size); in fw_log_from_bo() [all …]
|
| /linux/kernel/bpf/ |
| H A D | log.c | 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() 45 static void bpf_vlog_update_len_max(struct bpf_verifier_log *log, u32 add_len) in bpf_vlog_update_len_max() argument 48 u64 len = log->end_pos + add_len; in bpf_vlog_update_len_max() 55 log->len_max = UINT_MAX; in bpf_vlog_update_len_max() 56 else if (len > log->len_max) in bpf_vlog_update_len_max() 57 log->len_max = len; in bpf_vlog_update_len_max() 60 void bpf_verifier_vlog(struct bpf_verifier_log *log, const char *fmt, in bpf_verifier_vlog() argument [all …]
|
| /linux/fs/ntfs3/ |
| H A D | fslog.c | 1117 static inline u32 lsn_to_vbo(struct ntfs_log *log, const u64 lsn) in lsn_to_vbo() argument 1119 u32 vbo = (lsn << log->seq_num_bits) >> (log->seq_num_bits - 3); in lsn_to_vbo() 1125 static inline u32 next_page_off(struct ntfs_log *log, u32 off) in next_page_off() argument 1127 off = (off & ~log->sys_page_mask) + log->page_size; in next_page_off() 1128 return off >= log->l_size ? log->first_page : off; in next_page_off() 1131 static inline u32 lsn_to_page_off(struct ntfs_log *log, u64 lsn) in lsn_to_page_off() argument 1133 return (((u32)lsn) << 3) & log->page_mask; in lsn_to_page_off() 1136 static inline u64 vbo_to_lsn(struct ntfs_log *log, u32 off, u64 Seq) in vbo_to_lsn() argument 1138 return (off >> 3) + (Seq << log->file_data_bits); in vbo_to_lsn() 1141 static inline bool is_lsn_in_file(struct ntfs_log *log, u64 lsn) in is_lsn_in_file() argument [all …]
|
| /linux/drivers/pci/pcie/ |
| H A D | tlp.c | 64 unsigned int tlp_len, bool flit, struct pcie_tlp_log *log) in pcie_read_tlp_log() argument 69 if (tlp_len > ARRAY_SIZE(log->dw)) in pcie_read_tlp_log() 70 tlp_len = ARRAY_SIZE(log->dw); in pcie_read_tlp_log() 72 memset(log, 0, sizeof(*log)); in pcie_read_tlp_log() 80 ret = pci_read_config_dword(dev, off, &log->dw[i]); in pcie_read_tlp_log() 89 log->header_len = flit ? tlp_len : 4; in pcie_read_tlp_log() 90 log->flit = flit; in pcie_read_tlp_log() 107 const struct pcie_tlp_log *log, const char *level, in pcie_print_tlp_log() argument 116 log->dw[0], log->dw[1], log->dw[2], log->dw[3]); in pcie_print_tlp_log() 118 if (log->flit) { in pcie_print_tlp_log() [all …]
|
| /linux/include/linux/ |
| H A D | dm-dirty-log.h | 36 int (*ctr)(struct dm_dirty_log *log, struct dm_target *ti, 38 void (*dtr)(struct dm_dirty_log *log); 44 int (*presuspend)(struct dm_dirty_log *log); 45 int (*postsuspend)(struct dm_dirty_log *log); 46 int (*resume)(struct dm_dirty_log *log); 52 uint32_t (*get_region_size)(struct dm_dirty_log *log); 58 int (*is_clean)(struct dm_dirty_log *log, region_t region); 71 int (*in_sync)(struct dm_dirty_log *log, region_t region, 78 int (*flush)(struct dm_dirty_log *log); 86 void (*mark_region)(struct dm_dirty_log *log, region_t region); [all …]
|
| /linux/drivers/md/ |
| H A D | dm-log.c | 154 struct dm_dirty_log *log; in dm_dirty_log_create() local 156 log = kmalloc_obj(*log); in dm_dirty_log_create() 157 if (!log) in dm_dirty_log_create() 162 kfree(log); in dm_dirty_log_create() 166 log->flush_callback_fn = flush_callback_fn; in dm_dirty_log_create() 167 log->type = type; in dm_dirty_log_create() 168 if (type->ctr(log, ti, argc, argv)) { in dm_dirty_log_create() 169 kfree(log); in dm_dirty_log_create() 174 return log; in dm_dirty_log_create() 178 void dm_dirty_log_destroy(struct dm_dirty_log *log) in dm_dirty_log_destroy() argument [all …]
|
| H A D | raid5-ppl.c | 136 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() 253 bio_init(&io->bio, log->rdev->bdev, io->biovec, PPL_IO_INLINE_BVECS, in ppl_new_iounit() 267 static int ppl_log_stripe(struct ppl_log *log, struct stripe_head *sh) in ppl_log_stripe() argument 269 struct ppl_io_unit *io = log->current_io; in ppl_log_stripe() 280 if (io && (io->pp_size == log->entry_space || in ppl_log_stripe() 289 io = ppl_new_iounit(log, sh); in ppl_log_stripe() 292 spin_lock_irq(&log->io_list_lock); in ppl_log_stripe() [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/drivers/net/ethernet/meta/fbnic/ |
| H A D | fbnic_fw_log.c | 38 struct fbnic_fw_log *log = &fbd->fw_log; in fbnic_fw_log_init() local 49 INIT_LIST_HEAD(&log->entries); in fbnic_fw_log_init() 50 log->size = FBNIC_FW_LOG_SIZE; in fbnic_fw_log_init() 51 log->data_start = data; in fbnic_fw_log_init() 52 log->data_end = data + FBNIC_FW_LOG_SIZE; in fbnic_fw_log_init() 59 struct fbnic_fw_log *log = &fbd->fw_log; in fbnic_fw_log_free() local 64 INIT_LIST_HEAD(&log->entries); in fbnic_fw_log_free() 65 log->size = 0; in fbnic_fw_log_free() 66 vfree(log->data_start); in fbnic_fw_log_free() 67 log->data_start = NULL; in fbnic_fw_log_free() [all …]
|
| /linux/tools/perf/tests/shell/base_report/ |
| H A D | test_basic.sh | 26 $CMD_PERF report --help > $LOGS_DIR/basic_helpmsg.log 2> $LOGS_DIR/basic_helpmsg.err 31 "OVERHEAD\s+CALCULATION" "SEE ALSO" < $LOGS_DIR/basic_helpmsg.log 36 < $LOGS_DIR/basic_helpmsg.log 41 < $LOGS_DIR/basic_helpmsg.log 46 < $LOGS_DIR/basic_helpmsg.log 51 < $LOGS_DIR/basic_helpmsg.log 56 < $LOGS_DIR/basic_helpmsg.log 72 $CMD_PERF report -i $CURRENT_TEST_DIR/perf.data --stdio > $LOGS_DIR/basic_basic.log 2> $LOGS_DIR/ba… 81 "$REGEX_LINES_HEADER" "$REGEX_LINES" < $LOGS_DIR/basic_basic.log 94 … $CURRENT_TEST_DIR/perf.data --show-nr-samples > $LOGS_DIR/basic_nrsamples.log 2> $LOGS_DIR/basic_… [all …]
|
| /linux/drivers/char/tpm/eventlog/ |
| H A D | efi.c | 23 struct tpm_bios_log *log; in tpm_read_log_efi() local 35 log = &chip->log; 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() 80 devm_kfree(&chip->dev, log->bios_event_log); in tpm_read_log_efi() 95 tmp = devm_krealloc(&chip->dev, log->bios_event_log, in tpm_read_log_efi() 99 devm_kfree(&chip->dev, log->bios_event_log); in tpm_read_log_efi() 104 log->bios_event_log = tmp; in tpm_read_log_efi() 111 memcpy((void *)log->bios_event_log + log_size, in tpm_read_log_efi() [all …]
|
| H A D | of.c | 34 chip->log.bios_event_log = devm_memremap(&chip->dev, res.start, resource_size(&res), in tpm_read_log_memory_region() 36 if (IS_ERR(chip->log.bios_event_log)) in tpm_read_log_memory_region() 39 chip->log.bios_event_log_end = chip->log.bios_event_log + resource_size(&res); in tpm_read_log_memory_region() 50 struct tpm_bios_log *log; in tpm_read_log_of() local 54 log = &chip->log; in tpm_read_log_of() 93 log->bios_event_log = devm_kmemdup(&chip->dev, __va(base), size, GFP_KERNEL); in tpm_read_log_of() 94 if (!log->bios_event_log) in tpm_read_log_of() 97 log->bios_event_log_end = log->bios_event_log + size; in tpm_read_log_of()
|
| /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 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 …]
|
| 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/tools/testing/selftests/rcutorture/bin/ |
| H A D | kvm-series.sh | 44 git log --pretty=format:"%h" "${commit_list}" > $T/commits 76 echo " --- " $scriptname $args | tee -a $T/log 77 echo " --- Results directory: " $ds | tee -a $T/log 95 echo Starting ${config}/${sha1} "($((nbuilt+1)) of ${n2build})" at `date` | tee -a $T/log 167 echo Waiting, cpusused=${cpusused}, ncpus=${ncpus} `date` | tee -a $T/log 210 echo | tee -a $T/log # Put a blank line between build and run messages. 225 echo | tee -a $T/log 226 echo ${nsuccess} SUCCESSES: | tee -a $T/log 227 echo ${successlist} | fmt | tee -a $T/log 231 echo | tee -a $T/log [all...] |
| /linux/Documentation/ABI/testing/ |
| H A D | sysfs-fs-xfs | 1 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_bytes 23 The current state of the log reserve grant head. It 24 represents the total log reservation of all currently 28 What: /sys/fs/xfs/<disk>/log/write_grant_head_bytes [all …]
|
| /linux/tools/testing/selftests/powerpc/eeh/ |
| H A D | eeh-functions.sh | 6 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/tools/testing/selftests/amd-pstate/ |
| H A D | gitsource.sh | 63 rm -rf $OUTFILE_GIT*.log 91 …KUP_DIR/$OUTFILE_GIT.time-gitsource-$1-$2.log make test -j$MAKE_CPUS > $BACKUP_DIR/$OUTFILE_GIT-pe… 104 … results/tracer-gitsource-$1-$2/cpu.csv | sed -e '1d' | sed s/,// > $OUTFILE_GIT-des-perf-$1-$2.log 105 …perf=$(awk 'BEGIN {i=0; sum=0};{i++; sum += $1};END {print sum/i}' $OUTFILE_GIT-des-perf-$1-$2.log) 108 …$7}' results/tracer-gitsource-$1-$2/cpu.csv | sed -e '1d' | sed s/,// > $OUTFILE_GIT-freq-$1-$2.log 109 avg_freq=$(awk 'BEGIN {i=0; sum=0};{i++; sum += $1};END {print sum/i}' $OUTFILE_GIT-freq-$1-$2.log) 112 …11}' results/tracer-gitsource-$1-$2/cpu.csv | sed -e '1d' | sed s/,// > $OUTFILE_GIT-load-$1-$2.log 113 avg_load=$(awk 'BEGIN {i=0; sum=0};{i++; sum += $1};END {print sum/i}' $OUTFILE_GIT-load-$1-$2.log) 116 … user $OUTFILE_GIT.time-gitsource-$1-$2.log | awk '{print $1}' | sed -e 's/user//' > $OUTFILE_GIT-… 117 time_sum=$(awk 'BEGIN {sum=0};{sum += $1};END {print sum}' $OUTFILE_GIT-time-$1-$2.log) [all …]
|
| H A D | tbench.sh | 58 rm -rf $OUTFILE_TBENCH*.log 71 … 1000 -e power/energy-pkg/ tbench -t $TIME_LIMIT $PROCESS_NUM > $OUTFILE_TBENCH-perf-$1-$2.log 2>&1 86 … results/tracer-tbench-$1-$2/cpu.csv | sed -e '1d' | sed s/,// > $OUTFILE_TBENCH-des-perf-$1-$2.log 87 …f=$(awk 'BEGIN {i=0; sum=0};{i++; sum += $1};END {print sum/i}' $OUTFILE_TBENCH-des-perf-$1-$2.log) 90 …$7}' results/tracer-tbench-$1-$2/cpu.csv | sed -e '1d' | sed s/,// > $OUTFILE_TBENCH-freq-$1-$2.log 91 …_freq=$(awk 'BEGIN {i=0; sum=0};{i++; sum += $1};END {print sum/i}' $OUTFILE_TBENCH-freq-$1-$2.log) 94 …11}' results/tracer-tbench-$1-$2/cpu.csv | sed -e '1d' | sed s/,// > $OUTFILE_TBENCH-load-$1-$2.log 95 …_load=$(awk 'BEGIN {i=0; sum=0};{i++; sum += $1};END {print sum/i}' $OUTFILE_TBENCH-load-$1-$2.log) 98 …grep Throughput $OUTFILE_TBENCH-perf-$1-$2.log | awk '{print $2}' > $OUTFILE_TBENCH-throughput-$1-… 99 tp_sum=$(awk 'BEGIN {sum=0};{sum += $1};END {print sum}' $OUTFILE_TBENCH-throughput-$1-$2.log) [all …]
|
| /linux/drivers/gpu/drm/xe/ |
| H A D | xe_guc_log.c | 96 log_to_guc(struct xe_guc_log *log) in log_to_guc() argument 98 return container_of(log, struct xe_guc, log); in log_to_guc() 102 log_to_gt(struct xe_guc_log *log) in log_to_gt() argument 104 return container_of(log, struct xe_gt, uc.guc.log); in log_to_gt() 108 log_to_xe(struct xe_guc_log *log) in log_to_xe() argument 110 return gt_to_xe(log_to_gt(log)); in log_to_xe() 113 static struct xe_guc_log_snapshot *xe_guc_log_snapshot_alloc(struct xe_guc_log *log, bool atomic) in xe_guc_log_snapshot_alloc() argument 128 snapshot->size = xe_bo_size(log->bo); in xe_guc_log_snapshot_alloc() 188 struct xe_guc_log_snapshot *xe_guc_log_snapshot_capture(struct xe_guc_log *log, bool atomic) in xe_guc_log_snapshot_capture() argument 191 struct xe_device *xe = log_to_xe(log); in xe_guc_log_snapshot_capture() [all …]
|
| /linux/tools/perf/tests/shell/base_probe/ |
| H A D | test_basic.sh | 31 $CMD_PERF probe --help > $LOGS_DIR/basic_helpmsg.log 2> $LOGS_DIR/basic_helpmsg.err 37 < $LOGS_DIR/basic_helpmsg.log 41 < $LOGS_DIR/basic_helpmsg.log 45 "list.*EVENT" "line=" "vars=" "externs" < $LOGS_DIR/basic_helpmsg.log 49 "max-probes" "exec=" "demangle-kernel" < $LOGS_DIR/basic_helpmsg.log 65 $CMD_PERF probe 2> $LOGS_DIR/basic_usage.log > /dev/null 69 "line" "vars" "externs" "range" < $LOGS_DIR/basic_usage.log 79 $CMD_PERF probe --quiet --add vfs_read > $LOGS_DIR/basic_quiet01.log 2> $LOGS_DIR/basic_quiet01.err 81 $CMD_PERF probe --quiet --del vfs_read > $LOGS_DIR/basic_quiet03.log 2> $LOGS_DIR/basic_quiet02.err
|