| /linux/drivers/firmware/efi/ |
| H A D | efi-pstore.c | 83 static int efi_pstore_read_func(struct pstore_record *record, in efi_pstore_read_func() argument 96 &record->type, &part, &cnt, &time, &data_type) == 5) { in efi_pstore_read_func() 97 record->id = generic_id(time, part, cnt); in efi_pstore_read_func() 98 record->part = part; in efi_pstore_read_func() 99 record->count = cnt; in efi_pstore_read_func() 100 record->time.tv_sec = time; in efi_pstore_read_func() 101 record->time.tv_nsec = 0; in efi_pstore_read_func() 103 record->compressed = true; in efi_pstore_read_func() 105 record->compressed = false; in efi_pstore_read_func() 106 record->ecc_notice_size = 0; in efi_pstore_read_func() [all …]
|
| /linux/tools/perf/Documentation/ |
| H A D | jitdump-specification.txt | 29 …xed size header describing the type of record and its size. It is, itself, followed by the payload… 51 IV/ Record header 53 …ader is immediately followed by records. Each record starts with a fixed size header describing th… 55 The record header is specified in order as follows: 56 * uint32_t id : a value identifying the record type (see below) 57 * uint32_t total_size: the size in bytes of the record including the header. 58 * uint64_t timestamp : a timestamp of when the record was created. 60 The following record types are defined: 61 * Value 0 : JIT_CODE_LOAD : record describing a jitted function 62 * Value 1 : JIT_CODE_MOVE : record describing an already jitted function which is moved [all …]
|
| H A D | tips.txt | 2 Sample related events with: perf record -e '{cycles,instructions}:S' 8 Save output of perf stat using: perf stat record <target workload> 19 Profiling branch (mis)predictions with: perf record -b / perf report 20 To show assembler sample context control flow use perf record -b / perf report --samples 10 and then browse context 22 Treat branches as callchains: perf record -b ... ; perf report --branch-history 23 Show estimate cycles per function and IPC in annotate use perf record -b ... ; perf report --total-cycles 27 For memory address profiling, try: perf mem record / perf mem report 29 To record callchains for each sample: perf record -g 30 If call chains don't work try perf record [all...] |
| H A D | perf-daemon.txt | 7 perf-daemon - Run record sessions on background 24 monitors configured record sessions. 27 'perf record' child tasks, like: 32 …916507 916508 ... \_ perf record --control=fifo:control,ack -m 10M -e cycles --overwrite --switc… 33 …916507 916509 ... \_ perf record --control=fifo:control,ack -m 20M -e sched:* --overwrite --swit… 35 Not every 'perf record' session is suitable for running under daemon. 41 Each session is started with control setup (with perf record --control 106 Defines new record session. The value is record's command 107 line without the 'record' keyword. 109 Each perf record session is run in daemon.base/<NAME> directory. [all …]
|
| H A D | perf-timechart.txt | 11 'perf timechart' [<timechart options>] {record} [<record options>] 17 'perf timechart record <command>' to record the system level events 20 but it's possible to record IO (disk, network) activity using -I argument. 86 RECORD OPTIONS 90 Record only power-related events 93 Record only tasks-related events 96 Record only io-related events 107 $ perf timechart record gi [all...] |
| /linux/tools/perf/util/arm-spe-decoder/ |
| H A D | arm-spe-decoder.c | 158 memset(&decoder->record, 0x0, sizeof(decoder->record)); in arm_spe_read_record() 159 decoder->record.context_id = (u64)-1; in arm_spe_read_record() 171 decoder->record.timestamp = payload; in arm_spe_read_record() 178 decoder->record.from_ip = ip; in arm_spe_read_record() 180 decoder->record.to_ip = ip; in arm_spe_read_record() 182 decoder->record.virt_addr = ip; in arm_spe_read_record() 184 decoder->record.phys_addr = ip; in arm_spe_read_record() 186 decoder->record.prev_br_tgt = ip; in arm_spe_read_record() 190 decoder->record.latency = payload; in arm_spe_read_record() 193 decoder->record.context_id = payload; in arm_spe_read_record() [all …]
|
| /linux/sound/usb/6fire/ |
| H A D | firmware.c | 50 char error; /* true if an error occurred parsing this record */ 52 u8 max_len; /* maximum record length in whole ihex */ 78 * returns true if record is available, false otherwise. 79 * iff an error occurred, false will be returned and record->error will be true. 81 static bool usb6fire_fw_ihex_next_record(struct ihex_record *record) in usb6fire_fw_ihex_next_record() argument 87 record->error = false; in usb6fire_fw_ihex_next_record() 89 /* find begin of record (marked by a colon) */ in usb6fire_fw_ihex_next_record() 90 while (record->txt_offset < record->txt_length in usb6fire_fw_ihex_next_record() 91 && record->txt_data[record->txt_offset] != ':') in usb6fire_fw_ihex_next_record() 92 record->txt_offset++; in usb6fire_fw_ihex_next_record() [all …]
|
| /linux/tools/firmware/ |
| H A D | ihex2fw.c | 54 static void file_record(struct ihex_binrec *record); 134 struct ihex_binrec *record; in process_ihex() local 145 /* search for the start of record character */ in process_ihex() 151 /* Minimum record length would be about 10 characters */ in process_ihex() 153 fprintf(stderr, "Can't find valid record at line %d\n", line); in process_ihex() 162 record_size = ALIGN(sizeof(*record) + len, 4); in process_ihex() 163 record = malloc(record_size); in process_ihex() 164 if (!record) { in process_ihex() 168 memset(record, 0, record_size); in process_ihex() 169 record->len = len; in process_ihex() [all …]
|
| /linux/fs/pstore/ |
| H A D | platform.c | 224 * uncompressed record size, since any record that would be expanded by in allocate_buf_for_compression() 262 void pstore_record_init(struct pstore_record *record, in pstore_record_init() argument 265 memset(record, 0, sizeof(*record)); in pstore_record_init() 267 record->psi = psinfo; in pstore_record_init() 270 record->time = ns_to_timespec64(ktime_get_real_fast_ns()); in pstore_record_init() 310 struct pstore_record record; in pstore_dump() local 312 pstore_record_init(&record, psinfo); in pstore_dump() 313 record.type = PSTORE_TYPE_DMESG; in pstore_dump() 314 record.count = oopscount; in pstore_dump() 315 record.reason = detail->reason; in pstore_dump() [all …]
|
| H A D | zone.c | 658 struct pstore_zone *zone, struct pstore_record *record) in psz_kmsg_erase() argument 669 if (record->count != hdr->counter) in psz_kmsg_erase() 699 static int psz_pstore_erase(struct pstore_record *record) in psz_pstore_erase() argument 701 struct psz_context *cxt = record->psi->data; in psz_pstore_erase() 703 switch (record->type) { in psz_pstore_erase() 705 if (record->id >= cxt->kmsg_max_cnt) in psz_pstore_erase() 707 return psz_kmsg_erase(cxt, cxt->kpszs[record->id], record); in psz_pstore_erase() 713 if (record->id >= cxt->ftrace_max_cnt) in psz_pstore_erase() 715 return psz_record_erase(cxt, cxt->fpszs[record->id]); in psz_pstore_erase() 721 struct pstore_record *record) in psz_write_kmsg_hdr() argument [all …]
|
| /linux/tools/perf/tests/shell/ |
| H A D | record.sh | 2 # perf record tests (exclusive) 55 if ! perf record -o /dev/null --quiet ${testprog} 2> /dev/null 57 echo "Per-thread record [Skipped event not supported]" 60 if ! perf record --per-thread -o "${perfdata}" ${testprog} 2> /dev/null 62 echo "Per-thread record [Failed record]" 68 echo "Per-thread record [Failed missing output]" 80 perf record -p "${TESTPID}" --per-thread -o "${perfdata}" sleep 1 2> /dev/null 85 echo "Per-thread record [Failed record -p]" 91 echo "Per-thread record [Failed -p missing output]" 106 …if ! perf record --intr-regs=\? 2>&1 | grep -q 'available registers: AX BX CX DX SI DI BP SP IP FL… [all …]
|
| H A D | c2c.sh | 24 # Check if perf c2c record works. 25 if ! perf c2c record -o "${perfdata}" -- true > /dev/null 2>&1 ; then 32 echo "c2c record and report test" 34 …echo "c2c record and report test [Skipped: perf c2c record failed (possibly missing hardware suppo… 40 if ! perf c2c record -o "${perfdata}" -- perf test -w datasym 1 > /dev/null 2>&1 ; then 41 echo "c2c record and report test [Skipped: perf c2c record failed during workload]" 46 echo "c2c record and report test [Failed: report failed]" 52 echo "c2c record and report test [Failed: report -N failed]" 57 echo "c2c record and report test [Success]"
|
| /linux/drivers/md/dm-vdo/indexer/ |
| H A D | volume-index.h | 18 * The volume index is the primary top-level index for UDS. It contains records which map a record 19 * name to the chapter where a record with that name is stored. This mapping can definitively say 20 * when no record exists. However, because we only use a subset of the name for this index, it 21 * cannot definitively say that a record for the entry does exist. It can only say that if a record 25 * If the volume_index_record does not actually match the record name, the index can store a more 26 * specific collision record to disambiguate the new entry from the existing one. Index entries are 103 * The volume_index_record structure is used to facilitate processing of a record name. A client 104 * first calls uds_get_volume_index_record() to find the volume index record for a record name. The 105 * fields of the record can then be examined to determine the state of the record. 107 * If is_found is false, then the index did not find an entry for the record name. Calling [all …]
|
| /linux/drivers/usb/misc/ |
| H A D | ezusb.c | 64 const struct ihex_binrec *record; in ezusb_ihex_firmware_download() local 78 record = (const struct ihex_binrec *)firmware->data; in ezusb_ihex_firmware_download() 79 for (; record; record = ihex_next_binrec(record)) { in ezusb_ihex_firmware_download() 80 if (be32_to_cpu(record->addr) > fx.max_internal_adress) { in ezusb_ihex_firmware_download() 81 ret = ezusb_writememory(dev, be32_to_cpu(record->addr), in ezusb_ihex_firmware_download() 82 (unsigned char *)record->data, in ezusb_ihex_firmware_download() 83 be16_to_cpu(record->len), WRITE_EXT_RAM); in ezusb_ihex_firmware_download() 88 be32_to_cpu(record->addr), record->data, in ezusb_ihex_firmware_download() 89 be16_to_cpu(record->len)); in ezusb_ihex_firmware_download() 98 record = (const struct ihex_binrec *)firmware->data; in ezusb_ihex_firmware_download() [all …]
|
| /linux/lib/pldmfw/ |
| H A D | pldmfw.c | 109 * firmware record. 119 * * Extract a pointer to the start of the record area 172 /* extract a pointer to the record area, which just follows the main in pldm_parse_header() 250 * @record: pointer to the record this TLV belongs too 259 pldm_parse_desc_tlvs(struct pldmfw_priv *data, struct pldmfw_record *record, u8 desc_count) in pldm_parse_desc_tlvs() argument 298 list_add_tail(&desc->entry, &record->descs); in pldm_parse_desc_tlvs() 305 * pldm_parse_one_record - Verify size of one PLDM record 307 * @__record: pointer to the record to check 309 * This function checks that the record size does not exceed either the size 312 * It also verifies that the recorded length of the start of the record [all …]
|
| /linux/fs/ntfs/ |
| H A D | mft.c | 3 * NTFS kernel mft record operations. 21 * ntfs_mft_record_check - Check the consistency of an MFT record 35 ntfs_error(sb, "Record %llu has no FILE magic (0x%x)\n", in ntfs_mft_record_check() 43 ntfs_error(sb, "Record %llu has corrupt fix-up values fields\n", in ntfs_mft_record_check() 49 ntfs_error(sb, "Record %llu has corrupt allocation size (%u <> %u)\n", in ntfs_mft_record_check() 56 ntfs_error(sb, "Record %llu has corrupt in-use size (%u > %u)\n", in ntfs_mft_record_check() 63 ntfs_error(sb, "Attributes badly aligned in record %llu\n", in ntfs_mft_record_check() 70 ntfs_error(sb, "Record %llu is corrupt\n", mft_no); in ntfs_mft_record_check() 81 * map_mft_record_folio - map the folio in which a specific mft record resides 82 * @ni: ntfs inode whose mft record page to map [all …]
|
| /linux/tools/perf/util/ |
| H A D | arm-spe.c | 127 void (*ds_synth)(const struct arm_spe_record *record, 350 static struct simd_flags arm_spe__synth_simd_flags(const struct arm_spe_record *record) in arm_spe__synth_simd_flags() argument 354 if (record->op & ARM_SPE_OP_SVE) in arm_spe__synth_simd_flags() 356 else if (record->op & ARM_SPE_OP_SME) in arm_spe__synth_simd_flags() 358 else if (record->op & (ARM_SPE_OP_ASE | ARM_SPE_OP_SIMD_FP)) in arm_spe__synth_simd_flags() 361 if (record->op & ARM_SPE_OP_SVE) { in arm_spe__synth_simd_flags() 362 if (!(record->op & ARM_SPE_OP_PRED)) in arm_spe__synth_simd_flags() 364 else if (record->type & ARM_SPE_SVE_PARTIAL_PRED) in arm_spe__synth_simd_flags() 366 else if (record->type & ARM_SPE_SVE_EMPTY_PRED) in arm_spe_prep_sample() 371 if (record in arm_spe_prep_sample() local 392 struct arm_spe_record *record = &speq->decoder->record; arm_spe__prep_branch_stack() local 503 struct arm_spe_record *record = &speq->decoder->record; arm_spe__synth_mem_sample() local 527 struct arm_spe_record *record = &speq->decoder->record; arm_spe__synth_branch_sample() local 552 struct arm_spe_record *record = &speq->decoder->record; arm_spe__synth_instruction_sample() local 606 const struct arm_spe_record *record = &speq->decoder->record; arm_spe__sample_flags() local 637 arm_spe__synth_data_source_common(const struct arm_spe_record * record,union perf_mem_data_src * data_src) arm_spe__synth_data_source_common() argument 717 arm_spe__synth_data_source_ampereone(const struct arm_spe_record * record,union perf_mem_data_src * data_src) arm_spe__synth_data_source_ampereone() argument 751 arm_spe__synth_data_source_hisi_hip(const struct arm_spe_record * record,union perf_mem_data_src * data_src) arm_spe__synth_data_source_hisi_hip() argument 847 arm_spe__synth_ld_memory_level(const struct arm_spe_record * record,union perf_mem_data_src * data_src) arm_spe__synth_ld_memory_level() argument 884 arm_spe__synth_st_memory_level(const struct arm_spe_record * record,union perf_mem_data_src * data_src) arm_spe__synth_st_memory_level() argument 907 arm_spe__synth_memory_level(struct arm_spe_queue * speq,const struct arm_spe_record * record,union perf_mem_data_src * data_src) arm_spe__synth_memory_level() argument 962 arm_spe__synth_ds(struct arm_spe_queue * speq,const struct arm_spe_record * record,union perf_mem_data_src * data_src) arm_spe__synth_ds() argument 996 arm_spe__synth_data_source(struct arm_spe_queue * speq,const struct arm_spe_record * record) arm_spe__synth_data_source() argument 1027 const struct arm_spe_record *record = &speq->decoder->record; arm_spe_sample() local 1127 struct arm_spe_record *record; arm_spe_run_decoder() local 1208 struct arm_spe_record *record; arm_spe__setup_queue() local [all...] |
| /linux/include/linux/ |
| H A D | pstore.h | 24 * pstore record types (see fs/pstore/platform.c for pstore_type_names[]) 51 * struct pstore_record - details of a pstore record entry 53 * @type: pstore record type 54 * @id: per-type unique identifier for record 55 * @time: timestamp of the record 56 * @buf: pointer to record contents 62 * when the record is freed. 68 * @part: position in a multipart record 132 * Read next available backend record. Called after a successful 135 * @record: [all …]
|
| /linux/drivers/net/ethernet/broadcom/bnxt/ |
| H A D | bnxt_coredump.c | 253 static void bnxt_fill_cmdline(struct bnxt_coredump_record *record) in bnxt_fill_cmdline() argument 260 sizeof(record->commandline) - 1); in bnxt_fill_cmdline() 261 if (len && !copy_from_user(record->commandline, in bnxt_fill_cmdline() 264 if (record->commandline[i]) in bnxt_fill_cmdline() 267 record->commandline[i] = ' '; in bnxt_fill_cmdline() 269 record->commandline[last + 1] = 0; in bnxt_fill_cmdline() 274 strscpy(record->commandline, current->comm, TASK_COMM_LEN); in bnxt_fill_cmdline() 278 bnxt_fill_coredump_record(struct bnxt *bp, struct bnxt_coredump_record *record, in bnxt_fill_coredump_record() argument 287 memset(record, 0, sizeof(*record)); in bnxt_fill_coredump_record() 288 memcpy(record->signature, "cOrE", 4); in bnxt_fill_coredump_record() [all …]
|
| /linux/drivers/gpu/drm/vboxvideo/ |
| H A D | vbva_base.c | 64 struct vbva_record *record; in vbva_write() local 69 record = vbva_ctx->record; in vbva_write() 72 !record || !(record->len_and_flags & VBVA_F_RECORD_PARTIAL)) in vbva_write() 98 record->len_and_flags += chunk; in vbva_write() 158 vbva_ctx->record = NULL; in vbva_disable() 167 struct vbva_record *record; in vbva_buffer_begin_update() local 174 WARN_ON(vbva_ctx->buffer_overflow || vbva_ctx->record); in vbva_buffer_begin_update() 186 record = &vbva_ctx->vbva->records[vbva_ctx->vbva->record_free_index]; in vbva_buffer_begin_update() 187 record->len_and_flags = VBVA_F_RECORD_PARTIAL; in vbva_buffer_begin_update() 189 /* Remember which record we are using. */ in vbva_buffer_begin_update() [all …]
|
| /linux/tools/perf/ |
| H A D | builtin-record.c | 3 * builtin-record.c 5 * Builtin record command: Record the profile of a workload 31 #include "util/record.h" 115 struct record *rec; 154 struct record { struct 218 static int record__threads_enabled(struct record *rec) in record__threads_enabled() 223 static bool switch_output_signal(struct record *rec) in switch_output_signal() 229 static bool switch_output_size(struct record *rec) in switch_output_size() 236 static bool switch_output_time(struct record *re 156 optsrecord global() argument 160 itrrecord global() argument 161 evlistrecord global() argument 162 sessionrecord global() argument 186 thread_datarecord global() argument 194 index_map_cntrecord global() argument 1593 process_comp_header(void * record,size_t increment) process_comp_header() argument 2990 record_opts__parse_callchain(struct record_opts * record,struct callchain_param * callchain,const char * arg,bool unset) record_opts__parse_callchain() argument 3441 static struct record record = { global() variable [all...] |
| /linux/drivers/s390/scsi/ |
| H A D | zfcp_dbf.h | 28 * struct zfcp_dbf_rec_trigger - trace record for triggered recovery action 42 * struct zfcp_dbf_rec_running - trace record for running recovery 58 * enum zfcp_dbf_rec_id - recovery trace record id 68 * struct zfcp_dbf_rec - trace record for error recovery actions 69 * @id: unique number of recovery record type 77 * @u: record type specific data 97 * enum zfcp_dbf_san_id - SAN trace record identifier 98 * @ZFCP_DBF_SAN_REQ: request trace record id 99 * @ZFCP_DBF_SAN_RES: response trace record id 100 * @ZFCP_DBF_SAN_ELS: extended link service record id [all …]
|
| /linux/drivers/acpi/apei/ |
| H A D | erst.c | 3 * APEI Error Record Serialization Table support 531 /* record id already in cache, try next */ in __erst_record_id_cache_add_one() 543 pr_warn(FW_WARN "too many record IDs!\n"); in __erst_record_id_cache_add_one() 563 * Get the record ID of an existing error record on the persistent 564 * storage. If there is no error record on the persistent storage, the 584 /* found next record id in cache */ in erst_get_record_id_next() 591 /* Try to add one more record ID to cache */ in erst_get_record_id_next() 782 static int __erst_write_to_nvram(const struct cper_record_header *record) in __erst_write_to_nvram() argument 800 int erst_write(const struct cper_record_header *record) in erst_write() argument 809 if (memcmp(record->signature, CPER_SIG_RECORD, CPER_SIG_SIZE)) in erst_write() [all …]
|
| /linux/arch/m68k/include/asm/ |
| H A D | config.h | 11 extern int amiga_parse_bootinfo(const struct bi_record *record); 12 extern int apollo_parse_bootinfo(const struct bi_record *record); 13 extern int atari_parse_bootinfo(const struct bi_record *record); 14 extern int bvme6000_parse_bootinfo(const struct bi_record *record); 15 extern int hp300_parse_bootinfo(const struct bi_record *record); 16 extern int mac_parse_bootinfo(const struct bi_record *record); 17 extern int mvme147_parse_bootinfo(const struct bi_record *record); 18 extern int mvme16x_parse_bootinfo(const struct bi_record *record); 19 extern int q40_parse_bootinfo(const struct bi_record *record); 20 extern int virt_parse_bootinfo(const struct bi_record *record);
|
| /linux/tools/perf/tests/shell/common/ |
| H A D | patterns.sh | 161 export RE_LINE_RECORD1="^\[\s+perf\s+record:\s+Woken up $RE_NUMBER times? to write data\s+\].*$" 162 # The first line of perf-record "OK" output 164 # [ perf record: Woken up 1 times to write data ] 167 export RE_LINE_RECORD2="^\[\s+perf\s+record:\s+Captured and wrote $RE_NUMBER\s*MB\s+(?:[\w\+\.-]*(?… 168 # The second line of perf-record "OK" output 170 # [ perf record: Captured and wrote 0.405 MB perf.data (109 samples) ] 171 # [ perf record: Captured and wrote 0.405 MB perf.data (~109 samples) ] 172 # [ perf record: Captured and wrote 0.405 MB /some/temp/dir/perf.data (109 samples) ] 173 # [ perf record: Captured and wrote 0.405 MB ./perf.data (109 samples) ] 174 # [ perf record: Captured and wrote 0.405 MB ./perf.data.3 (109 samples) ] [all …]
|