/Linux-v5.10/tools/perf/tests/ |
D | sample-parsing.c | 169 static int do_test(u64 sample_type, u64 sample_regs, u64 read_format) in do_test() argument 175 .sample_type = sample_type, in do_test() 247 if (sample_type & PERF_SAMPLE_REGS_USER) in do_test() 250 if (sample_type & PERF_SAMPLE_REGS_INTR) in do_test() 253 if (sample_type & PERF_SAMPLE_BRANCH_STACK) in do_test() 267 sz = perf_event__sample_event_size(&sample, sample_type, read_format); in do_test() 280 err = perf_event__synthesize_sample(event, sample_type, read_format, in do_test() 284 "perf_event__synthesize_sample", sample_type, err); in do_test() 299 evsel.sample_size = __evsel__sample_size(sample_type); in do_test() 304 "evsel__parse_sample", sample_type, err); in do_test() [all …]
|
/Linux-v5.10/samples/bpf/ |
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-v5.10/tools/perf/util/ |
D | record.c | 88 attr->sample_type = read_sampler->core.attr.sample_type | in evsel__config_leader_sampling() 89 leader->core.attr.sample_type; in evsel__config_leader_sampling() 134 if (evsel->core.attr.sample_type == first->core.attr.sample_type) in perf_evlist__config()
|
D | cs-etm.c | 954 if (packet->sample_type == CS_ETM_DISCONTINUITY) in cs_etm__first_executed_instr() 964 if (packet->sample_type == CS_ETM_DISCONTINUITY) in cs_etm__last_executed_instr() 1122 if (packet->sample_type == CS_ETM_DISCONTINUITY) { in cs_etm__copy_insn() 1311 attr.sample_type = evsel->core.attr.sample_type & PERF_SAMPLE_MASK; in cs_etm__synth_events() 1312 attr.sample_type |= PERF_SAMPLE_IP | PERF_SAMPLE_TID | in cs_etm__synth_events() 1315 attr.sample_type &= ~(u64)PERF_SAMPLE_TIME; in cs_etm__synth_events() 1317 attr.sample_type |= PERF_SAMPLE_TIME; in cs_etm__synth_events() 1336 attr.sample_type |= PERF_SAMPLE_ADDR; in cs_etm__synth_events() 1341 etm->branches_sample_type = attr.sample_type; in cs_etm__synth_events() 1344 attr.sample_type &= ~(u64)PERF_SAMPLE_ADDR; in cs_etm__synth_events() [all …]
|
D | evsel.c | 104 int __evsel__sample_size(u64 sample_type) in __evsel__sample_size() argument 106 u64 mask = sample_type & PERF_SAMPLE_MASK; in __evsel__sample_size() 128 static int __perf_evsel__calc_id_pos(u64 sample_type) in __perf_evsel__calc_id_pos() argument 132 if (sample_type & PERF_SAMPLE_IDENTIFIER) in __perf_evsel__calc_id_pos() 135 if (!(sample_type & PERF_SAMPLE_ID)) in __perf_evsel__calc_id_pos() 138 if (sample_type & PERF_SAMPLE_IP) in __perf_evsel__calc_id_pos() 141 if (sample_type & PERF_SAMPLE_TID) in __perf_evsel__calc_id_pos() 144 if (sample_type & PERF_SAMPLE_TIME) in __perf_evsel__calc_id_pos() 147 if (sample_type & PERF_SAMPLE_ADDR) in __perf_evsel__calc_id_pos() 161 static int __perf_evsel__calc_is_pos(u64 sample_type) in __perf_evsel__calc_is_pos() argument [all …]
|
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()
|
D | intel-pt.c | 840 if (!(evsel->core.attr.sample_type & PERF_SAMPLE_TIME)) in intel_pt_timeless_decoding() 889 if ((evsel->core.attr.sample_type & PERF_SAMPLE_AUX) && in intel_pt_sampling_mode() 920 if (!(evsel->core.attr.sample_type & PERF_SAMPLE_CALLCHAIN)) in intel_pt_callchain_init() 958 if (!(evsel->core.attr.sample_type & PERF_SAMPLE_BRANCH_STACK)) in intel_pt_br_stack_init() 1770 u64 sample_type = evsel->core.attr.sample_type; in intel_pt_synth_pebs_sample() local 1803 if (sample_type & PERF_SAMPLE_TIME) { in intel_pt_synth_pebs_sample() 1814 if (sample_type & PERF_SAMPLE_CALLCHAIN && in intel_pt_synth_pebs_sample() 1822 if (sample_type & PERF_SAMPLE_REGS_INTR && in intel_pt_synth_pebs_sample() 1838 if (sample_type & PERF_SAMPLE_BRANCH_STACK) { in intel_pt_synth_pebs_sample() 1853 if (sample_type & PERF_SAMPLE_ADDR && items->has_mem_access_address) in intel_pt_synth_pebs_sample() [all …]
|
D | evlist.c | 1122 evlist->combined_sample_type |= evsel->core.attr.sample_type; in __evlist__combined_sample_type() 1147 u64 sample_type = first->core.attr.sample_type; in perf_evlist__valid_read_format() local 1157 if ((sample_type & PERF_SAMPLE_READ) && in perf_evlist__valid_read_format() 1169 u64 sample_type; in perf_evlist__id_hdr_size() local 1175 sample_type = first->core.attr.sample_type; in perf_evlist__id_hdr_size() 1177 if (sample_type & PERF_SAMPLE_TID) in perf_evlist__id_hdr_size() 1180 if (sample_type & PERF_SAMPLE_TIME) in perf_evlist__id_hdr_size() 1183 if (sample_type & PERF_SAMPLE_ID) in perf_evlist__id_hdr_size() 1186 if (sample_type & PERF_SAMPLE_STREAM_ID) in perf_evlist__id_hdr_size() 1189 if (sample_type & PERF_SAMPLE_CPU) in perf_evlist__id_hdr_size() [all …]
|
D | session.c | 778 bswap_field_64(sample_type); in perf_event__attr_swap() 1198 u64 sample_type = __evlist__combined_sample_type(evlist); in perf_evlist__print_tstamp() local 1206 if ((sample_type & PERF_SAMPLE_CPU)) in perf_evlist__print_tstamp() 1209 if (sample_type & PERF_SAMPLE_TIME) in perf_evlist__print_tstamp() 1266 u64 sample_type; in dump_sample() local 1275 sample_type = evsel->core.attr.sample_type; in dump_sample() 1283 if (sample_type & PERF_SAMPLE_REGS_USER) in dump_sample() 1286 if (sample_type & PERF_SAMPLE_REGS_INTR) in dump_sample() 1289 if (sample_type & PERF_SAMPLE_STACK_USER) in dump_sample() 1292 if (sample_type & PERF_SAMPLE_WEIGHT) in dump_sample() [all …]
|
/Linux-v5.10/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-group | 9 sample_type=327 16 sample_type=327
|
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-graph-default | 7 sample_type=295
|
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
|
/Linux-v5.10/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()
|
/Linux-v5.10/arch/x86/events/intel/ |
D | ds.c | 969 u64 sample_type = attr->sample_type; in pebs_update_adaptive_cfg() local 973 if (!(sample_type & ~(PERF_SAMPLE_IP|PERF_SAMPLE_TIME)) && in pebs_update_adaptive_cfg() 977 if (sample_type & PERF_PEBS_MEMINFO_TYPE) in pebs_update_adaptive_cfg() 986 gprs = (sample_type & PERF_SAMPLE_REGS_INTR) && in pebs_update_adaptive_cfg() 989 tsx_weight = (sample_type & PERF_SAMPLE_WEIGHT) && in pebs_update_adaptive_cfg() 996 if ((sample_type & PERF_SAMPLE_REGS_INTR) && in pebs_update_adaptive_cfg() 1000 if (sample_type & PERF_SAMPLE_BRANCH_STACK) { in pebs_update_adaptive_cfg() 1351 u64 sample_type; in setup_pebs_fixed_sample_data() local 1357 sample_type = event->attr.sample_type; in setup_pebs_fixed_sample_data() 1367 if (fll && (sample_type & PERF_SAMPLE_WEIGHT)) in setup_pebs_fixed_sample_data() [all …]
|
/Linux-v5.10/drivers/cpufreq/ |
D | cpufreq_ondemand.c | 175 int sample_type = dbs_info->sample_type; in od_dbs_update() local 178 dbs_info->sample_type = OD_NORMAL_SAMPLE; in od_dbs_update() 183 if (sample_type == OD_SUB_SAMPLE && policy_dbs->sample_delay_ns > 0) { in od_dbs_update() 193 dbs_info->sample_type = OD_SUB_SAMPLE; in od_dbs_update() 392 dbs_info->sample_type = OD_NORMAL_SAMPLE; in od_start()
|
D | cpufreq_ondemand.h | 16 unsigned int sample_type:1; member
|
/Linux-v5.10/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() 56 attr.sample_type |= PERF_SAMPLE_CALLCHAIN; in test_get_stackid_cannot_attach()
|
/Linux-v5.10/kernel/events/ |
D | core.c | 1866 static void __perf_event_header_size(struct perf_event *event, u64 sample_type) in __perf_event_header_size() argument 1871 if (sample_type & PERF_SAMPLE_IP) in __perf_event_header_size() 1874 if (sample_type & PERF_SAMPLE_ADDR) in __perf_event_header_size() 1877 if (sample_type & PERF_SAMPLE_PERIOD) in __perf_event_header_size() 1880 if (sample_type & PERF_SAMPLE_WEIGHT) in __perf_event_header_size() 1883 if (sample_type & PERF_SAMPLE_READ) in __perf_event_header_size() 1886 if (sample_type & PERF_SAMPLE_DATA_SRC) in __perf_event_header_size() 1889 if (sample_type & PERF_SAMPLE_TRANSACTION) in __perf_event_header_size() 1892 if (sample_type & PERF_SAMPLE_PHYS_ADDR) in __perf_event_header_size() 1895 if (sample_type & PERF_SAMPLE_CGROUP) in __perf_event_header_size() [all …]
|
/Linux-v5.10/tools/perf/ |
D | builtin-report.c | 341 u64 sample_type = evlist__combined_sample_type(session->evlist); in report__setup_sample_type() local 349 sample_type |= PERF_SAMPLE_CALLCHAIN; in report__setup_sample_type() 353 sample_type |= PERF_SAMPLE_BRANCH_STACK; in report__setup_sample_type() 355 if (!is_pipe && !(sample_type & PERF_SAMPLE_CALLCHAIN)) { in report__setup_sample_type() 381 if (!(sample_type & PERF_SAMPLE_CALLCHAIN)) { in report__setup_sample_type() 389 !(sample_type & PERF_SAMPLE_BRANCH_STACK)) { in report__setup_sample_type() 397 if (!is_pipe && !(sample_type & PERF_SAMPLE_DATA_SRC)) { in report__setup_sample_type() 404 callchain_param_setup(sample_type); in report__setup_sample_type() 1084 u64 sample_type; in process_attr() local 1095 sample_type = evlist__combined_sample_type(*pevlist); in process_attr() [all …]
|