| /linux/tools/perf/tests/ |
| A D | sample-parsing.c | 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() 340 sample_type); in do_test() 356 sample_type); in do_test() 380 u64 sample_type; in test__sample_parsing() local 396 for (sample_type = 1; sample_type != PERF_SAMPLE_MAX; in test__sample_parsing() 397 sample_type <<= 1) { in test__sample_parsing() 399 if (sample_type == PERF_SAMPLE_READ) { in test__sample_parsing() 401 err = do_test(sample_type, 0, rf[i]); in test__sample_parsing() [all …]
|
| 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/tools/perf/arch/x86/tests/ |
| 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/tools/perf/util/ |
| A D | bpf_off_cpu.c | 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() 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() 351 if (sample_type & PERF_SAMPLE_ID) in off_cpu_write() 353 if (sample_type & PERF_SAMPLE_CPU) in off_cpu_write() 355 if (sample_type & PERF_SAMPLE_PERIOD) in off_cpu_write() [all …]
|
| 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()
|
| A D | evsel.c | 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() 210 if (!(sample_type & PERF_SAMPLE_ID)) in __perf_evsel__calc_is_pos() 213 if (sample_type & PERF_SAMPLE_CPU) in __perf_evsel__calc_is_pos() 232 evsel->core.attr.sample_type |= bit; in __evsel__set_sample_bit() 242 evsel->core.attr.sample_type &= ~bit; in __evsel__reset_sample_bit() 3053 u64 sample_type = evsel->core.attr.sample_type; in evsel__id_hdr_size() local [all …]
|
| A D | cs-etm.c | 1351 packet->sample_type == CS_ETM_EXCEPTION) in cs_etm__first_executed_instr() 1703 attr.sample_type = evsel->core.attr.sample_type & PERF_SAMPLE_MASK; in cs_etm__synth_events() 1707 attr.sample_type &= ~(u64)PERF_SAMPLE_TIME; in cs_etm__synth_events() 1709 attr.sample_type |= PERF_SAMPLE_TIME; in cs_etm__synth_events() 1728 attr.sample_type |= PERF_SAMPLE_ADDR; in cs_etm__synth_events() 1732 etm->branches_sample_type = attr.sample_type; in cs_etm__synth_events() 1735 attr.sample_type &= ~(u64)PERF_SAMPLE_ADDR; in cs_etm__synth_events() 1739 attr.sample_type |= PERF_SAMPLE_BRANCH_STACK; in cs_etm__synth_events() 2212 switch (packet->sample_type) { in cs_etm__set_sample_flags() 2301 if (prev_packet->sample_type == CS_ETM_RANGE) in cs_etm__set_sample_flags() [all …]
|
| A D | intel-bts.c | 765 attr.sample_type = evsel->core.attr.sample_type & PERF_SAMPLE_MASK; in intel_bts_synth_events() 766 attr.sample_type |= PERF_SAMPLE_IP | PERF_SAMPLE_TID | in intel_bts_synth_events() 768 attr.sample_type &= ~(u64)PERF_SAMPLE_TIME; in intel_bts_synth_events() 769 attr.sample_type &= ~(u64)PERF_SAMPLE_CPU; in intel_bts_synth_events() 785 attr.sample_type |= PERF_SAMPLE_ADDR; in intel_bts_synth_events() 787 id, (u64)attr.sample_type); in intel_bts_synth_events() 795 bts->branches_sample_type = attr.sample_type; in intel_bts_synth_events() 802 __evsel__sample_size(attr.sample_type); in intel_bts_synth_events()
|
| A D | session.c | 502 bswap_field_64(sample_type); in perf_event__attr_swap() 982 if ((sample_type & PERF_SAMPLE_CPU)) in evlist__print_tstamp() 985 if (sample_type & PERF_SAMPLE_TIME) in evlist__print_tstamp() 1055 u64 sample_type; in dump_sample() local 1065 sample_type = evsel->core.attr.sample_type; in dump_sample() 1073 if (sample_type & PERF_SAMPLE_REGS_USER) in dump_sample() 1076 if (sample_type & PERF_SAMPLE_REGS_INTR) in dump_sample() 1091 if (sample_type & PERF_SAMPLE_DATA_SRC) in dump_sample() 1106 if (sample_type & PERF_SAMPLE_READ) in dump_sample() 1229 u64 sample_type = evsel->core.attr.sample_type; in evlist__deliver_sample() local [all …]
|
| A D | intel-pt.c | 2241 u64 sample_type = evsel->core.attr.sample_type; in intel_pt_do_synth_pebs_sample() local 2270 if (sample_type & PERF_SAMPLE_TIME) { in intel_pt_do_synth_pebs_sample() 2281 if (sample_type & PERF_SAMPLE_CALLCHAIN && in intel_pt_do_synth_pebs_sample() 2289 if (sample_type & PERF_SAMPLE_REGS_INTR && in intel_pt_do_synth_pebs_sample() 3668 name, id, (u64)attr->sample_type); in intel_pt_synth_event() 3723 attr.sample_type = evsel->core.attr.sample_type & PERF_SAMPLE_MASK; in intel_pt_synth_events() 3729 attr.sample_type |= PERF_SAMPLE_TIME; in intel_pt_synth_events() 3731 attr.sample_type &= ~(u64)PERF_SAMPLE_CPU; in intel_pt_synth_events() 3747 attr.sample_type |= PERF_SAMPLE_ADDR; in intel_pt_synth_events() 3818 attr.sample_type |= PERF_SAMPLE_RAW; in intel_pt_synth_events() [all …]
|
| A D | arm-spe.c | 56 u64 sample_type; member 333 ret = arm_spe__inject_event(event, sample, spe->sample_type); in arm_spe_deliver_synth_event() 798 if ((evsel->core.attr.sample_type & PERF_SAMPLE_TIME)) in arm_spe__is_timeless_decoding() 1116 attr.sample_type = evsel->core.attr.sample_type & in arm_spe_synth_events() 1118 attr.sample_type |= PERF_SAMPLE_IP | PERF_SAMPLE_TID | in arm_spe_synth_events() 1122 attr.sample_type &= ~(u64)PERF_SAMPLE_TIME; in arm_spe_synth_events() 1124 attr.sample_type |= PERF_SAMPLE_TIME; in arm_spe_synth_events() 1126 spe->sample_type = attr.sample_type; in arm_spe_synth_events()
|
| /linux/samples/bpf/ |
| 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/arch/x86/events/amd/ |
| A D | ibs.c | 978 if (sample_type & PERF_SAMPLE_DATA_SRC) { in perf_ibs_parse_ld_st_data() 987 if (sample_type & PERF_SAMPLE_WEIGHT_STRUCT) { in perf_ibs_parse_ld_st_data() 990 } else if (sample_type & PERF_SAMPLE_WEIGHT) { in perf_ibs_parse_ld_st_data() 1010 if (sample_type & PERF_SAMPLE_RAW || in perf_ibs_get_offset_max() 1012 (sample_type & PERF_SAMPLE_DATA_SRC || in perf_ibs_get_offset_max() 1013 sample_type & PERF_SAMPLE_WEIGHT_TYPE || in perf_ibs_get_offset_max() 1014 sample_type & PERF_SAMPLE_ADDR || in perf_ibs_get_offset_max() 1015 sample_type & PERF_SAMPLE_PHYS_ADDR))) in perf_ibs_get_offset_max() 1084 if (event->attr.sample_type & PERF_SAMPLE_RAW) { in perf_ibs_handle_irq() 1114 if (event->attr.sample_type & PERF_SAMPLE_RAW) { in perf_ibs_handle_irq() [all …]
|
| /linux/tools/perf/ui/browsers/ |
| A 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()
|
| /linux/tools/perf/tests/attr/ |
| A D | test-record-data | 7 # sample_type = PERF_SAMPLE_IP | PERF_SAMPLE_TID | PERF_SAMPLE_TIME | 9 sample_type=33039
|
| A D | test-record-group1 | 9 sample_type=327 17 sample_type=327
|
| A D | test-record-group2 | 11 sample_type=87 21 sample_type=87
|
| A D | test-record-group-sampling | 9 sample_type=343 22 sample_type=343
|
| /linux/arch/x86/events/intel/ |
| A D | ds.c | 1303 u64 sample_type = attr->sample_type; in pebs_update_adaptive_cfg() local 1311 if (sample_type & PERF_PEBS_MEMINFO_TYPE) in pebs_update_adaptive_cfg() 1736 u64 sample_type; in setup_pebs_fixed_sample_data() local 1742 sample_type = event->attr.sample_type; in setup_pebs_fixed_sample_data() 1760 if (sample_type & PERF_SAMPLE_DATA_SRC) { in setup_pebs_fixed_sample_data() 1771 if (sample_type & PERF_SAMPLE_CALLCHAIN) in setup_pebs_fixed_sample_data() 1914 u64 sample_type; in setup_pebs_adaptive_sample_data() local 1926 sample_type = event->attr.sample_type; in setup_pebs_adaptive_sample_data() 1939 if (sample_type & PERF_SAMPLE_CALLCHAIN) in setup_pebs_adaptive_sample_data() 1973 if (sample_type & PERF_SAMPLE_REGS_INTR) in setup_pebs_adaptive_sample_data() [all …]
|
| /linux/drivers/cpufreq/ |
| A D | cpufreq_ondemand.c | 176 int sample_type = dbs_info->sample_type; in od_dbs_update() local 179 dbs_info->sample_type = OD_NORMAL_SAMPLE; in od_dbs_update() 184 if (sample_type == OD_SUB_SAMPLE && policy_dbs->sample_delay_ns > 0) { in od_dbs_update() 194 dbs_info->sample_type = OD_SUB_SAMPLE; in od_dbs_update() 394 dbs_info->sample_type = OD_NORMAL_SAMPLE; in od_start()
|
| /linux/tools/testing/selftests/bpf/prog_tests/ |
| 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/tools/perf/ |
| A D | builtin-report.c | 378 sample_type |= PERF_SAMPLE_CALLCHAIN; in report__setup_sample_type() 382 sample_type |= PERF_SAMPLE_BRANCH_STACK; in report__setup_sample_type() 384 if (!is_pipe && !(sample_type & PERF_SAMPLE_CALLCHAIN)) { in report__setup_sample_type() 410 if (!(sample_type & PERF_SAMPLE_CALLCHAIN)) { in report__setup_sample_type() 418 !(sample_type & PERF_SAMPLE_BRANCH_STACK)) { in report__setup_sample_type() 433 !(sample_type & PERF_SAMPLE_DATA_SRC)) { in report__setup_sample_type() 434 evsel->core.attr.sample_type |= PERF_SAMPLE_DATA_SRC; in report__setup_sample_type() 435 sample_type |= PERF_SAMPLE_DATA_SRC; in report__setup_sample_type() 439 if (!is_pipe && !(sample_type & PERF_SAMPLE_DATA_SRC)) { in report__setup_sample_type() 1258 u64 sample_type; in process_attr() local [all …]
|
| /linux/arch/s390/kernel/ |
| 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()
|
| 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()
|
| /linux/kernel/events/ |
| A D | core.c | 1899 if (sample_type & PERF_SAMPLE_IP) in __perf_event_header_size() 1950 u64 sample_type = event->attr.sample_type; in perf_event__id_header_size() local 1953 if (sample_type & PERF_SAMPLE_TID) in perf_event__id_header_size() 1962 if (sample_type & PERF_SAMPLE_ID) in perf_event__id_header_size() 1968 if (sample_type & PERF_SAMPLE_CPU) in perf_event__id_header_size() 7284 u64 sample_type) in __perf_event_header__init_id() argument 7323 u64 sample_type = data->type; in __perf_event__output_id_sample() local 7331 if (sample_type & PERF_SAMPLE_ID) in __perf_event__output_id_sample() 7476 u64 sample_type = data->type; in perf_output_sample() local 7483 if (sample_type & PERF_SAMPLE_IP) in perf_output_sample() [all …]
|