/linux/tools/perf/tests/ |
A D | sample-parsing.c | 197 .sample_type = sample_type, in do_test() 271 if (sample_type & PERF_SAMPLE_REGS_USER) in do_test() 274 if (sample_type & PERF_SAMPLE_REGS_INTR) in do_test() 334 sample_type); in do_test() 350 sample_type); in do_test() 374 u64 sample_type; in test__sample_parsing() local 390 for (sample_type = 1; sample_type != PERF_SAMPLE_MAX; in test__sample_parsing() 391 sample_type <<= 1) { in test__sample_parsing() 393 if (sample_type == PERF_SAMPLE_READ) { in test__sample_parsing() 395 err = do_test(sample_type, 0, rf[i]); in test__sample_parsing() [all …]
|
A D | dlfilter-test.c | 107 static int write_attr(struct test_data *td, u64 sample_type, u64 *id) in write_attr() argument 113 .sample_type = sample_type, in write_attr() 168 static int write_sample(struct test_data *td, u64 sample_type, u64 id, pid_t pid, pid_t tid) in write_sample() argument 187 event->header.size = perf_event__sample_event_size(&sample, sample_type, 0); in write_sample() 188 err = perf_event__synthesize_sample(event, sample_type, 0, &sample); in write_sample() 317 u64 sample_type = TEST_SAMPLE_TYPE; in test__dlfilter_test() local 361 err = write_attr(td, sample_type, &id); in test__dlfilter_test() 371 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 | 35 static int do_test(u64 sample_type) in do_test() argument 41 .sample_type = sample_type, in do_test() 55 sz = perf_event__sample_event_size(&sample, sample_type, 0); in do_test() 68 err = perf_event__synthesize_sample(event, sample_type, 0, &sample); in do_test() 71 "perf_event__synthesize_sample", sample_type, err); in do_test() 86 evsel.sample_size = __evsel__sample_size(sample_type); in do_test() 91 "evsel__parse_sample", sample_type, err); in do_test() 95 if (!samples_same(&sample, &sample_out, sample_type)) { in do_test() 97 sample_type); in do_test()
|
/linux/samples/bpf/ |
A D | tracex6_user.c | 109 .sample_type = 0, in test_bpf_perf_event() 118 .sample_type = 0, in test_bpf_perf_event() 127 .sample_type = 0, in test_bpf_perf_event() 137 .sample_type = 0, in test_bpf_perf_event() 149 .sample_type = 0, in test_bpf_perf_event() 162 .sample_type = 0, in test_bpf_perf_event()
|
/linux/arch/x86/events/intel/ |
A D | ds.c | 1069 u64 sample_type = attr->sample_type; in pebs_update_adaptive_cfg() local 1077 if (sample_type & PERF_PEBS_MEMINFO_TYPE) in pebs_update_adaptive_cfg() 1464 u64 sample_type; in setup_pebs_fixed_sample_data() local 1470 sample_type = event->attr.sample_type; in setup_pebs_fixed_sample_data() 1486 if (sample_type & PERF_SAMPLE_DATA_SRC) in setup_pebs_fixed_sample_data() 1495 if (sample_type & PERF_SAMPLE_CALLCHAIN) in setup_pebs_fixed_sample_data() 1633 u64 sample_type; in setup_pebs_adaptive_sample_data() local 1645 sample_type = event->attr.sample_type; in setup_pebs_adaptive_sample_data() 1659 if (sample_type & PERF_SAMPLE_CALLCHAIN) in setup_pebs_adaptive_sample_data() 1686 if (sample_type & PERF_SAMPLE_REGS_INTR) in setup_pebs_adaptive_sample_data() [all …]
|
/linux/tools/perf/util/ |
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() 136 if (evsel->core.attr.sample_type == first->core.attr.sample_type) in evlist__config()
|
A D | cs-etm.c | 1339 attr.sample_type = evsel->core.attr.sample_type & PERF_SAMPLE_MASK; in cs_etm__synth_events() 1343 attr.sample_type &= ~(u64)PERF_SAMPLE_TIME; in cs_etm__synth_events() 1345 attr.sample_type |= PERF_SAMPLE_TIME; in cs_etm__synth_events() 1364 attr.sample_type |= PERF_SAMPLE_ADDR; in cs_etm__synth_events() 1369 etm->branches_sample_type = attr.sample_type; in cs_etm__synth_events() 1372 attr.sample_type &= ~(u64)PERF_SAMPLE_ADDR; in cs_etm__synth_events() 1376 attr.sample_type |= PERF_SAMPLE_BRANCH_STACK; in cs_etm__synth_events() 1848 switch (packet->sample_type) { in cs_etm__set_sample_flags() 1937 if (prev_packet->sample_type == CS_ETM_RANGE) in cs_etm__set_sample_flags() 1976 if (prev_packet->sample_type == CS_ETM_RANGE) in cs_etm__set_sample_flags() [all …]
|
A D | evsel.c | 107 int __evsel__sample_size(u64 sample_type) in __evsel__sample_size() argument 138 if (!(sample_type & PERF_SAMPLE_ID)) in __perf_evsel__calc_id_pos() 141 if (sample_type & PERF_SAMPLE_IP) in __perf_evsel__calc_id_pos() 144 if (sample_type & PERF_SAMPLE_TID) in __perf_evsel__calc_id_pos() 147 if (sample_type & PERF_SAMPLE_TIME) in __perf_evsel__calc_id_pos() 150 if (sample_type & PERF_SAMPLE_ADDR) in __perf_evsel__calc_id_pos() 171 if (!(sample_type & PERF_SAMPLE_ID)) in __perf_evsel__calc_is_pos() 174 if (sample_type & PERF_SAMPLE_CPU) in __perf_evsel__calc_is_pos() 177 if (sample_type & PERF_SAMPLE_STREAM_ID) in __perf_evsel__calc_is_pos() 193 evsel->core.attr.sample_type |= bit; in __evsel__set_sample_bit() [all …]
|
A D | intel-bts.c | 794 attr.sample_type = evsel->core.attr.sample_type & PERF_SAMPLE_MASK; in intel_bts_synth_events() 795 attr.sample_type |= PERF_SAMPLE_IP | PERF_SAMPLE_TID | in intel_bts_synth_events() 797 attr.sample_type &= ~(u64)PERF_SAMPLE_TIME; in intel_bts_synth_events() 798 attr.sample_type &= ~(u64)PERF_SAMPLE_CPU; in intel_bts_synth_events() 814 attr.sample_type |= PERF_SAMPLE_ADDR; in intel_bts_synth_events() 816 id, (u64)attr.sample_type); in intel_bts_synth_events() 824 bts->branches_sample_type = attr.sample_type; in intel_bts_synth_events() 831 __evsel__sample_size(attr.sample_type); in intel_bts_synth_events()
|
A D | arm-spe.c | 54 u64 sample_type; member 306 ret = arm_spe__inject_event(event, sample, spe->sample_type); in arm_spe_deliver_synth_event() 647 if ((evsel->core.attr.sample_type & PERF_SAMPLE_TIME)) in arm_spe__is_timeless_decoding() 994 attr.sample_type = evsel->core.attr.sample_type & PERF_SAMPLE_MASK; in arm_spe_synth_events() 995 attr.sample_type |= PERF_SAMPLE_IP | PERF_SAMPLE_TID | in arm_spe_synth_events() 998 attr.sample_type &= ~(u64)PERF_SAMPLE_TIME; in arm_spe_synth_events() 1000 attr.sample_type |= PERF_SAMPLE_TIME; in arm_spe_synth_events() 1002 spe->sample_type = attr.sample_type; in arm_spe_synth_events()
|
A D | session.c | 801 bswap_field_64(sample_type); in perf_event__attr_swap() 1241 if ((sample_type & PERF_SAMPLE_CPU)) in evlist__print_tstamp() 1244 if (sample_type & PERF_SAMPLE_TIME) in evlist__print_tstamp() 1309 u64 sample_type; in dump_sample() local 1319 sample_type = evsel->core.attr.sample_type; in dump_sample() 1327 if (sample_type & PERF_SAMPLE_REGS_USER) in dump_sample() 1330 if (sample_type & PERF_SAMPLE_REGS_INTR) in dump_sample() 1345 if (sample_type & PERF_SAMPLE_DATA_SRC) in dump_sample() 1360 if (sample_type & PERF_SAMPLE_READ) in dump_sample() 1468 u64 sample_type = evsel->core.attr.sample_type; in evlist__deliver_sample() local [all …]
|
A D | intel-pt.c | 1998 u64 sample_type = evsel->core.attr.sample_type; in intel_pt_do_synth_pebs_sample() local 2027 if (sample_type & PERF_SAMPLE_TIME) { in intel_pt_do_synth_pebs_sample() 2038 if (sample_type & PERF_SAMPLE_CALLCHAIN && in intel_pt_do_synth_pebs_sample() 2046 if (sample_type & PERF_SAMPLE_REGS_INTR && in intel_pt_do_synth_pebs_sample() 3259 name, id, (u64)attr->sample_type); in intel_pt_synth_event() 3318 attr.sample_type = evsel->core.attr.sample_type & PERF_SAMPLE_MASK; in intel_pt_synth_events() 3324 attr.sample_type |= PERF_SAMPLE_TIME; in intel_pt_synth_events() 3326 attr.sample_type &= ~(u64)PERF_SAMPLE_CPU; in intel_pt_synth_events() 3342 attr.sample_type |= PERF_SAMPLE_ADDR; in intel_pt_synth_events() 3354 attr.sample_type |= PERF_SAMPLE_CALLCHAIN; in intel_pt_synth_events() [all …]
|
A D | evlist.c | 1165 evlist->combined_sample_type |= evsel->core.attr.sample_type; in __evlist__combined_sample_type() 1190 u64 sample_type = first->core.attr.sample_type; in evlist__valid_read_format() local 1200 if ((sample_type & PERF_SAMPLE_READ) && in evlist__valid_read_format() 1212 u64 sample_type; in evlist__id_hdr_size() local 1218 sample_type = first->core.attr.sample_type; in evlist__id_hdr_size() 1220 if (sample_type & PERF_SAMPLE_TID) in evlist__id_hdr_size() 1223 if (sample_type & PERF_SAMPLE_TIME) in evlist__id_hdr_size() 1226 if (sample_type & PERF_SAMPLE_ID) in evlist__id_hdr_size() 1229 if (sample_type & PERF_SAMPLE_STREAM_ID) in evlist__id_hdr_size() 1232 if (sample_type & PERF_SAMPLE_CPU) in evlist__id_hdr_size() [all …]
|
A D | jitdump.c | 42 uint64_t sample_type; member 513 if (jd->sample_type & PERF_SAMPLE_TID) { in jit_repipe_code_load() 517 if (jd->sample_type & PERF_SAMPLE_TIME) in jit_repipe_code_load() 606 if (jd->sample_type & PERF_SAMPLE_TID) { in jit_repipe_code_move() 610 if (jd->sample_type & PERF_SAMPLE_TIME) in jit_repipe_code_move() 867 jd.sample_type = first->core.attr.sample_type; in jit_process()
|
/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-group | 9 sample_type=327 16 sample_type=327
|
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/drivers/cpufreq/ |
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() 394 dbs_info->sample_type = OD_NORMAL_SAMPLE; in od_start()
|
/linux/kernel/events/ |
A D | core.c | 1858 if (sample_type & PERF_SAMPLE_IP) in __perf_event_header_size() 1908 u64 sample_type = event->attr.sample_type; in perf_event__id_header_size() local 1911 if (sample_type & PERF_SAMPLE_TID) in perf_event__id_header_size() 1920 if (sample_type & PERF_SAMPLE_ID) in perf_event__id_header_size() 1926 if (sample_type & PERF_SAMPLE_CPU) in perf_event__id_header_size() 6801 u64 sample_type = event->attr.sample_type; in __perf_event_header__init_id() local 6803 data->type = sample_type; in __perf_event_header__init_id() 6838 u64 sample_type = data->type; in __perf_event__output_id_sample() local 6846 if (sample_type & PERF_SAMPLE_ID) in __perf_event__output_id_sample() 6976 u64 sample_type = data->type; in perf_output_sample() local [all …]
|
/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 | 350 u64 sample_type = evlist__combined_sample_type(session->evlist); in report__setup_sample_type() local 358 sample_type |= PERF_SAMPLE_CALLCHAIN; in report__setup_sample_type() 362 sample_type |= PERF_SAMPLE_BRANCH_STACK; in report__setup_sample_type() 364 if (!is_pipe && !(sample_type & PERF_SAMPLE_CALLCHAIN)) { in report__setup_sample_type() 390 if (!(sample_type & PERF_SAMPLE_CALLCHAIN)) { in report__setup_sample_type() 398 !(sample_type & PERF_SAMPLE_BRANCH_STACK)) { in report__setup_sample_type() 406 if (!is_pipe && !(sample_type & PERF_SAMPLE_DATA_SRC)) { in report__setup_sample_type() 413 callchain_param_setup(sample_type); in report__setup_sample_type() 1118 u64 sample_type; in process_attr() local 1129 sample_type = evlist__combined_sample_type(*pevlist); in process_attr() [all …]
|
/linux/tools/perf/Documentation/ |
A D | intel-hybrid.txt | 98 sample_type IDENTIFIER 111 sample_type IDENTIFIER 151 sample_type IDENTIFIER 165 sample_type IDENTIFIER
|