Home
last modified time | relevance | path

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

123456

/tools/perf/tests/attr/
DREADME35 perf record kill (test-record-basic)
36 perf record -b kill (test-record-branch-any)
37 perf record -j any kill (test-record-branch-filter-any)
38 perf record -j any_call kill (test-record-branch-filter-any_call)
39 perf record -j any_ret kill (test-record-branch-filter-any_ret)
40 perf record -j hv kill (test-record-branch-filter-hv)
41 perf record -j ind_call kill (test-record-branch-filter-ind_call)
42 perf record -j k kill (test-record-branch-filter-k)
43 perf record -j u kill (test-record-branch-filter-u)
44 perf record -c 123 kill (test-record-count)
[all …]
Dtest-record-group2 command = record
6 [event-1:base-record]
12 [event-2:base-record]
Dtest-record-group12 command = record
6 [event-1:base-record]
12 [event-2:base-record]
Dtest-record-group22 command = record
6 [event-1:base-record]
16 [event-2:base-record]
Dtest-record-group-sampling2 command = record
6 [event-1:base-record]
13 [event-2:base-record]
/tools/lib/traceevent/plugins/
Dplugin_hrtimer.c14 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 …]
Dplugin_sched_switch.c34 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()
73 if (tep_get_field_val(s, event, "success", record, &val, 1) == 0) in sched_wakeup_handler()
76 if (tep_get_field_val(s, event, "target_cpu", 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()
[all …]
Dplugin_kvm.c255 static int print_exit_reason(struct trace_seq *s, struct tep_record *record, in print_exit_reason() argument
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()
276 static int kvm_exit_handler(struct trace_seq *s, struct tep_record *record, in kvm_exit_handler() argument
281 if (print_exit_reason(s, record, event, "exit_reason") < 0) in kvm_exit_handler()
284 tep_print_num_field(s, " rip 0x%lx", event, "guest_rip", record, 1); in kvm_exit_handler()
286 if (tep_get_field_val(s, event, "info1", record, &info1, 0) >= 0 in kvm_exit_handler()
287 && tep_get_field_val(s, event, "info2", record, &info2, 0) >= 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()
[all …]
Dplugin_function.c131 static int function_handler(struct trace_seq *s, struct tep_record *record, in function_handler() argument
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()
[all …]
Dplugin_futex.c69 static int futex_handler(struct trace_seq *s, struct tep_record *record, in futex_handler() argument
76 if (tep_get_field_val(s, event, "uaddr", record, &args.uaddr, 1)) in futex_handler()
79 if (tep_get_field_val(s, event, "op", record, &args.op, 1)) in futex_handler()
82 if (tep_get_field_val(s, event, "val", record, &args.val, 1)) in futex_handler()
85 if (tep_get_field_val(s, event, "utime", record, &args.utime, 1)) in futex_handler()
88 if (tep_get_field_val(s, event, "uaddr2", record, &args.uaddr2, 1)) in futex_handler()
91 if (tep_get_field_val(s, event, "val3", record, &args.val3, 1)) in futex_handler()
Dplugin_mac80211.c42 #define SF(fn) tep_print_num_field(s, fn ":%d", event, fn, record, 0)
43 #define SFX(fn) tep_print_num_field(s, fn ":%#x", event, fn, record, 0)
47 struct tep_record *record, in drv_bss_info_changed() argument
50 void *data = record->data; in drv_bss_info_changed()
55 tep_print_num_field(s, "(%d)", event, "vif_type", record, 1); in drv_bss_info_changed()
Dplugin_tlb.c19 static int tlb_flush_handler(struct trace_seq *s, struct tep_record *record, in tlb_flush_handler() argument
26 tep_print_num_field(s, "%ld", event, "pages", record, 1); in tlb_flush_handler()
28 if (tep_get_field_val(s, event, "reason", record, &val, 1) < 0) in tlb_flush_handler()
/tools/firmware/
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 …]
/tools/perf/
Dbuiltin-record.c88 struct record { struct
123 static bool switch_output_signal(struct record *rec) in switch_output_signal() argument
129 static bool switch_output_size(struct record *rec) in switch_output_size()
136 static bool switch_output_time(struct record *rec) in switch_output_time()
142 static bool record__output_max_size_exceeded(struct record *rec) in record__output_max_size_exceeded()
148 static int record__write(struct record *rec, struct mmap *map __maybe_unused, in record__write()
173 static int record__aio_enabled(struct record *rec);
174 static int record__comp_enabled(struct record *rec);
286 struct record *rec;
336 static int record__aio_push(struct record *rec, struct mmap *map, off_t *off) in record__aio_push()
[all …]
/tools/perf/util/arm-spe-decoder/
Darm-spe-decoder.c143 memset(&decoder->record, 0x0, sizeof(decoder->record)); in arm_spe_read_record()
155 decoder->record.timestamp = payload; in arm_spe_read_record()
162 decoder->record.from_ip = ip; in arm_spe_read_record()
164 decoder->record.to_ip = ip; in arm_spe_read_record()
174 decoder->record.type |= ARM_SPE_L1D_MISS; in arm_spe_read_record()
177 decoder->record.type |= ARM_SPE_L1D_ACCESS; in arm_spe_read_record()
180 decoder->record.type |= ARM_SPE_TLB_MISS; in arm_spe_read_record()
183 decoder->record.type |= ARM_SPE_TLB_ACCESS; in arm_spe_read_record()
187 decoder->record.type |= ARM_SPE_LLC_MISS; in arm_spe_read_record()
191 decoder->record.type |= ARM_SPE_LLC_ACCESS; in arm_spe_read_record()
[all …]
/tools/perf/Documentation/
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 …]
Dtips.txt2 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 …]
Dperf-timechart.txt11 '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.
101 $ perf timechart record git pull
103 [ perf record: Woken up 13 times to write data ]
104 [ perf record: Captured and wrote 4.253 MB perf.data (~185801 samples) ]
112 $ perf timechart record
120 $ perf timechart record -I
128 linkperf:perf-record[1]
/tools/lib/traceevent/Documentation/
Dlibtraceevent-record_parse.txt7 Extract common fields from a record.
31 This set of functions can be used to extract common fields from a record.
33 The _tep_data_type()_ function gets the event id from the record _rec_.
37 The _tep_data_pid()_ function gets the process id from the record _rec_.
42 record _rec_. It reads the "common_preempt_count" field. The _tep_ argument is
45 The _tep_data_flags()_ function gets the latency flags from the record _rec_.
79 void process_record(struct tep_record *record)
83 data = tep_data_type(tep, record);
88 data = tep_data_pid(tep, record);
93 data = tep_data_preempt_count(tep, record);
[all …]
Dlibtraceevent-field_find.txt23 returned can be used to find the field content from within a data record.
46 void get_htimer_info(struct tep_handle *tep, struct tep_record *record)
60 /* Get pid from the data record */
61 pid = tep_read_number(tep, record->data + field->offset,
69 /* Get softexpires parameter from the data record */
70 softexpires = tep_read_number(tep, record->data + field->offset,
79 /* Get mode parameter from the data record */
80 mode = tep_read_number(tep, record->data + field->offset,
/tools/bpf/bpftool/
Dxlated_dumper.c215 struct bpf_func_info *record; in dump_xlated_json() local
224 record = dd->func_info; in dump_xlated_json()
234 if (btf && record) { in dump_xlated_json()
235 if (record->insn_off == i) { in dump_xlated_json()
236 btf_dumper_type_only(btf, record->type_id, in dump_xlated_json()
243 record = (void *)record + dd->finfo_rec_size; in dump_xlated_json()
300 struct bpf_func_info *record; in dump_xlated_plain() local
308 record = dd->func_info; in dump_xlated_plain()
315 if (btf && record) { in dump_xlated_plain()
316 if (record->insn_off == i) { in dump_xlated_plain()
[all …]
/tools/perf/util/
Dtrace-event-parse.c103 struct tep_record record; in event_format__fprintf() local
106 memset(&record, 0, sizeof(record)); in event_format__fprintf()
107 record.cpu = cpu; in event_format__fprintf()
108 record.size = size; in event_format__fprintf()
109 record.data = data; in event_format__fprintf()
112 tep_print_event(event->tep, &s, &record, "%s", TEP_PRINT_INFO); in event_format__fprintf()
/tools/perf/scripts/python/bin/
Dfailed-syscalls-by-pid-record2 (perf record -e raw_syscalls:sys_exit $@ || \
3 perf record -e syscalls:sys_exit $@) 2> /dev/null
Dsyscall-counts-record2 (perf record -e raw_syscalls:sys_enter $@ || \
3 perf record -e syscalls:sys_enter $@) 2> /dev/null
/tools/perf/scripts/perl/bin/
Dfailed-syscalls-record2 (perf record -e raw_syscalls:sys_exit $@ || \
3 perf record -e syscalls:sys_exit $@) 2> /dev/null

123456