Home
last modified time | relevance | path

Searched refs:sample_type (Results 1 – 25 of 110) sorted by relevance

12345

/tools/perf/arch/x86/tests/
Dsample-parsing.c38 static int do_test(u64 sample_type) in do_test() argument
44 .sample_type = sample_type, in do_test()
59 sz = perf_event__sample_event_size(&sample, sample_type, 0); in do_test()
72 err = perf_event__synthesize_sample(event, sample_type, 0, &sample); in do_test()
75 "perf_event__synthesize_sample", sample_type, err); in do_test()
90 evsel.sample_size = __evsel__sample_size(sample_type); in do_test()
95 "evsel__parse_sample", sample_type, err); in do_test()
99 if (!samples_same(&sample, &sample_out, sample_type)) { in do_test()
101 sample_type); in do_test()
/tools/perf/tests/
Dsample-parsing.c196 static int do_test(u64 sample_type, u64 sample_regs, u64 read_format) in do_test() argument
202 .sample_type = sample_type, in do_test()
276 if (sample_type & PERF_SAMPLE_REGS_USER) in do_test()
279 if (sample_type & PERF_SAMPLE_REGS_INTR) in do_test()
282 if (sample_type & PERF_SAMPLE_BRANCH_STACK) in do_test()
297 sz = perf_event__sample_event_size(&sample, sample_type, read_format); in do_test()
310 err = perf_event__synthesize_sample(event, sample_type, read_format, in do_test()
314 "perf_event__synthesize_sample", sample_type, err); in do_test()
329 evsel.sample_size = __evsel__sample_size(sample_type); in do_test()
334 "evsel__parse_sample", sample_type, err); in do_test()
[all …]
Ddlfilter-test.c112 static int write_attr(struct test_data *td, u64 sample_type, u64 *id) in write_attr() argument
118 .sample_type = sample_type, in write_attr()
173 static int write_sample(struct test_data *td, u64 sample_type, u64 id, pid_t pid, pid_t tid) in write_sample() argument
192 event->header.size = perf_event__sample_event_size(&sample, sample_type, 0); in write_sample()
193 err = perf_event__synthesize_sample(event, sample_type, 0, &sample); in write_sample()
322 u64 sample_type = TEST_SAMPLE_TYPE; in test__dlfilter_test() local
366 err = write_attr(td, sample_type, &id); in test__dlfilter_test()
376 if (write_sample(td, sample_type, id, pid, tid) != TEST_OK) in test__dlfilter_test()
/tools/perf/util/
Dbpf_off_cpu.c61 evsel->core.attr.sample_type = PERF_SAMPLE_CALLCHAIN; in off_cpu_config()
298 u64 sample_type, val, sid = 0; in off_cpu_write() local
318 sample_type = evsel->core.attr.sample_type; in off_cpu_write()
320 if (sample_type & ~OFFCPU_SAMPLE_TYPES) { in off_cpu_write()
322 (unsigned long long)sample_type); in off_cpu_write()
326 if (sample_type & (PERF_SAMPLE_ID | PERF_SAMPLE_IDENTIFIER)) { in off_cpu_write()
341 if (sample_type & PERF_SAMPLE_IDENTIFIER) in off_cpu_write()
343 if (sample_type & PERF_SAMPLE_IP) { in off_cpu_write()
347 if (sample_type & PERF_SAMPLE_TID) in off_cpu_write()
349 if (sample_type & PERF_SAMPLE_TIME) in off_cpu_write()
[all …]
Drecord.c91 attr->sample_type = read_sampler->core.attr.sample_type | in evsel__config_leader_sampling()
92 leader->core.attr.sample_type; in evsel__config_leader_sampling()
129 if (evsel->core.attr.sample_type == first->core.attr.sample_type) in evlist__config()
Devsel.c146 int __evsel__sample_size(u64 sample_type) in __evsel__sample_size() argument
148 u64 mask = sample_type & PERF_SAMPLE_MASK; in __evsel__sample_size()
170 static int __perf_evsel__calc_id_pos(u64 sample_type) in __perf_evsel__calc_id_pos() argument
174 if (sample_type & PERF_SAMPLE_IDENTIFIER) in __perf_evsel__calc_id_pos()
177 if (!(sample_type & PERF_SAMPLE_ID)) in __perf_evsel__calc_id_pos()
180 if (sample_type & PERF_SAMPLE_IP) in __perf_evsel__calc_id_pos()
183 if (sample_type & PERF_SAMPLE_TID) in __perf_evsel__calc_id_pos()
186 if (sample_type & PERF_SAMPLE_TIME) in __perf_evsel__calc_id_pos()
189 if (sample_type & PERF_SAMPLE_ADDR) in __perf_evsel__calc_id_pos()
203 static int __perf_evsel__calc_is_pos(u64 sample_type) in __perf_evsel__calc_is_pos() argument
[all …]
/tools/perf/tests/attr/
Dtest-record-data7 # sample_type = PERF_SAMPLE_IP | PERF_SAMPLE_TID | PERF_SAMPLE_TIME |
9 sample_type=33039
Dtest-record-group19 sample_type=327
17 sample_type=327
Dtest-record-group211 sample_type=87
21 sample_type=87
Dtest-record-group-sampling9 sample_type=343
22 sample_type=343
Dtest-record-raw7 sample_type=1415
Dtest-record-branch-any7 sample_type=2311
Dtest-record-no-inherit7 sample_type=263
Dtest-record-branch-filter-any7 sample_type=2311
Dtest-record-branch-filter-ind_call7 sample_type=2311
Dtest-record-branch-filter-u7 sample_type=2311
Dtest-record-count8 sample_type=7
Dtest-record-branch-filter-any_call7 sample_type=2311
Dtest-record-branch-filter-k7 sample_type=2311
Dtest-record-branch-filter-any_ret7 sample_type=2311
Dtest-record-branch-filter-hv7 sample_type=2311
Dtest-record-graph-default-aarch648 sample_type=4391
Dtest-record-no-buffering7 sample_type=263
/tools/perf/ui/browsers/
Dscripts.c39 if (attr->sample_type & PERF_SAMPLE_BRANCH_STACK) in attr_to_script()
41 if (attr->sample_type & PERF_SAMPLE_REGS_INTR) in attr_to_script()
43 if (attr->sample_type & PERF_SAMPLE_REGS_USER) in attr_to_script()
45 if (attr->sample_type & PERF_SAMPLE_PHYS_ADDR) in attr_to_script()
/tools/testing/selftests/bpf/prog_tests/
Dget_stackid_cannot_attach.c13 .sample_type = PERF_SAMPLE_IP | PERF_SAMPLE_BRANCH_STACK, in test_get_stackid_cannot_attach()
55 attr.sample_type |= PERF_SAMPLE_CALLCHAIN; in test_get_stackid_cannot_attach()

12345