| /kernel/linux/linux-5.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 …]
|
| /kernel/linux/linux-5.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()
|
| /kernel/linux/linux-5.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 | arm-spe.c | 51 u64 sample_type; member 263 ret = arm_spe__inject_event(event, sample, spe->sample_type); in arm_spe_deliver_synth_event() 480 if ((evsel->core.attr.sample_type & PERF_SAMPLE_TIME)) in arm_spe__is_timeless_decoding() 817 attr.sample_type = evsel->core.attr.sample_type & PERF_SAMPLE_MASK; in arm_spe_synth_events() 818 attr.sample_type |= PERF_SAMPLE_IP | PERF_SAMPLE_TID | in arm_spe_synth_events() 821 attr.sample_type &= ~(u64)PERF_SAMPLE_TIME; in arm_spe_synth_events() 823 attr.sample_type |= PERF_SAMPLE_TIME; in arm_spe_synth_events() 825 spe->sample_type = attr.sample_type; in arm_spe_synth_events()
|
| 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 | 842 if (!(evsel->core.attr.sample_type & PERF_SAMPLE_TIME)) in intel_pt_timeless_decoding() 891 if ((evsel->core.attr.sample_type & PERF_SAMPLE_AUX) && in intel_pt_sampling_mode() 934 if (!(evsel->core.attr.sample_type & PERF_SAMPLE_CALLCHAIN)) in intel_pt_callchain_init() 972 if (!(evsel->core.attr.sample_type & PERF_SAMPLE_BRANCH_STACK)) in intel_pt_br_stack_init() 1788 u64 sample_type = evsel->core.attr.sample_type; in intel_pt_synth_pebs_sample() local 1821 if (sample_type & PERF_SAMPLE_TIME) { in intel_pt_synth_pebs_sample() 1832 if (sample_type & PERF_SAMPLE_CALLCHAIN && in intel_pt_synth_pebs_sample() 1840 if (sample_type & PERF_SAMPLE_REGS_INTR && in intel_pt_synth_pebs_sample() 1856 if (sample_type & PERF_SAMPLE_BRANCH_STACK) { in intel_pt_synth_pebs_sample() 1871 if (sample_type & PERF_SAMPLE_ADDR && items->has_mem_access_address) in intel_pt_synth_pebs_sample() [all …]
|
| D | evlist.c | 1130 evlist->combined_sample_type |= evsel->core.attr.sample_type; in __evlist__combined_sample_type() 1155 u64 sample_type = first->core.attr.sample_type; in perf_evlist__valid_read_format() local 1165 if ((sample_type & PERF_SAMPLE_READ) && in perf_evlist__valid_read_format() 1177 u64 sample_type; in perf_evlist__id_hdr_size() local 1183 sample_type = first->core.attr.sample_type; in perf_evlist__id_hdr_size() 1185 if (sample_type & PERF_SAMPLE_TID) in perf_evlist__id_hdr_size() 1188 if (sample_type & PERF_SAMPLE_TIME) in perf_evlist__id_hdr_size() 1191 if (sample_type & PERF_SAMPLE_ID) in perf_evlist__id_hdr_size() 1194 if (sample_type & PERF_SAMPLE_STREAM_ID) in perf_evlist__id_hdr_size() 1197 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() 1211 u64 sample_type = __evlist__combined_sample_type(evlist); in perf_evlist__print_tstamp() local 1219 if ((sample_type & PERF_SAMPLE_CPU)) in perf_evlist__print_tstamp() 1222 if (sample_type & PERF_SAMPLE_TIME) in perf_evlist__print_tstamp() 1279 u64 sample_type; in dump_sample() local 1288 sample_type = evsel->core.attr.sample_type; in dump_sample() 1296 if (sample_type & PERF_SAMPLE_REGS_USER) in dump_sample() 1299 if (sample_type & PERF_SAMPLE_REGS_INTR) in dump_sample() 1302 if (sample_type & PERF_SAMPLE_STACK_USER) in dump_sample() 1305 if (sample_type & PERF_SAMPLE_WEIGHT) in dump_sample() [all …]
|
| /kernel/linux/linux-5.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-no-inherit | 7 sample_type=263
|
| /kernel/linux/linux-5.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()
|
| /kernel/linux/linux-5.10/arch/x86/events/intel/ |
| D | ds.c | 974 u64 sample_type = attr->sample_type; in pebs_update_adaptive_cfg() local 978 if (!(sample_type & ~(PERF_SAMPLE_IP|PERF_SAMPLE_TIME)) && in pebs_update_adaptive_cfg() 982 if (sample_type & PERF_PEBS_MEMINFO_TYPE) in pebs_update_adaptive_cfg() 991 gprs = (sample_type & PERF_SAMPLE_REGS_INTR) && in pebs_update_adaptive_cfg() 994 tsx_weight = (sample_type & PERF_SAMPLE_WEIGHT) && in pebs_update_adaptive_cfg() 1001 if ((sample_type & PERF_SAMPLE_REGS_INTR) && in pebs_update_adaptive_cfg() 1005 if (sample_type & PERF_SAMPLE_BRANCH_STACK) { in pebs_update_adaptive_cfg() 1356 u64 sample_type; in setup_pebs_fixed_sample_data() local 1362 sample_type = event->attr.sample_type; in setup_pebs_fixed_sample_data() 1372 if (fll && (sample_type & PERF_SAMPLE_WEIGHT)) in setup_pebs_fixed_sample_data() [all …]
|
| /kernel/linux/linux-5.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
|
| /kernel/linux/linux-5.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()
|
| /kernel/linux/linux-5.10/tools/perf/ |
| D | builtin-report.c | 341 u64 sample_type = evlist__combined_sample_type(session->evlist); in report__setup_sample_type() local 350 sample_type |= PERF_SAMPLE_CALLCHAIN; in report__setup_sample_type() 354 sample_type |= PERF_SAMPLE_BRANCH_STACK; in report__setup_sample_type() 356 if (!is_pipe && !(sample_type & PERF_SAMPLE_CALLCHAIN)) { in report__setup_sample_type() 382 if (!(sample_type & PERF_SAMPLE_CALLCHAIN)) { in report__setup_sample_type() 390 !(sample_type & PERF_SAMPLE_BRANCH_STACK)) { in report__setup_sample_type() 405 !(sample_type & PERF_SAMPLE_DATA_SRC)) { in report__setup_sample_type() 406 evsel->core.attr.sample_type |= PERF_SAMPLE_DATA_SRC; in report__setup_sample_type() 407 sample_type |= PERF_SAMPLE_DATA_SRC; in report__setup_sample_type() 411 if (!is_pipe && !(sample_type & PERF_SAMPLE_DATA_SRC)) { in report__setup_sample_type() [all …]
|
| /kernel/linux/linux-5.10/kernel/events/ |
| D | core.c | 1934 static void __perf_event_header_size(struct perf_event *event, u64 sample_type) in __perf_event_header_size() argument 1939 if (sample_type & PERF_SAMPLE_IP) in __perf_event_header_size() 1942 if (sample_type & PERF_SAMPLE_ADDR) in __perf_event_header_size() 1945 if (sample_type & PERF_SAMPLE_PERIOD) in __perf_event_header_size() 1948 if (sample_type & PERF_SAMPLE_WEIGHT) in __perf_event_header_size() 1951 if (sample_type & PERF_SAMPLE_READ) in __perf_event_header_size() 1954 if (sample_type & PERF_SAMPLE_DATA_SRC) in __perf_event_header_size() 1957 if (sample_type & PERF_SAMPLE_TRANSACTION) in __perf_event_header_size() 1960 if (sample_type & PERF_SAMPLE_PHYS_ADDR) in __perf_event_header_size() 1963 if (sample_type & PERF_SAMPLE_CGROUP) in __perf_event_header_size() [all …]
|