Home
last modified time | relevance | path

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

12345678

/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-spe-period-term2 command = record
7 [event-10:base-record-spe]
12 [event-1:base-record-spe]
Dtest-record-spe-period2 command = record
7 [event-10:base-record-spe]
12 [event-1:base-record-spe]
Dtest-record-group12 command = record
6 [event-1:base-record]
12 [event-2:base-record]
Dtest-record-spe-physical-address2 command = record
7 [event-10:base-record-spe]
12 [event-1:base-record-spe]
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/perf/util/arm-spe-decoder/
Darm-spe-decoder.c157 memset(&decoder->record, 0x0, sizeof(decoder->record)); in arm_spe_read_record()
158 decoder->record.context_id = (u64)-1; in arm_spe_read_record()
170 decoder->record.timestamp = payload; in arm_spe_read_record()
177 decoder->record.from_ip = ip; in arm_spe_read_record()
179 decoder->record.to_ip = ip; in arm_spe_read_record()
181 decoder->record.virt_addr = ip; in arm_spe_read_record()
183 decoder->record.phys_addr = ip; in arm_spe_read_record()
187 decoder->record.latency = payload; in arm_spe_read_record()
190 decoder->record.context_id = payload; in arm_spe_read_record()
195 decoder->record.op |= ARM_SPE_OP_LDST; in arm_spe_read_record()
[all …]
/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/tests/shell/
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 == /' \
Drecord.sh50 if ! perf record -o /dev/null --quiet ${testprog} 2> /dev/null
55 if ! perf record --per-thread -o "${perfdata}" ${testprog} 2> /dev/null
75 perf record -p "${TESTPID}" --per-thread -o "${perfdata}" sleep 1 2> /dev/null
101 …if ! perf record --intr-regs=\? 2>&1 | grep -q 'available registers: AX BX CX DX SI DI BP SP IP FL…
106 if ! perf record -o - --intr-regs=di,r8,dx,cx -e br_inst_retired.near_call \
120 if ! perf record -aB --synth=no -o "${perfdata}" ${testprog} 2> /dev/null
131 if ! perf record -aB --synth=no -e cpu-clock,cs --threads=cpu \
149 if ! perf record -o "${perfdata}" ${testprog} 2> /dev/null
161 if ! perf record -e cpu-clock,cs --threads=package \
188 …if ! perf record -o "${perfdata}" -e "{branches:p,instructions}" -j any,counter ${testprog} 2> /de…
[all …]
Dpipe_test.sh41 if ! perf record -e task-clock:u -o - ${prog} | perf report -i - --task | grep -q ${task}
48 if ! perf record -g -e task-clock:u -o - ${prog} | perf report -i - --task | grep -q ${task}
55 perf record -g -e task-clock:u -o - ${prog} > ${data}
72 …if ! perf record -e task-clock:u -o - ${prog} | perf inject ${inject_opt}| perf report -i - | grep…
79 …if ! perf record -g -e task-clock:u -o - ${prog} | perf inject ${inject_opt} | perf report -i - | …
86 perf record -e task-clock:u -o - ${prog} | perf inject ${inject_opt} -o ${data}
93 perf record -e task-clock:u -o ${data} ${prog}
100 perf record -e task-clock:u -o - ${prog} > ${data}
107 perf record -e task-clock:u -o - ${prog} > ${data}
/tools/tracing/rtla/src/
Dtimerlat_aa.c149 struct trace_seq *s, struct tep_record *record, in timerlat_aa_irq_latency() argument
157 taa_data->tlat_irq_timstamp = record->ts; in timerlat_aa_irq_latency()
180 tep_get_field_val(s, event, "timer_latency", record, &taa_data->tlat_irq_latency, 1); in timerlat_aa_irq_latency()
181 tep_get_field_val(s, event, "seqnum", record, &taa_data->tlat_irq_seqnum, 1); in timerlat_aa_irq_latency()
184 tep_get_common_field_val(s, event, "common_pid", record, &taa_data->run_thread_pid, 1); in timerlat_aa_irq_latency()
217 struct trace_seq *s, struct tep_record *record, in timerlat_aa_thread_latency() argument
225 taa_data->tlat_thread_timstamp = record->ts; in timerlat_aa_thread_latency()
228 tep_get_field_val(s, event, "timer_latency", record, &taa_data->tlat_thread_latency, 1); in timerlat_aa_thread_latency()
229 tep_get_field_val(s, event, "seqnum", record, &taa_data->tlat_thread_seqnum, 1); in timerlat_aa_thread_latency()
241 static int timerlat_aa_handler(struct trace_seq *s, struct tep_record *record, in timerlat_aa_handler() argument
[all …]
Dosnoise_top.c111 osnoise_top_handler(struct trace_seq *s, struct tep_record *record, in osnoise_top_handler() argument
119 int cpu = record->cpu; in osnoise_top_handler()
128 tep_get_field_val(s, event, "runtime", record, &val, 1); in osnoise_top_handler()
131 tep_get_field_val(s, event, "noise", record, &val, 1); in osnoise_top_handler()
135 tep_get_field_val(s, event, "max_sample", record, &val, 1); in osnoise_top_handler()
138 tep_get_field_val(s, event, "hw_count", record, &val, 1); in osnoise_top_handler()
141 tep_get_field_val(s, event, "nmi_count", record, &val, 1); in osnoise_top_handler()
144 tep_get_field_val(s, event, "irq_count", record, &val, 1); in osnoise_top_handler()
147 tep_get_field_val(s, event, "softirq_count", record, &val, 1); in osnoise_top_handler()
150 tep_get_field_val(s, event, "thread_count", record, &val, 1); in osnoise_top_handler()
[all …]
/tools/perf/Documentation/
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 the…
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-…
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 --call-graph dwarf or --call-graph lbr
31 To record every process run by a user: perf record -u <user>
[all …]
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 …]
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 …]
Dperf-kmem.txt11 'perf kmem' [<options>] {record|stat}
17 'perf kmem [<options>] record [<perf-record-options>] <command>' to
18 record the kmem events of an arbitrary workload. Additional 'perf
19 record' options may be specified after record, such as '-o' to
80 linkperf:perf-record[1]
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/perf/util/
Darm-spe.c278 static struct simd_flags arm_spe__synth_simd_flags(const struct arm_spe_record *record) in arm_spe__synth_simd_flags() argument
282 if ((record->op & ARM_SPE_OP_LDST) && (record->op & ARM_SPE_OP_SVE_LDST)) in arm_spe__synth_simd_flags()
285 if ((record->op & ARM_SPE_OP_OTHER) && (record->op & ARM_SPE_OP_SVE_OTHER)) in arm_spe__synth_simd_flags()
288 if (record->type & ARM_SPE_SVE_PARTIAL_PRED) in arm_spe__synth_simd_flags()
291 if (record->type & ARM_SPE_SVE_EMPTY_PRED) in arm_spe__synth_simd_flags()
302 struct arm_spe_record *record = &speq->decoder->record; in arm_spe_prep_sample() local
305 sample->time = tsc_to_perf_time(record->timestamp, &spe->tc); in arm_spe_prep_sample()
307 sample->ip = record->from_ip; in arm_spe_prep_sample()
313 sample->simd_flags = arm_spe__synth_simd_flags(record); in arm_spe_prep_sample()
351 struct arm_spe_record *record = &speq->decoder->record; in arm_spe__synth_mem_sample() local
[all …]
/tools/perf/
Dbuiltin-record.c113 struct record *rec;
152 struct record { struct
213 static int record__threads_enabled(struct record *rec) in record__threads_enabled()
218 static bool switch_output_signal(struct record *rec) in switch_output_signal()
224 static bool switch_output_size(struct record *rec) in switch_output_size()
231 static bool switch_output_time(struct record *rec) in switch_output_time()
237 static u64 record__bytes_written(struct record *rec) in record__bytes_written()
242 static bool record__output_max_size_exceeded(struct record *rec) in record__output_max_size_exceeded()
248 static int record__write(struct record *rec, struct mmap *map __maybe_unused, in record__write()
281 static int record__aio_enabled(struct record *rec);
[all …]
/tools/bpf/bpftool/
Dxlated_dumper.c228 struct bpf_func_info *record; in dump_xlated_json() local
237 record = dd->func_info; in dump_xlated_json()
247 if (btf && record) { in dump_xlated_json()
248 if (record->insn_off == i) { in dump_xlated_json()
249 btf_dumper_type_only(btf, record->type_id, in dump_xlated_json()
256 record = (void *)record + dd->finfo_rec_size; in dump_xlated_json()
313 struct bpf_func_info *record; in dump_xlated_plain() local
321 record = dd->func_info; in dump_xlated_plain()
328 if (btf && record) { in dump_xlated_plain()
329 if (record->insn_off == i) { in dump_xlated_plain()
[all …]
/tools/verification/rv/src/
Din_kernel.c338 ikm_event_handler(struct trace_seq *s, struct tep_record *record, in ikm_event_handler() argument
346 int cpu = record->cpu; in ikm_event_handler()
350 tep_get_field_val(s, trace_event, "id", record, &id, 1); in ikm_event_handler()
352 tep_get_common_field_val(s, trace_event, "common_pid", record, &pid, 1); in ikm_event_handler()
359 tep_print_event(trace_event->tep, s, record, "%16s-%-8d ", TEP_PRINT_COMM, TEP_PRINT_PID); in ikm_event_handler()
366 state = tep_get_field_raw(s, trace_event, "state", record, &val, 0); in ikm_event_handler()
367 event = tep_get_field_raw(s, trace_event, "event", record, &val, 0); in ikm_event_handler()
368 next_state = tep_get_field_raw(s, trace_event, "next_state", record, &val, 0); in ikm_event_handler()
369 tep_get_field_val(s, trace_event, "final_state", record, &final_state, 1); in ikm_event_handler()
390 ikm_error_handler(struct trace_seq *s, struct tep_record *record, in ikm_error_handler() argument
[all …]
/tools/perf/scripts/python/bin/
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

12345678