Home
last modified time | relevance | path

Searched refs:sample_type (Results 1 – 25 of 137) sorted by relevance

123456

/linux-6.6.21/tools/perf/tests/
Dsample-parsing.c196 static int do_test(u64 sample_type, u64 sample_regs, u64 read_format) in do_test() argument
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()
282 if (sample_type & PERF_SAMPLE_BRANCH_STACK) in do_test()
297 sz = perf_event__sample_event_size(&sample, sample_type, read_format); in do_test()
310 err = perf_event__synthesize_sample(event, sample_type, read_format, in do_test()
314 "perf_event__synthesize_sample", sample_type, err); in do_test()
329 evsel.sample_size = __evsel__sample_size(sample_type); in do_test()
334 "evsel__parse_sample", sample_type, err); in do_test()
[all …]
Ddlfilter-test.c112 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.6.21/tools/perf/arch/x86/tests/
Dsample-parsing.c38 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.6.21/tools/perf/util/
Dbpf_off_cpu.c61 evsel->core.attr.sample_type = PERF_SAMPLE_CALLCHAIN; in off_cpu_config()
296 u64 sample_type, val, sid = 0; in off_cpu_write() local
316 sample_type = evsel->core.attr.sample_type; in off_cpu_write()
318 if (sample_type & ~OFFCPU_SAMPLE_TYPES) { in off_cpu_write()
320 (unsigned long long)sample_type); in off_cpu_write()
324 if (sample_type & (PERF_SAMPLE_ID | PERF_SAMPLE_IDENTIFIER)) { in off_cpu_write()
339 if (sample_type & PERF_SAMPLE_IDENTIFIER) in off_cpu_write()
341 if (sample_type & PERF_SAMPLE_IP) { in off_cpu_write()
345 if (sample_type & PERF_SAMPLE_TID) in off_cpu_write()
347 if (sample_type & PERF_SAMPLE_TIME) in off_cpu_write()
[all …]
Drecord.c91 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()
Devsel.c141 int __evsel__sample_size(u64 sample_type) in __evsel__sample_size() argument
143 u64 mask = sample_type & PERF_SAMPLE_MASK; in __evsel__sample_size()
165 static int __perf_evsel__calc_id_pos(u64 sample_type) in __perf_evsel__calc_id_pos() argument
169 if (sample_type & PERF_SAMPLE_IDENTIFIER) in __perf_evsel__calc_id_pos()
172 if (!(sample_type & PERF_SAMPLE_ID)) in __perf_evsel__calc_id_pos()
175 if (sample_type & PERF_SAMPLE_IP) in __perf_evsel__calc_id_pos()
178 if (sample_type & PERF_SAMPLE_TID) in __perf_evsel__calc_id_pos()
181 if (sample_type & PERF_SAMPLE_TIME) in __perf_evsel__calc_id_pos()
184 if (sample_type & PERF_SAMPLE_ADDR) in __perf_evsel__calc_id_pos()
198 static int __perf_evsel__calc_is_pos(u64 sample_type) in __perf_evsel__calc_is_pos() argument
[all …]
Dcs-etm.c1244 if (packet->sample_type == CS_ETM_DISCONTINUITY) in cs_etm__first_executed_instr()
1254 if (packet->sample_type == CS_ETM_DISCONTINUITY) in cs_etm__last_executed_instr()
1407 if (packet->sample_type == CS_ETM_DISCONTINUITY) { in cs_etm__copy_insn()
1625 attr.sample_type = evsel->core.attr.sample_type & PERF_SAMPLE_MASK; in cs_etm__synth_events()
1626 attr.sample_type |= PERF_SAMPLE_IP | PERF_SAMPLE_TID | in cs_etm__synth_events()
1629 attr.sample_type &= ~(u64)PERF_SAMPLE_TIME; in cs_etm__synth_events()
1631 attr.sample_type |= PERF_SAMPLE_TIME; in cs_etm__synth_events()
1650 attr.sample_type |= PERF_SAMPLE_ADDR; in cs_etm__synth_events()
1654 etm->branches_sample_type = attr.sample_type; in cs_etm__synth_events()
1657 attr.sample_type &= ~(u64)PERF_SAMPLE_ADDR; in cs_etm__synth_events()
[all …]
Dintel-bts.c794 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()
Dintel-pt.c1117 if (!(evsel->core.attr.sample_type & PERF_SAMPLE_TIME)) in intel_pt_timeless_decoding()
1179 if ((evsel->core.attr.sample_type & PERF_SAMPLE_AUX) && in intel_pt_sampling_mode()
1222 if (!(evsel->core.attr.sample_type & PERF_SAMPLE_CALLCHAIN)) in intel_pt_callchain_init()
1260 if (!(evsel->core.attr.sample_type & PERF_SAMPLE_BRANCH_STACK)) in intel_pt_br_stack_init()
2239 u64 sample_type = evsel->core.attr.sample_type; in intel_pt_do_synth_pebs_sample() local
2268 if (sample_type & PERF_SAMPLE_TIME) { in intel_pt_do_synth_pebs_sample()
2279 if (sample_type & PERF_SAMPLE_CALLCHAIN && in intel_pt_do_synth_pebs_sample()
2287 if (sample_type & PERF_SAMPLE_REGS_INTR && in intel_pt_do_synth_pebs_sample()
2303 if (sample_type & PERF_SAMPLE_BRANCH_STACK) { in intel_pt_do_synth_pebs_sample()
2318 if (sample_type & PERF_SAMPLE_ADDR && items->has_mem_access_address) in intel_pt_do_synth_pebs_sample()
[all …]
Darm-spe.c56 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()
1145 attr.sample_type = evsel->core.attr.sample_type & in arm_spe_synth_events()
1147 attr.sample_type |= PERF_SAMPLE_IP | PERF_SAMPLE_TID | in arm_spe_synth_events()
1151 attr.sample_type &= ~(u64)PERF_SAMPLE_TIME; in arm_spe_synth_events()
1153 attr.sample_type |= PERF_SAMPLE_TIME; in arm_spe_synth_events()
1155 spe->sample_type = attr.sample_type; in arm_spe_synth_events()
/linux-6.6.21/samples/bpf/
Dtracex6_user.c108 .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.6.21/arch/x86/events/amd/
Dibs.c957 static void perf_ibs_parse_ld_st_data(__u64 sample_type, in perf_ibs_parse_ld_st_data() argument
975 if (sample_type & PERF_SAMPLE_DATA_SRC) { in perf_ibs_parse_ld_st_data()
980 if (sample_type & PERF_SAMPLE_WEIGHT_TYPE && op_data3.dc_miss && in perf_ibs_parse_ld_st_data()
984 if (sample_type & PERF_SAMPLE_WEIGHT_STRUCT) { in perf_ibs_parse_ld_st_data()
987 } else if (sample_type & PERF_SAMPLE_WEIGHT) { in perf_ibs_parse_ld_st_data()
993 if (sample_type & PERF_SAMPLE_ADDR && op_data3.dc_lin_addr_valid) { in perf_ibs_parse_ld_st_data()
998 if (sample_type & PERF_SAMPLE_PHYS_ADDR && op_data3.dc_phy_addr_valid) { in perf_ibs_parse_ld_st_data()
1004 static int perf_ibs_get_offset_max(struct perf_ibs *perf_ibs, u64 sample_type, in perf_ibs_get_offset_max() argument
1007 if (sample_type & PERF_SAMPLE_RAW || in perf_ibs_get_offset_max()
1009 (sample_type & PERF_SAMPLE_DATA_SRC || in perf_ibs_get_offset_max()
[all …]
/linux-6.6.21/tools/perf/ui/browsers/
Dscripts.c39 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-6.6.21/tools/perf/tests/attr/
Dtest-record-data7 # sample_type = PERF_SAMPLE_IP | PERF_SAMPLE_TID | PERF_SAMPLE_TIME |
9 sample_type=33039
Dtest-record-group19 sample_type=327
17 sample_type=327
Dtest-record-group211 sample_type=87
21 sample_type=87
Dtest-record-group-sampling9 sample_type=343
22 sample_type=343
Dtest-record-raw7 sample_type=1415
/linux-6.6.21/arch/x86/events/intel/
Dds.c1189 u64 sample_type = attr->sample_type; in pebs_update_adaptive_cfg() local
1193 if (!(sample_type & ~(PERF_SAMPLE_IP|PERF_SAMPLE_TIME)) && in pebs_update_adaptive_cfg()
1197 if (sample_type & PERF_PEBS_MEMINFO_TYPE) in pebs_update_adaptive_cfg()
1206 gprs = (sample_type & PERF_SAMPLE_REGS_INTR) && in pebs_update_adaptive_cfg()
1209 tsx_weight = (sample_type & PERF_SAMPLE_WEIGHT_TYPE) && in pebs_update_adaptive_cfg()
1216 if ((sample_type & PERF_SAMPLE_REGS_INTR) && in pebs_update_adaptive_cfg()
1220 if (sample_type & PERF_SAMPLE_BRANCH_STACK) { in pebs_update_adaptive_cfg()
1622 u64 sample_type; in setup_pebs_fixed_sample_data() local
1628 sample_type = event->attr.sample_type; in setup_pebs_fixed_sample_data()
1638 if (fll && (sample_type & PERF_SAMPLE_WEIGHT_TYPE)) { in setup_pebs_fixed_sample_data()
[all …]
/linux-6.6.21/drivers/cpufreq/
Dcpufreq_ondemand.c177 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.6.21/arch/s390/kernel/
Dperf_pai_crypto.c228 a->sample_type |= PERF_SAMPLE_RAW; in paicrypt_event_init()
353 if (event->attr.sample_type & PERF_SAMPLE_TID) { in paicrypt_push_sample()
357 if (event->attr.sample_type & PERF_SAMPLE_TIME) in paicrypt_push_sample()
359 if (event->attr.sample_type & (PERF_SAMPLE_ID | PERF_SAMPLE_IDENTIFIER)) in paicrypt_push_sample()
361 if (event->attr.sample_type & PERF_SAMPLE_CPU) { in paicrypt_push_sample()
365 if (event->attr.sample_type & PERF_SAMPLE_RAW) { in paicrypt_push_sample()
Dperf_pai_ext.c273 a->sample_type |= PERF_SAMPLE_RAW; in paiext_event_init()
444 if (event->attr.sample_type & PERF_SAMPLE_TID) { in paiext_push_sample()
448 if (event->attr.sample_type & PERF_SAMPLE_TIME) in paiext_push_sample()
450 if (event->attr.sample_type & (PERF_SAMPLE_ID | PERF_SAMPLE_IDENTIFIER)) in paiext_push_sample()
452 if (event->attr.sample_type & PERF_SAMPLE_CPU) in paiext_push_sample()
454 if (event->attr.sample_type & PERF_SAMPLE_RAW) { in paiext_push_sample()
/linux-6.6.21/tools/testing/selftests/bpf/prog_tests/
Dget_stackid_cannot_attach.c13 .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.6.21/tools/perf/
Dbuiltin-report.c367 u64 sample_type = evlist__combined_sample_type(session->evlist); in report__setup_sample_type() local
376 sample_type |= PERF_SAMPLE_CALLCHAIN; in report__setup_sample_type()
380 sample_type |= PERF_SAMPLE_BRANCH_STACK; in report__setup_sample_type()
382 if (!is_pipe && !(sample_type & PERF_SAMPLE_CALLCHAIN)) { in report__setup_sample_type()
408 if (!(sample_type & PERF_SAMPLE_CALLCHAIN)) { in report__setup_sample_type()
416 !(sample_type & PERF_SAMPLE_BRANCH_STACK)) { in report__setup_sample_type()
431 !(sample_type & PERF_SAMPLE_DATA_SRC)) { in report__setup_sample_type()
432 evsel->core.attr.sample_type |= PERF_SAMPLE_DATA_SRC; in report__setup_sample_type()
433 sample_type |= PERF_SAMPLE_DATA_SRC; in report__setup_sample_type()
437 if (!is_pipe && !(sample_type & PERF_SAMPLE_DATA_SRC)) { in report__setup_sample_type()
[all …]
/linux-6.6.21/kernel/events/
Dcore.c1847 static void __perf_event_header_size(struct perf_event *event, u64 sample_type) in __perf_event_header_size() argument
1852 if (sample_type & PERF_SAMPLE_IP) in __perf_event_header_size()
1855 if (sample_type & PERF_SAMPLE_ADDR) in __perf_event_header_size()
1858 if (sample_type & PERF_SAMPLE_PERIOD) in __perf_event_header_size()
1861 if (sample_type & PERF_SAMPLE_WEIGHT_TYPE) in __perf_event_header_size()
1864 if (sample_type & PERF_SAMPLE_READ) in __perf_event_header_size()
1867 if (sample_type & PERF_SAMPLE_DATA_SRC) in __perf_event_header_size()
1870 if (sample_type & PERF_SAMPLE_TRANSACTION) in __perf_event_header_size()
1873 if (sample_type & PERF_SAMPLE_PHYS_ADDR) in __perf_event_header_size()
1876 if (sample_type & PERF_SAMPLE_CGROUP) in __perf_event_header_size()
[all …]

123456