Home
last modified time | relevance | path

Searched refs:record (Results 1 – 25 of 435) sorted by relevance

12345678910>>...18

/linux/drivers/firmware/efi/
H A Defi-pstore.c81 static int efi_pstore_read_func(struct pstore_record *record, in efi_pstore_read_func() argument
94 &record->type, &part, &cnt, &time, &data_type) == 5) { in efi_pstore_read_func()
95 record->id = generic_id(time, part, cnt); in efi_pstore_read_func()
96 record->part = part; in efi_pstore_read_func()
97 record->count = cnt; in efi_pstore_read_func()
98 record->time.tv_sec = time; in efi_pstore_read_func()
99 record->time.tv_nsec = 0; in efi_pstore_read_func()
101 record->compressed = true; in efi_pstore_read_func()
103 record->compressed = false; in efi_pstore_read_func()
104 record->ecc_notice_size = 0; in efi_pstore_read_func()
[all …]
/linux/tools/perf/util/arm-spe-decoder/
H A Darm-spe-decoder.c158 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 Dfirmware.c80 static bool usb6fire_fw_ihex_next_record(struct ihex_record *record) in usb6fire_fw_ihex_next_record() argument
86 record->error = false; in usb6fire_fw_ihex_next_record()
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()
91 record->txt_offset++; in usb6fire_fw_ihex_next_record()
92 if (record->txt_offset == record->txt_length) in usb6fire_fw_ihex_next_record()
96 record->txt_offset++; in usb6fire_fw_ihex_next_record()
97 if (record->txt_offset + 8 > record->txt_length) { in usb6fire_fw_ihex_next_record()
98 record->error = true; in usb6fire_fw_ihex_next_record()
102 record->len = usb6fire_fw_ihex_hex(record->txt_data + in usb6fire_fw_ihex_next_record()
[all …]
/linux/fs/pstore/
H A Dplatform.c262 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()
316 record.part = part; in pstore_dump()
[all …]
H A Dinode.c43 struct pstore_record *record; member
59 if (private->record) { in free_pstore_private()
60 kvfree(private->record->buf); in free_pstore_private()
61 kfree(private->record->priv); in free_pstore_private()
62 kfree(private->record); in free_pstore_private()
112 rec = (struct pstore_ftrace_record *)(ps->record->buf + data->off); in pstore_ftrace_seq_show()
136 if (ps->record->type == PSTORE_TYPE_FTRACE) in pstore_file_read()
139 ps->record->buf, ps->total_size); in pstore_file_read()
149 if (ps->record->type == PSTORE_TYPE_FTRACE) in pstore_file_open()
185 struct pstore_record *record = p->record; in pstore_unlink() local
[all …]
H A Dram.c124 struct pstore_record *record) in ramoops_get_next_prz() argument
143 record->type = prz->type; in ramoops_get_next_prz()
144 record->id = id; in ramoops_get_next_prz()
182 static ssize_t ramoops_pstore_read(struct pstore_record *record) in ramoops_pstore_read() argument
185 struct ramoops_context *cxt = record->psi->data; in ramoops_pstore_read()
195 record->time.tv_sec = 0; in ramoops_pstore_read()
196 record->time.tv_nsec = 0; in ramoops_pstore_read()
197 record->compressed = false; in ramoops_pstore_read()
202 record); in ramoops_pstore_read()
206 &record->time, in ramoops_pstore_read()
[all …]
H A Dzone.c658 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/drivers/usb/misc/
H A Dezusb.c64 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/tools/firmware/
H A Dihex2fw.c54 static void file_record(struct ihex_binrec *record);
134 struct ihex_binrec *record; in process_ihex() local
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()
172 if (i + 8 + (record->len * 2) > size) { in process_ihex()
178 record->addr = hex(data + i, &crc) << 8; i += 2; in process_ihex()
179 record->addr |= hex(data + i, &crc); i += 2; in process_ihex()
[all …]
/linux/fs/jbd2/
H A Drevoke.c140 struct jbd2_revoke_record_s *record; in insert_revoke_hash() local
145 record = kmem_cache_alloc(jbd2_revoke_record_cache, gfp_mask); in insert_revoke_hash()
146 if (!record) in insert_revoke_hash()
149 record->sequence = seq; in insert_revoke_hash()
150 record->blocknr = blocknr; in insert_revoke_hash()
153 list_add(&record->hash, hash_list); in insert_revoke_hash()
164 struct jbd2_revoke_record_s *record; in find_revoke_record() local
169 record = (struct jbd2_revoke_record_s *) hash_list->next; in find_revoke_record()
170 while (&(record->hash) != hash_list) { in find_revoke_record()
171 if (record->blocknr == blocknr) { in find_revoke_record()
[all …]
/linux/tools/perf/util/
H A Darm-spe.c127 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()
357 if (record->type & ARM_SPE_SVE_PARTIAL_PRED) in arm_spe__synth_simd_flags()
360 if (record->type & ARM_SPE_SVE_EMPTY_PRED) in arm_spe__synth_simd_flags()
371 struct arm_spe_record *record = &speq->decoder->record; in arm_spe_prep_sample() local
374 sample->time = tsc_to_perf_time(record->timestamp, &spe->tc); in arm_spe_prep_sample()
376 sample->ip = record->from_ip; in arm_spe_prep_sample()
382 sample->simd_flags = arm_spe__synth_simd_flags(record); in arm_spe_prep_sample()
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
605 const struct arm_spe_record *record = &speq->decoder->record; arm_spe__sample_flags() local
636 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
716 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
750 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
846 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
883 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
906 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
961 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
995 arm_spe__synth_data_source(struct arm_spe_queue * speq,const struct arm_spe_record * record) arm_spe__synth_data_source() argument
1026 const struct arm_spe_record *record = &speq->decoder->record; arm_spe_sample() local
1126 struct arm_spe_record *record; arm_spe_run_decoder() local
1207 struct arm_spe_record *record; arm_spe__setup_queue() local
[all...]
/linux/tools/perf/tests/shell/
H A Drecord.sh55 if ! perf record -o /dev/null --quiet ${testprog} 2> /dev/null
60 if ! perf record --per-thread -o "${perfdata}" ${testprog} 2> /dev/null
80 perf record -p "${TESTPID}" --per-thread -o "${perfdata}" sleep 1 2> /dev/null
106 …if ! perf record --intr-regs=\? 2>&1 | grep -q 'available registers: AX BX CX DX SI DI BP SP IP FL…
111 if ! perf record -o - --intr-regs=di,r8,dx,cx -e br_inst_retired.near_call \
125 if ! perf record -aB --synth=no -o "${perfdata}" ${testprog} 2> /dev/null
136 if ! perf record -aB --synth=no -e cpu-clock,cs --threads=cpu \
154 if ! perf record -o "${perfdata}" ${testprog} 2> /dev/null
166 if ! perf record -e cpu-clock,cs --threads=package \
193 …if ! perf record -o "${perfdata}" -e "{branches:p,instructions}" -j any,counter ${testprog} 2> /de…
[all …]
H A Drecord_bpf_filter.sh25 if ! perf record -e task-clock --filter 'period > 1' \
44 if ! perf record -e task-clock -c 10000 --filter 'ip < 0xffffffff00000000' \
70 if ! perf record -e task-clock --filter 'cpu > 0' \
78 if ! perf record --sample-cpu -e task-clock --filter 'cpu > 0' \
92 if ! perf record -e task-clock --filter 'period > 1000, ip > 0' \
100 if ! perf record -e task-clock --filter 'period > 1000 , cpu > 0 || ip > 0' \
108 if ! perf record -e task-clock --filter 'period > 0 || code_pgsz > 4096' \
122 if ! perf record -e task-clock --filter 'period > 100000' \
153 if ! perf record -e task-clock --filter 'cgroup == /' \
161 if ! perf record -e task-clock --filter 'cgroup == /' \
/linux/arch/m68k/include/asm/
H A Dconfig.h11 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/tracing/rtla/src/
H A Dtimerlat_aa.c147 struct trace_seq *s, struct tep_record *record, in timerlat_aa_irq_latency() argument
155 taa_data->tlat_irq_timstamp = record->ts; in timerlat_aa_irq_latency()
178 tep_get_field_val(s, event, "timer_latency", record, &taa_data->tlat_irq_latency, 1); in timerlat_aa_irq_latency()
179 tep_get_field_val(s, event, "seqnum", record, &taa_data->tlat_irq_seqnum, 1); in timerlat_aa_irq_latency()
182 tep_get_common_field_val(s, event, "common_pid", record, &taa_data->run_thread_pid, 1); in timerlat_aa_irq_latency()
215 struct trace_seq *s, struct tep_record *record, in timerlat_aa_thread_latency() argument
223 taa_data->tlat_thread_timstamp = record->ts; in timerlat_aa_thread_latency()
226 tep_get_field_val(s, event, "timer_latency", record, &taa_data->tlat_thread_latency, 1); in timerlat_aa_thread_latency()
227 tep_get_field_val(s, event, "seqnum", record, &taa_data->tlat_thread_seqnum, 1); in timerlat_aa_thread_latency()
239 static int timerlat_aa_handler(struct trace_seq *s, struct tep_record *record, in timerlat_aa_handler() argument
[all …]
H A Dcommon.c156 tool->record = osnoise_init_trace_tool(ops->tracer); in run_tool()
157 if (!tool->record) { in run_tool()
161 params->threshold_actions.trace_output_inst = tool->record->trace.inst; in run_tool()
162 params->end_actions.trace_output_inst = tool->record->trace.inst; in run_tool()
165 retval = trace_events_enable(&tool->record->trace, params->events); in run_tool()
171 retval = trace_set_buffer_size(&tool->record->trace, params->buffer_size); in run_tool()
220 stopped = osnoise_trace_is_off(tool, tool->record) && !stop_tracing; in run_tool()
230 trace_events_destroy(&tool->record->trace, params->events); in run_tool()
234 osnoise_destroy_tool(tool->record); in run_tool()
247 struct osnoise_tool *record = tool->record; in top_main_loop() local
[all …]
/linux/drivers/net/ethernet/broadcom/bnxt/
H A Dbnxt_coredump.c253 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 Dvbva_base.c64 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()
190 vbva_ctx->record = record; in vbva_buffer_begin_update()
[all …]
/linux/tools/perf/Documentation/
H A Djitdump-specification.txt29 …xed size header describing the type of record and its size. It is, itself, followed by the payload…
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
63 * Value 2 : JIT_CODE_DEBUG_INFO: record describing the debug information for a jitted function
[all …]
H A Dtips.txt2 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 Dperf-daemon.txt7 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 …]
/linux/tools/perf/
H A Dbuiltin-record.c115 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 *rec) in switch_output_time()
242 static u64 record__bytes_written(struct record *rec) in record__bytes_written()
247 static bool record__output_max_size_exceeded(struct record *rec) in record__output_max_size_exceeded()
253 static int record__write(struct record *rec, struct mmap *map __maybe_unused, in record__write()
286 static int record__aio_enabled(struct record *rec);
[all …]
/linux/drivers/md/dm-vdo/indexer/
H A Dopen-chapter.c102 struct uds_volume_record *record; in probe_chapter_slots() local
122 record = &open_chapter->records[record_number]; in probe_chapter_slots()
123 if ((memcmp(&record->name, name, UDS_RECORD_NAME_SIZE) == 0) && in probe_chapter_slots()
159 struct uds_volume_record *record; in uds_put_open_chapter() local
172 record = &open_chapter->records[record_number]; in uds_put_open_chapter()
173 record->name = *name; in uds_put_open_chapter()
174 record->data = *metadata; in uds_put_open_chapter()
237 struct uds_volume_record *record = &collated_records[records]; in fill_delta_chapter_index() local
248 *record = *fill_record; in fill_delta_chapter_index()
252 *record = open_chapter->records[record_index]; in fill_delta_chapter_index()
[all …]
/linux/arch/powerpc/kernel/
H A Dnvram_64.c385 static int nvram_pstore_write(struct pstore_record *record) in nvram_pstore_write() argument
392 if (record->part > 1 || (record->type != PSTORE_TYPE_DMESG)) in nvram_pstore_write()
399 oops_hdr->report_length = cpu_to_be16(record->size); in nvram_pstore_write()
402 if (record->compressed) in nvram_pstore_write()
406 (int) (sizeof(*oops_hdr) + record->size), err_type, in nvram_pstore_write()
407 record->count); in nvram_pstore_write()
412 record->id = record->part; in nvram_pstore_write()
421 static ssize_t nvram_pstore_read(struct pstore_record *record) in nvram_pstore_read() argument
435 record->type = PSTORE_TYPE_DMESG; in nvram_pstore_read()
440 record->type = PSTORE_TYPE_PPC_COMMON; in nvram_pstore_read()
[all …]
/linux/drivers/acpi/apei/
H A Derst.c782 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()
815 rc = __erst_write_to_nvram(record); in erst_write()
820 if (record->record_length > erst_erange.size) in erst_write()
825 memcpy(erst_erange.vaddr, record, record->record_length); in erst_write()
853 static ssize_t __erst_read(u64 record_id, struct cper_record_header *record, in __erst_read() argument
866 memcpy(record, rcd_tmp, len); in __erst_read()
876 ssize_t erst_read(u64 record_id, struct cper_record_header *record, in erst_read() argument
886 len = __erst_read(record_id, record, buflen); in erst_read()
[all …]

12345678910>>...18