| /tools/perf/arch/x86/tests/ |
| D | sample-parsing.c | 38 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/ |
| D | sample-parsing.c | 196 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 …]
|
| D | dlfilter-test.c | 112 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/ |
| D | bpf_off_cpu.c | 61 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 …]
|
| D | record.c | 91 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()
|
| D | evsel.c | 146 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/ |
| D | test-record-data | 7 # sample_type = PERF_SAMPLE_IP | PERF_SAMPLE_TID | PERF_SAMPLE_TIME | 9 sample_type=33039
|
| D | test-record-group1 | 9 sample_type=327 17 sample_type=327
|
| D | test-record-group2 | 11 sample_type=87 21 sample_type=87
|
| D | test-record-group-sampling | 9 sample_type=343 22 sample_type=343
|
| D | test-record-raw | 7 sample_type=1415
|
| D | test-record-branch-any | 7 sample_type=2311
|
| D | test-record-no-inherit | 7 sample_type=263
|
| D | test-record-branch-filter-any | 7 sample_type=2311
|
| D | test-record-branch-filter-ind_call | 7 sample_type=2311
|
| D | test-record-branch-filter-u | 7 sample_type=2311
|
| D | test-record-count | 8 sample_type=7
|
| D | test-record-branch-filter-any_call | 7 sample_type=2311
|
| D | test-record-branch-filter-k | 7 sample_type=2311
|
| D | test-record-branch-filter-any_ret | 7 sample_type=2311
|
| D | test-record-branch-filter-hv | 7 sample_type=2311
|
| D | test-record-graph-default-aarch64 | 8 sample_type=4391
|
| D | test-record-no-buffering | 7 sample_type=263
|
| /tools/perf/ui/browsers/ |
| D | scripts.c | 39 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/ |
| D | get_stackid_cannot_attach.c | 13 .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()
|