Home
last modified time | relevance | path

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

123456

/Linux-v6.1/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.c107 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-v6.1/tools/perf/arch/x86/tests/
Dsample-parsing.c35 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-v6.1/tools/perf/util/
Dbpf_off_cpu.c61 evsel->core.attr.sample_type = PERF_SAMPLE_CALLCHAIN; in off_cpu_config()
295 u64 sample_type, val, sid = 0; in off_cpu_write() local
315 sample_type = evsel->core.attr.sample_type; in off_cpu_write()
317 if (sample_type & ~OFFCPU_SAMPLE_TYPES) { in off_cpu_write()
319 (unsigned long long)sample_type); in off_cpu_write()
323 if (sample_type & (PERF_SAMPLE_ID | PERF_SAMPLE_IDENTIFIER)) { in off_cpu_write()
338 if (sample_type & PERF_SAMPLE_IDENTIFIER) in off_cpu_write()
340 if (sample_type & PERF_SAMPLE_IP) { in off_cpu_write()
344 if (sample_type & PERF_SAMPLE_TID) in off_cpu_write()
346 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()
136 if (evsel->core.attr.sample_type == first->core.attr.sample_type) in evlist__config()
Devsel.c139 int __evsel__sample_size(u64 sample_type) in __evsel__sample_size() argument
141 u64 mask = sample_type & PERF_SAMPLE_MASK; in __evsel__sample_size()
163 static int __perf_evsel__calc_id_pos(u64 sample_type) in __perf_evsel__calc_id_pos() argument
167 if (sample_type & PERF_SAMPLE_IDENTIFIER) in __perf_evsel__calc_id_pos()
170 if (!(sample_type & PERF_SAMPLE_ID)) in __perf_evsel__calc_id_pos()
173 if (sample_type & PERF_SAMPLE_IP) in __perf_evsel__calc_id_pos()
176 if (sample_type & PERF_SAMPLE_TID) in __perf_evsel__calc_id_pos()
179 if (sample_type & PERF_SAMPLE_TIME) in __perf_evsel__calc_id_pos()
182 if (sample_type & PERF_SAMPLE_ADDR) in __perf_evsel__calc_id_pos()
196 static int __perf_evsel__calc_is_pos(u64 sample_type) in __perf_evsel__calc_is_pos() argument
[all …]
Dcs-etm.c976 if (packet->sample_type == CS_ETM_DISCONTINUITY) in cs_etm__first_executed_instr()
986 if (packet->sample_type == CS_ETM_DISCONTINUITY) in cs_etm__last_executed_instr()
1144 if (packet->sample_type == CS_ETM_DISCONTINUITY) { in cs_etm__copy_insn()
1337 attr.sample_type = evsel->core.attr.sample_type & PERF_SAMPLE_MASK; in cs_etm__synth_events()
1338 attr.sample_type |= PERF_SAMPLE_IP | PERF_SAMPLE_TID | in cs_etm__synth_events()
1341 attr.sample_type &= ~(u64)PERF_SAMPLE_TIME; in cs_etm__synth_events()
1343 attr.sample_type |= PERF_SAMPLE_TIME; in cs_etm__synth_events()
1362 attr.sample_type |= PERF_SAMPLE_ADDR; in cs_etm__synth_events()
1366 etm->branches_sample_type = attr.sample_type; in cs_etm__synth_events()
1369 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()
Darm-spe.c56 u64 sample_type; member
313 ret = arm_spe__inject_event(event, sample, spe->sample_type); in arm_spe_deliver_synth_event()
778 if ((evsel->core.attr.sample_type & PERF_SAMPLE_TIME)) in arm_spe__is_timeless_decoding()
1125 attr.sample_type = evsel->core.attr.sample_type & in arm_spe_synth_events()
1127 attr.sample_type |= PERF_SAMPLE_IP | PERF_SAMPLE_TID | in arm_spe_synth_events()
1131 attr.sample_type &= ~(u64)PERF_SAMPLE_TIME; in arm_spe_synth_events()
1133 attr.sample_type |= PERF_SAMPLE_TIME; in arm_spe_synth_events()
1135 spe->sample_type = attr.sample_type; in arm_spe_synth_events()
Dintel-pt.c1089 if (!(evsel->core.attr.sample_type & PERF_SAMPLE_TIME)) in intel_pt_timeless_decoding()
1151 if ((evsel->core.attr.sample_type & PERF_SAMPLE_AUX) && in intel_pt_sampling_mode()
1194 if (!(evsel->core.attr.sample_type & PERF_SAMPLE_CALLCHAIN)) in intel_pt_callchain_init()
1232 if (!(evsel->core.attr.sample_type & PERF_SAMPLE_BRANCH_STACK)) in intel_pt_br_stack_init()
2181 u64 sample_type = evsel->core.attr.sample_type; in intel_pt_do_synth_pebs_sample() local
2210 if (sample_type & PERF_SAMPLE_TIME) { in intel_pt_do_synth_pebs_sample()
2221 if (sample_type & PERF_SAMPLE_CALLCHAIN && in intel_pt_do_synth_pebs_sample()
2229 if (sample_type & PERF_SAMPLE_REGS_INTR && in intel_pt_do_synth_pebs_sample()
2245 if (sample_type & PERF_SAMPLE_BRANCH_STACK) { in intel_pt_do_synth_pebs_sample()
2260 if (sample_type & PERF_SAMPLE_ADDR && items->has_mem_access_address) in intel_pt_do_synth_pebs_sample()
[all …]
/Linux-v6.1/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-v6.1/arch/x86/events/amd/
Dibs.c952 static void perf_ibs_parse_ld_st_data(__u64 sample_type, in perf_ibs_parse_ld_st_data() argument
970 if (sample_type & PERF_SAMPLE_DATA_SRC) { in perf_ibs_parse_ld_st_data()
975 if (sample_type & PERF_SAMPLE_WEIGHT_TYPE && op_data3.dc_miss && in perf_ibs_parse_ld_st_data()
979 if (sample_type & PERF_SAMPLE_WEIGHT_STRUCT) { in perf_ibs_parse_ld_st_data()
982 } else if (sample_type & PERF_SAMPLE_WEIGHT) { in perf_ibs_parse_ld_st_data()
988 if (sample_type & PERF_SAMPLE_ADDR && op_data3.dc_lin_addr_valid) { in perf_ibs_parse_ld_st_data()
993 if (sample_type & PERF_SAMPLE_PHYS_ADDR && op_data3.dc_phy_addr_valid) { in perf_ibs_parse_ld_st_data()
999 static int perf_ibs_get_offset_max(struct perf_ibs *perf_ibs, u64 sample_type, in perf_ibs_get_offset_max() argument
1002 if (sample_type & PERF_SAMPLE_RAW || in perf_ibs_get_offset_max()
1004 (sample_type & PERF_SAMPLE_DATA_SRC || in perf_ibs_get_offset_max()
[all …]
/Linux-v6.1/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-v6.1/tools/perf/tests/attr/
Dtest-record-data7 # sample_type = PERF_SAMPLE_IP | PERF_SAMPLE_TID | PERF_SAMPLE_TIME |
9 sample_type=33039
Dtest-record-group9 sample_type=327
16 sample_type=327
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
/Linux-v6.1/arch/x86/events/intel/
Dds.c1133 u64 sample_type = attr->sample_type; in pebs_update_adaptive_cfg() local
1137 if (!(sample_type & ~(PERF_SAMPLE_IP|PERF_SAMPLE_TIME)) && in pebs_update_adaptive_cfg()
1141 if (sample_type & PERF_PEBS_MEMINFO_TYPE) in pebs_update_adaptive_cfg()
1150 gprs = (sample_type & PERF_SAMPLE_REGS_INTR) && in pebs_update_adaptive_cfg()
1153 tsx_weight = (sample_type & PERF_SAMPLE_WEIGHT_TYPE) && in pebs_update_adaptive_cfg()
1160 if ((sample_type & PERF_SAMPLE_REGS_INTR) && in pebs_update_adaptive_cfg()
1164 if (sample_type & PERF_SAMPLE_BRANCH_STACK) { in pebs_update_adaptive_cfg()
1537 u64 sample_type; in setup_pebs_fixed_sample_data() local
1543 sample_type = event->attr.sample_type; in setup_pebs_fixed_sample_data()
1553 if (fll && (sample_type & PERF_SAMPLE_WEIGHT_TYPE)) { in setup_pebs_fixed_sample_data()
[all …]
/Linux-v6.1/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-v6.1/arch/s390/kernel/
Dperf_pai_crypto.c227 a->sample_type |= PERF_SAMPLE_RAW; in paicrypt_event_init()
352 if (event->attr.sample_type & PERF_SAMPLE_TID) { in paicrypt_push_sample()
356 if (event->attr.sample_type & PERF_SAMPLE_TIME) in paicrypt_push_sample()
358 if (event->attr.sample_type & (PERF_SAMPLE_ID | PERF_SAMPLE_IDENTIFIER)) in paicrypt_push_sample()
360 if (event->attr.sample_type & PERF_SAMPLE_CPU) { in paicrypt_push_sample()
364 if (event->attr.sample_type & PERF_SAMPLE_RAW) { in paicrypt_push_sample()
Dperf_pai_ext.c276 a->sample_type |= PERF_SAMPLE_RAW; in paiext_event_init()
447 if (event->attr.sample_type & PERF_SAMPLE_TID) { in paiext_push_sample()
451 if (event->attr.sample_type & PERF_SAMPLE_TIME) in paiext_push_sample()
453 if (event->attr.sample_type & (PERF_SAMPLE_ID | PERF_SAMPLE_IDENTIFIER)) in paiext_push_sample()
455 if (event->attr.sample_type & PERF_SAMPLE_CPU) in paiext_push_sample()
457 if (event->attr.sample_type & PERF_SAMPLE_RAW) { in paiext_push_sample()
/Linux-v6.1/kernel/events/
Dcore.c1837 static void __perf_event_header_size(struct perf_event *event, u64 sample_type) in __perf_event_header_size() argument
1842 if (sample_type & PERF_SAMPLE_IP) in __perf_event_header_size()
1845 if (sample_type & PERF_SAMPLE_ADDR) in __perf_event_header_size()
1848 if (sample_type & PERF_SAMPLE_PERIOD) in __perf_event_header_size()
1851 if (sample_type & PERF_SAMPLE_WEIGHT_TYPE) in __perf_event_header_size()
1854 if (sample_type & PERF_SAMPLE_READ) in __perf_event_header_size()
1857 if (sample_type & PERF_SAMPLE_DATA_SRC) in __perf_event_header_size()
1860 if (sample_type & PERF_SAMPLE_TRANSACTION) in __perf_event_header_size()
1863 if (sample_type & PERF_SAMPLE_PHYS_ADDR) in __perf_event_header_size()
1866 if (sample_type & PERF_SAMPLE_CGROUP) in __perf_event_header_size()
[all …]
/Linux-v6.1/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-v6.1/tools/perf/
Dbuiltin-report.c356 u64 sample_type = evlist__combined_sample_type(session->evlist); in report__setup_sample_type() local
365 sample_type |= PERF_SAMPLE_CALLCHAIN; in report__setup_sample_type()
369 sample_type |= PERF_SAMPLE_BRANCH_STACK; in report__setup_sample_type()
371 if (!is_pipe && !(sample_type & PERF_SAMPLE_CALLCHAIN)) { in report__setup_sample_type()
397 if (!(sample_type & PERF_SAMPLE_CALLCHAIN)) { in report__setup_sample_type()
405 !(sample_type & PERF_SAMPLE_BRANCH_STACK)) { in report__setup_sample_type()
420 !(sample_type & PERF_SAMPLE_DATA_SRC)) { in report__setup_sample_type()
421 evsel->core.attr.sample_type |= PERF_SAMPLE_DATA_SRC; in report__setup_sample_type()
422 sample_type |= PERF_SAMPLE_DATA_SRC; in report__setup_sample_type()
426 if (!is_pipe && !(sample_type & PERF_SAMPLE_DATA_SRC)) { in report__setup_sample_type()
[all …]

123456