| /linux-6.15/tools/perf/tests/ |
| H A D | sample-parsing.c | 206 .sample_type = sample_type, in do_test() 284 if (sample_type & PERF_SAMPLE_REGS_USER) in do_test() 287 if (sample_type & PERF_SAMPLE_REGS_INTR) in do_test() 348 sample_type); in do_test() 364 sample_type); in do_test() 390 u64 sample_type; in test__sample_parsing() local 406 for (sample_type = 1; sample_type != PERF_SAMPLE_MAX; in test__sample_parsing() 407 sample_type <<= 1) { in test__sample_parsing() 409 if (sample_type == PERF_SAMPLE_READ) { in test__sample_parsing() 411 err = do_test(sample_type, 0, rf[i]); in test__sample_parsing() [all …]
|
| H A 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()
|
| /linux-6.15/tools/perf/arch/x86/tests/ |
| H A 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()
|
| /linux-6.15/tools/perf/util/ |
| H A D | bpf_off_cpu.c | 303 u64 sample_type, val, sid = 0; in off_cpu_write() local 323 sample_type = evsel->core.attr.sample_type; in off_cpu_write() 325 if (sample_type & ~OFFCPU_SAMPLE_TYPES) { in off_cpu_write() 327 (unsigned long long)sample_type); in off_cpu_write() 348 if (sample_type & PERF_SAMPLE_IP) { in off_cpu_write() 352 if (sample_type & PERF_SAMPLE_TID) in off_cpu_write() 354 if (sample_type & PERF_SAMPLE_TIME) in off_cpu_write() 356 if (sample_type & PERF_SAMPLE_ID) in off_cpu_write() 358 if (sample_type & PERF_SAMPLE_CPU) in off_cpu_write() 360 if (sample_type & PERF_SAMPLE_PERIOD) in off_cpu_write() [all …]
|
| H A D | evsel.c | 146 WRITE_ASS(sample_type, "llu"); in store_event() 286 if (sample_type & PERF_SAMPLE_IP) in __perf_evsel__calc_id_pos() 289 if (sample_type & PERF_SAMPLE_TID) in __perf_evsel__calc_id_pos() 292 if (sample_type & PERF_SAMPLE_TIME) in __perf_evsel__calc_id_pos() 295 if (sample_type & PERF_SAMPLE_ADDR) in __perf_evsel__calc_id_pos() 319 if (sample_type & PERF_SAMPLE_CPU) in __perf_evsel__calc_is_pos() 2407 attr.sample_type = 0; in evsel__detect_missing_features() 2421 attr.sample_type = 0; in evsel__detect_missing_features() 2428 attr.sample_type = 0; in evsel__detect_missing_features() 2435 attr.sample_type = 0; in evsel__detect_missing_features() [all …]
|
| H A 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()
|
| H A D | cs-etm.c | 1358 packet->sample_type == CS_ETM_EXCEPTION) in cs_etm__first_executed_instr() 1712 attr.sample_type = evsel->core.attr.sample_type & PERF_SAMPLE_MASK; in cs_etm__synth_events() 1716 attr.sample_type &= ~(u64)PERF_SAMPLE_TIME; in cs_etm__synth_events() 1718 attr.sample_type |= PERF_SAMPLE_TIME; in cs_etm__synth_events() 1737 attr.sample_type |= PERF_SAMPLE_ADDR; in cs_etm__synth_events() 1741 etm->branches_sample_type = attr.sample_type; in cs_etm__synth_events() 1744 attr.sample_type &= ~(u64)PERF_SAMPLE_ADDR; in cs_etm__synth_events() 1748 attr.sample_type |= PERF_SAMPLE_BRANCH_STACK; in cs_etm__synth_events() 2221 switch (packet->sample_type) { in cs_etm__set_sample_flags() 2310 if (prev_packet->sample_type == CS_ETM_RANGE) in cs_etm__set_sample_flags() [all …]
|
| H A D | intel-bts.c | 767 attr.sample_type = evsel->core.attr.sample_type & PERF_SAMPLE_MASK; in intel_bts_synth_events() 768 attr.sample_type |= PERF_SAMPLE_IP | PERF_SAMPLE_TID | in intel_bts_synth_events() 770 attr.sample_type &= ~(u64)PERF_SAMPLE_TIME; in intel_bts_synth_events() 771 attr.sample_type &= ~(u64)PERF_SAMPLE_CPU; in intel_bts_synth_events() 787 attr.sample_type |= PERF_SAMPLE_ADDR; in intel_bts_synth_events() 789 id, (u64)attr.sample_type); in intel_bts_synth_events() 797 bts->branches_sample_type = attr.sample_type; in intel_bts_synth_events() 804 __evsel__sample_size(attr.sample_type); in intel_bts_synth_events()
|
| /linux-6.15/samples/bpf/ |
| H A D | tracex6_user.c | 108 .sample_type = 0, in test_bpf_perf_event() 117 .sample_type = 0, in test_bpf_perf_event() 126 .sample_type = 0, in test_bpf_perf_event() 136 .sample_type = 0, in test_bpf_perf_event() 148 .sample_type = 0, in test_bpf_perf_event() 161 .sample_type = 0, in test_bpf_perf_event()
|
| /linux-6.15/tools/perf/tests/shell/attr/ |
| H A D | test-record-data | 7 # sample_type = PERF_SAMPLE_IP | PERF_SAMPLE_TID | PERF_SAMPLE_TIME | 9 sample_type=33039
|
| H A D | test-record-group1 | 9 sample_type=327 17 sample_type=327
|
| H A D | test-record-group2 | 12 sample_type=87 22 sample_type=87
|
| H A D | test-record-group3 | 12 sample_type=87 23 sample_type=87
|
| H A D | test-record-group-sampling | 10 sample_type=343 23 sample_type=343
|
| H A D | test-record-group-sampling1 | 16 sample_type=343 38 sample_type=343
|
| H A D | test-record-group-sampling2 | 16 sample_type=87 44 sample_type=87
|
| /linux-6.15/drivers/cpufreq/ |
| H A D | cpufreq_ondemand.c | 177 int sample_type = dbs_info->sample_type; in od_dbs_update() local 180 dbs_info->sample_type = OD_NORMAL_SAMPLE; in od_dbs_update() 185 if (sample_type == OD_SUB_SAMPLE && policy_dbs->sample_delay_ns > 0) { in od_dbs_update() 195 dbs_info->sample_type = OD_SUB_SAMPLE; in od_dbs_update() 395 dbs_info->sample_type = OD_NORMAL_SAMPLE; in od_start()
|
| /linux-6.15/tools/perf/python/ |
| H A D | tracepoint.py | 27 ev.sample_type = ev.sample_type & ~perf.SAMPLE_IP
|
| /linux-6.15/arch/x86/events/amd/ |
| H A D | ibs.c | 1092 static void perf_ibs_parse_ld_st_data(__u64 sample_type, in perf_ibs_parse_ld_st_data() argument 1110 if (sample_type & PERF_SAMPLE_DATA_SRC) { in perf_ibs_parse_ld_st_data() 1119 if (sample_type & PERF_SAMPLE_WEIGHT_STRUCT) { in perf_ibs_parse_ld_st_data() 1122 } else if (sample_type & PERF_SAMPLE_WEIGHT) { in perf_ibs_parse_ld_st_data() 1142 u64 sample_type = event->attr.sample_type; in perf_ibs_is_mem_sample_type() local 1145 sample_type & (PERF_SAMPLE_DATA_SRC | in perf_ibs_is_mem_sample_type() 1155 if (event->attr.sample_type & PERF_SAMPLE_RAW || in perf_ibs_get_offset_max() 1188 return unlikely((event->attr.sample_type & PERF_SAMPLE_RAW) && in perf_ibs_is_kernel_br_target() 1304 if (event->attr.sample_type & PERF_SAMPLE_RAW) { in perf_ibs_handle_irq() 1345 if ((event->attr.sample_type & PERF_SAMPLE_RAW) && in perf_ibs_handle_irq() [all …]
|
| /linux-6.15/arch/x86/events/intel/ |
| H A D | ds.c | 1385 u64 sample_type = attr->sample_type; in pebs_update_adaptive_cfg() local 1393 if (sample_type & PERF_PEBS_MEMINFO_TYPE) in pebs_update_adaptive_cfg() 1820 u64 sample_type; in setup_pebs_fixed_sample_data() local 1826 sample_type = event->attr.sample_type; in setup_pebs_fixed_sample_data() 1844 if (sample_type & PERF_SAMPLE_DATA_SRC) { in setup_pebs_fixed_sample_data() 1873 if (sample_type & PERF_SAMPLE_REGS_INTR) { in setup_pebs_fixed_sample_data() 2071 u64 sample_type, format_group; in setup_pebs_adaptive_sample_data() local 2082 sample_type = event->attr.sample_type; in setup_pebs_adaptive_sample_data() 2145 if (sample_type & PERF_SAMPLE_WEIGHT) { in setup_pebs_adaptive_sample_data() 2156 if (sample_type & PERF_SAMPLE_DATA_SRC) { in setup_pebs_adaptive_sample_data() [all …]
|
| /linux-6.15/tools/perf/ui/browsers/ |
| H A D | scripts.c | 41 if (attr->sample_type & PERF_SAMPLE_BRANCH_STACK) in attr_to_script() 43 if (attr->sample_type & PERF_SAMPLE_REGS_INTR) in attr_to_script() 45 if (attr->sample_type & PERF_SAMPLE_REGS_USER) in attr_to_script() 47 if (attr->sample_type & PERF_SAMPLE_PHYS_ADDR) in attr_to_script()
|
| /linux-6.15/tools/testing/selftests/bpf/prog_tests/ |
| H A 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()
|
| /linux-6.15/tools/perf/ |
| H A D | builtin-report.c | 382 sample_type |= PERF_SAMPLE_CALLCHAIN; in report__setup_sample_type() 386 sample_type |= PERF_SAMPLE_BRANCH_STACK; in report__setup_sample_type() 388 if (!is_pipe && !(sample_type & PERF_SAMPLE_CALLCHAIN)) { in report__setup_sample_type() 414 if (!(sample_type & PERF_SAMPLE_CALLCHAIN)) { in report__setup_sample_type() 422 !(sample_type & PERF_SAMPLE_BRANCH_STACK)) { in report__setup_sample_type() 437 !(sample_type & PERF_SAMPLE_DATA_SRC)) { in report__setup_sample_type() 438 evsel->core.attr.sample_type |= PERF_SAMPLE_DATA_SRC; in report__setup_sample_type() 439 sample_type |= PERF_SAMPLE_DATA_SRC; in report__setup_sample_type() 443 if (!is_pipe && !(sample_type & PERF_SAMPLE_DATA_SRC)) { in report__setup_sample_type() 1267 u64 sample_type; in process_attr() local [all …]
|
| /linux-6.15/arch/s390/kernel/ |
| H A D | perf_pai_crypto.c | 324 a->sample_type |= PERF_SAMPLE_RAW; in paicrypt_event_init() 466 if (event->attr.sample_type & PERF_SAMPLE_TID) { in paicrypt_push_sample() 470 if (event->attr.sample_type & PERF_SAMPLE_TIME) in paicrypt_push_sample() 472 if (event->attr.sample_type & (PERF_SAMPLE_ID | PERF_SAMPLE_IDENTIFIER)) in paicrypt_push_sample() 474 if (event->attr.sample_type & PERF_SAMPLE_CPU) { in paicrypt_push_sample() 478 if (event->attr.sample_type & PERF_SAMPLE_RAW) { in paicrypt_push_sample()
|
| H A D | perf_pai_ext.c | 314 a->sample_type |= PERF_SAMPLE_RAW; in paiext_event_init() 493 if (event->attr.sample_type & PERF_SAMPLE_TID) { in paiext_push_sample() 497 if (event->attr.sample_type & PERF_SAMPLE_TIME) in paiext_push_sample() 499 if (event->attr.sample_type & (PERF_SAMPLE_ID | PERF_SAMPLE_IDENTIFIER)) in paiext_push_sample() 501 if (event->attr.sample_type & PERF_SAMPLE_CPU) in paiext_push_sample() 503 if (event->attr.sample_type & PERF_SAMPLE_RAW) { in paiext_push_sample()
|