/linux/tools/perf/tests/attr/ |
A D | README | 35 perf record kill (test-record-basic) 36 perf record -b kill (test-record-branch-any) 44 perf record -c 123 kill (test-record-count) 45 perf record -d kill (test-record-data) 46 perf record -F 100 kill (test-record-freq) 48 perf record --call-graph dwarf kill (test-record-graph-dwarf) 49 perf record --call-graph fp kill (test-record-graph-fp) 50 perf record --group -e cycles,instructions kill (test-record-group) 51 perf record -e '{cycles,instructions}' kill (test-record-group1) 56 perf record -c 100 -P kill (test-record-period) [all …]
|
/linux/sound/usb/6fire/ |
A D | firmware.c | 89 while (record->txt_offset < record->txt_length in usb6fire_fw_ihex_next_record() 90 && record->txt_data[record->txt_offset] != ':') in usb6fire_fw_ihex_next_record() 92 if (record->txt_offset == record->txt_length) in usb6fire_fw_ihex_next_record() 97 if (record->txt_offset + 8 > record->txt_length) { in usb6fire_fw_ihex_next_record() 102 record->len = usb6fire_fw_ihex_hex(record->txt_data + in usb6fire_fw_ihex_next_record() 105 record->address = usb6fire_fw_ihex_hex(record->txt_data + in usb6fire_fw_ihex_next_record() 108 record->address |= usb6fire_fw_ihex_hex(record->txt_data + in usb6fire_fw_ihex_next_record() 116 if (record->txt_offset + 2 * (record->len + 1) > record->txt_length) { in usb6fire_fw_ihex_next_record() 121 record->data[i] = usb6fire_fw_ihex_hex(record->txt_data in usb6fire_fw_ihex_next_record() 125 usb6fire_fw_ihex_hex(record->txt_data + record->txt_offset, &crc); in usb6fire_fw_ihex_next_record() [all …]
|
/linux/drivers/firmware/efi/ |
A D | efi-pstore.c | 63 record->part = part; in efi_pstore_read_func() 64 record->count = cnt; in efi_pstore_read_func() 75 record->part = part; in efi_pstore_read_func() 90 record->count = 0; in efi_pstore_read_func() 229 if (!record->buf) in efi_pstore_read() 254 record->id = generic_id(record->time.tv_sec, record->part, in efi_pstore_write() 255 record->count); in efi_pstore_write() 261 record->type, record->part, record->count, in efi_pstore_write() 269 preemptible(), record->size, record->psi->buf); in efi_pstore_write() 339 record->type, record->part, record->count, in efi_pstore_erase() [all …]
|
/linux/fs/pstore/ |
A D | platform.c | 373 memset(record, 0, sizeof(*record)); in pstore_record_init() 503 record.size = c; in pstore_console_write() 539 if (record->buf) in pstore_write_user_compat() 542 record->buf = memdup_user(buf, record->size); in pstore_write_user_compat() 548 ret = record->psi->write(record); in pstore_write_user_compat() 700 ret = crypto_comp_decompress(tfm, record->buf, record->size, in decompress_record() 709 memcpy(workspace + unzipped_len, record->buf + record->size, in decompress_record() 754 record = kzalloc(sizeof(*record), GFP_KERNEL); in pstore_get_backend_records() 755 if (!record) { in pstore_get_backend_records() 761 record->size = psi->read(record); in pstore_get_backend_records() [all …]
|
A D | inode.c | 56 if (private->record) { in free_pstore_private() 58 kfree(private->record); in free_pstore_private() 183 struct pstore_record *record = p->record; in pstore_unlink() local 186 if (!record->psi->erase) in pstore_unlink() 201 record->psi->erase(record); in pstore_unlink() 352 size_t size = record->size + record->ecc_notice_size; in pstore_mkfile() 361 if (pos->record->type == record->type && in pstore_mkfile() 362 pos->record->id == record->id && in pstore_mkfile() 363 pos->record->psi == record->psi) in pstore_mkfile() 375 record->psi->name, record->id, in pstore_mkfile() [all …]
|
A D | ram.c | 138 record->id = id; in ramoops_get_next_prz() 189 record->time.tv_sec = 0; in ramoops_pstore_read() 196 record); in ramoops_pstore_read() 221 record); in ramoops_pstore_read() 256 record->id = 0; in ramoops_pstore_read() 270 record->buf = kmalloc(size + record->ecc_notice_size + 1, GFP_KERNEL); in ramoops_pstore_read() 316 persistent_ram_write(cxt->cprz, record->buf, record->size); in ramoops_pstore_write() 332 record->size); in ramoops_pstore_write() 358 if (record->part != 1) in ramoops_pstore_write() 382 size = record->size; in ramoops_pstore_write() [all …]
|
A D | zone.c | 707 return psz_kmsg_erase(cxt, cxt->kpszs[record->id], record); in psz_pstore_erase() 837 cnt = record->size; in psz_record_write() 838 buf = record->buf; in psz_record_write() 978 if (!record->buf) { in psz_kmsg_read() 984 if (!record->buf) in psz_kmsg_read() 991 kfree(record->buf); in psz_kmsg_read() 1016 ret = pstore_ftrace_combine_log(&record->buf, &record->size, in psz_ftrace_read() 1026 record->id = 0; in psz_ftrace_read() 1027 return record->size ? record->size : -ENOMSG; in psz_ftrace_read() 1045 if (!record->buf) in psz_record_read() [all …]
|
/linux/drivers/usb/misc/ |
A D | ezusb.c | 64 const struct ihex_binrec *record; in ezusb_ihex_firmware_download() local 79 for (; record; record = ihex_next_binrec(record)) { 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() 99 for (; record; record = ihex_next_binrec(record)) { in ezusb_ihex_firmware_download() 102 (unsigned char *)record->data, in ezusb_ihex_firmware_download() 103 be16_to_cpu(record->len), WRITE_INT_RAM); in ezusb_ihex_firmware_download() 108 be32_to_cpu(record->addr), record->data, in ezusb_ihex_firmware_download() [all …]
|
/linux/tools/firmware/ |
A D | ihex2fw.c | 164 if (!record) { in process_ihex() 169 record->len = len; in process_ihex() 197 if (!record->len) in process_ihex() 201 file_record(record); in process_ihex() 205 if (record->addr || record->len) { in process_ihex() 214 if (record->addr || record->len != 2) { in process_ihex() 222 offset = record->data[0] << 8 | record->data[1]; in process_ihex() 228 if (record->addr || record->len != 4) { in process_ihex() 241 file_record(record); in process_ihex() 261 record->next = *p; in file_record() [all …]
|
/linux/fs/jbd2/ |
A D | revoke.c | 146 if (!record) in insert_revoke_hash() 149 record->sequence = seq; in insert_revoke_hash() 150 record->blocknr = blocknr; in insert_revoke_hash() 173 return record; in find_revoke_record() 175 record = (struct jbd2_revoke_record_s *) record->hash.next; in find_revoke_record() 446 if (record) { in jbd2_journal_cancel_revoke() 450 list_del(&record->hash); in jbd2_journal_cancel_revoke() 499 record->blocknr, in jbd2_clear_buffer_revoked_flags() 557 list_del(&record->hash); in jbd2_journal_write_revoke_records() 690 if (record) { in jbd2_journal_set_revoke() [all …]
|
/linux/drivers/net/ethernet/broadcom/bnxt/ |
A D | bnxt_coredump.c | 208 if (record->commandline[i]) in bnxt_fill_cmdline() 231 memset(record, 0, sizeof(*record)); in bnxt_fill_coredump_record() 233 record->flags = 0; in bnxt_fill_coredump_record() 234 record->low_version = 0; in bnxt_fill_coredump_record() 235 record->high_version = 1; in bnxt_fill_coredump_record() 236 record->asic_state = 0; in bnxt_fill_coredump_record() 238 sizeof(record->system_name)); in bnxt_fill_coredump_record() 246 bnxt_fill_cmdline(record); in bnxt_fill_coredump_record() 254 strscpy(record->os_name, utsname()->sysname, sizeof(record->os_name)); in bnxt_fill_coredump_record() 266 record->asic_id2 = 0; in bnxt_fill_coredump_record() [all …]
|
/linux/tools/perf/ |
A D | builtin-record.c | 90 struct record { struct 289 struct record *rec; 517 struct record *rec = container_of(tool, struct record, tool); in process_synthesized_event() 537 struct record *rec = to; in record__pushfn() 601 struct record *rec = container_of(tool, struct record, tool); in record__process_auxtrace() 989 struct record *rec = container_of(tool, struct record, tool); in process_sample_event() 2397 struct record *rec = container_of(tool, struct record, tool); in process_timestamp_boundary() 2433 static struct record record = { variable 2674 struct record *rec = &record; in cmd_record() 2954 struct record *rec = &record; in snapshot_sig_handler() [all …]
|
/linux/tools/perf/util/arm-spe-decoder/ |
A D | arm-spe-decoder.c | 153 memset(&decoder->record, 0x0, sizeof(decoder->record)); in arm_spe_read_record() 154 decoder->record.context_id = (u64)-1; in arm_spe_read_record() 166 decoder->record.timestamp = payload; in arm_spe_read_record() 173 decoder->record.from_ip = ip; in arm_spe_read_record() 175 decoder->record.to_ip = ip; in arm_spe_read_record() 177 decoder->record.virt_addr = ip; in arm_spe_read_record() 179 decoder->record.phys_addr = ip; in arm_spe_read_record() 184 decoder->record.context_id = payload; in arm_spe_read_record() 189 decoder->record.op = ARM_SPE_ST; in arm_spe_read_record() 191 decoder->record.op = ARM_SPE_LD; in arm_spe_read_record() [all …]
|
/linux/lib/pldmfw/ |
A D | pldmfw.c | 323 struct pldmfw_record *record; in pldm_parse_one_record() local 331 record = kzalloc(sizeof(*record), GFP_KERNEL); in pldm_parse_one_record() 332 if (!record) in pldm_parse_one_record() 335 INIT_LIST_HEAD(&record->descs); in pldm_parse_one_record() 356 record->component_bitmap = bitmap_zalloc(record->component_bitmap_len, in pldm_parse_one_record() 358 if (!record->component_bitmap) in pldm_parse_one_record() 560 if (record->component_bitmap) { in pldmfw_free_priv() 565 list_del(&record->entry); in pldmfw_free_priv() 566 kfree(record); in pldmfw_free_priv() 696 struct pldmfw_record *record; in pldm_find_matching_record() local [all …]
|
/linux/tools/lib/traceevent/plugins/ |
A D | plugin_sched_switch.c | 34 struct tep_record *record, in write_and_save_comm() argument 40 comm = (char *)(record->data + field->offset); in write_and_save_comm() 54 struct tep_record *record, in sched_wakeup_handler() argument 60 if (tep_get_field_val(s, event, "pid", record, &val, 1)) in sched_wakeup_handler() 65 write_and_save_comm(field, record, s, val); in sched_wakeup_handler() 70 if (tep_get_field_val(s, event, "prio", record, &val, 0) == 0) in sched_wakeup_handler() 83 struct tep_record *record, in sched_switch_handler() argument 89 if (tep_get_field_val(s, event, "prev_pid", record, &val, 1)) in sched_switch_handler() 94 write_and_save_comm(field, record, s, val); in sched_switch_handler() 107 if (tep_get_field_val(s, event, "next_pid", record, &val, 1)) in sched_switch_handler() [all …]
|
A D | plugin_kvm.c | 262 if (tep_get_field_val(s, event, field, record, &val, 1) < 0) in print_exit_reason() 265 if (tep_get_field_val(s, event, "isa", record, &isa, 0) < 0) in print_exit_reason() 281 if (print_exit_reason(s, record, event, "exit_reason") < 0) in kvm_exit_handler() 299 struct tep_record *record, in kvm_emulate_insn_handler() argument 307 if (tep_get_field_val(s, event, "rip", record, &rip, 1) < 0) in kvm_emulate_insn_handler() 313 if (tep_get_field_val(s, event, "len", record, &len, 1) < 0) in kvm_emulate_insn_handler() 341 if (print_exit_reason(s, record, event, "exit_code") < 0) in kvm_nested_vmexit_inject_handler() 415 "root_count", record, 1); in kvm_mmu_print_role() 425 struct tep_record *record, in kvm_mmu_get_page_handler() argument 435 if (tep_get_field_val(s, event, "gfn", record, &val, 1) < 0) in kvm_mmu_get_page_handler() [all …]
|
A D | plugin_hrtimer.c | 14 struct tep_record *record, in timer_expire_handler() argument 20 record, 0) == -1) in timer_expire_handler() 22 record, 1); in timer_expire_handler() 26 tep_print_num_field(s, "%llu", event, "now", record, 1); in timer_expire_handler() 29 record, 0); in timer_expire_handler() 34 struct tep_record *record, in timer_start_handler() argument 40 record, 0) == -1) in timer_start_handler() 42 record, 1); in timer_start_handler() 45 record, 0); in timer_start_handler() 48 tep_print_num_field(s, "%llu", event, "expires", record, 1); in timer_start_handler() [all …]
|
A D | plugin_function.c | 141 if (tep_get_field_val(s, event, "ip", record, &function, 1)) in function_handler() 146 if (tep_get_field_val(s, event, "parent_ip", record, &pfunction, 1)) in function_handler() 152 index = add_and_get_index(parent, func, record->cpu); in function_handler() 173 trace_stack_handler(struct trace_seq *s, struct tep_record *record, in trace_stack_handler() argument 180 void *data = record->data; in trace_stack_handler() 192 for (data += field->offset; data < record->data + record->size; in trace_stack_handler() 211 trace_raw_data_handler(struct trace_seq *s, struct tep_record *record, in trace_raw_data_handler() argument 217 void *data = record->data; in trace_raw_data_handler() 219 if (tep_get_field_val(s, event, "id", record, &id, 1)) in trace_raw_data_handler() 232 for (data += field->offset; data < record->data + record->size; in trace_raw_data_handler() [all …]
|
/linux/tools/perf/Documentation/ |
A D | jitdump-specification.txt | 67 The payload of the record must immediately follow the record header without padding. 69 V/ JIT_CODE_LOAD record 72 The record has the following fields following the fixed-size record header in order: 83 * record header 94 VI/ JIT_CODE_MOVE record 98 The record has the following fields following the fixed-size record header in order: 115 VII/ JIT_DEBUG_INFO record 117 The record type is optional. 121 The record has the following fields following the fixed-size record header in order: 139 VIII/ JIT_CODE_CLOSE record [all …]
|
A D | perf-daemon.txt | 7 perf-daemon - Run record sessions on background 24 monitors configured record sessions. 27 'perf record' child tasks, like: 106 Defines new record session. The value is record's command 107 line without the 'record' keyword. 114 Example with 2 record sessions: 183 [ perf record: dump data: Woken up 1 times ] 184 [ perf record: Dump perf.data.2020123017013149 ] 194 [ perf record: dump data: Woken up 1 times ] 197 [ perf record: dump data: Woken up 1 times ] [all …]
|
A D | tips.txt | 2 Sample related events with: perf record -e '{cycles,instructions}:S' 7 Save output of perf stat using: perf stat record <target workload> 17 Profiling branch (mis)predictions with: perf record -b / perf report 18 To show assembler sample contexts use perf record -b / perf script -F +brstackinsn --xed 23 For memory address profiling, try: perf mem record / perf mem report 25 To record callchains for each sample: perf record -g 26 To record every process run by a user: perf record -u <user> 27 Skip collecting build-id when recording: perf record -B 28 To change sampling frequency to 100 Hz: perf record -F 100 33 System-wide collection from all CPUs: perf record -a [all …]
|
/linux/drivers/gpu/drm/vboxvideo/ |
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 187 record->len_and_flags = VBVA_F_RECORD_PARTIAL; in vbva_buffer_begin_update() 190 vbva_ctx->record = record; in vbva_buffer_begin_update() 197 struct vbva_record *record = vbva_ctx->record; in vbva_buffer_end_update() local 199 WARN_ON(!vbva_ctx->vbva || !record || in vbva_buffer_end_update() [all …]
|
/linux/arch/powerpc/kernel/ |
A D | nvram_64.c | 392 if (record->part > 1 || (record->type != PSTORE_TYPE_DMESG)) in nvram_pstore_write() 402 if (record->compressed) in nvram_pstore_write() 407 record->count); in nvram_pstore_write() 412 record->id = record->part; in nvram_pstore_write() 442 record->time.tv_sec = 0; in nvram_pstore_read() 457 record->time.tv_sec = 0; in nvram_pstore_read() 467 record->time.tv_sec = 0; in nvram_pstore_read() 496 record->count = 0; in nvram_pstore_read() 499 record->id = id_no; in nvram_pstore_read() 519 if (record->buf == NULL) in nvram_pstore_read() [all …]
|
/linux/tools/perf/util/ |
A D | arm-spe.c | 274 struct arm_spe_record *record = &speq->decoder->record; in arm_spe_prep_sample() local 279 sample->ip = record->from_ip; in arm_spe_prep_sample() 322 struct arm_spe_record *record = &speq->decoder->record; in arm_spe__synth_mem_sample() local 341 struct arm_spe_record *record = &speq->decoder->record; in arm_spe__synth_branch_sample() local 349 sample.addr = record->to_ip; in arm_spe__synth_branch_sample() 370 if (record->op == ARM_SPE_LD) in arm_spe__synth_data_source() 408 const struct arm_spe_record *record = &speq->decoder->record; in arm_spe_sample() local 489 struct arm_spe_record *record; in arm_spe_run_decoder() local 519 record = &speq->decoder->record; in arm_spe_run_decoder() 545 record = &speq->decoder->record; in arm_spe_run_decoder() [all …]
|
/linux/drivers/misc/cxl/ |
A D | vphb.c | 106 int record; in cxl_pcie_config_info() local 108 record = cxl_pcie_cfg_record(bus->number, devfn); in cxl_pcie_config_info() 109 if (record > afu->crs_num) in cxl_pcie_config_info() 112 *_record = record; in cxl_pcie_config_info() 119 int rc, record; in cxl_pcie_read_config() local 130 rc = cxl_pcie_config_info(bus, devfn, afu, &record); in cxl_pcie_read_config() 136 rc = cxl_ops->afu_cr_read8(afu, record, offset, &val8); in cxl_pcie_read_config() 140 rc = cxl_ops->afu_cr_read16(afu, record, offset, &val16); in cxl_pcie_read_config() 159 int rc, record; in cxl_pcie_write_config() local 167 rc = cxl_pcie_config_info(bus, devfn, afu, &record); in cxl_pcie_write_config() [all …]
|