Home
last modified time | relevance | path

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

12345

/Linux-v5.15/tools/perf/tests/
Dsample-parsing.c175 static int do_test(u64 sample_type, u64 sample_regs, u64 read_format) in do_test() argument
181 .sample_type = sample_type, in do_test()
255 if (sample_type & PERF_SAMPLE_REGS_USER) in do_test()
258 if (sample_type & PERF_SAMPLE_REGS_INTR) in do_test()
261 if (sample_type & PERF_SAMPLE_BRANCH_STACK) in do_test()
275 sz = perf_event__sample_event_size(&sample, sample_type, read_format); in do_test()
288 err = perf_event__synthesize_sample(event, sample_type, read_format, in do_test()
292 "perf_event__synthesize_sample", sample_type, err); in do_test()
307 evsel.sample_size = __evsel__sample_size(sample_type); in do_test()
312 "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-v5.15/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-v5.15/samples/bpf/
Dtracex6_user.c109 .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.15/tools/perf/util/
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()
Dcs-etm.c978 if (packet->sample_type == CS_ETM_DISCONTINUITY) in cs_etm__first_executed_instr()
988 if (packet->sample_type == CS_ETM_DISCONTINUITY) in cs_etm__last_executed_instr()
1146 if (packet->sample_type == CS_ETM_DISCONTINUITY) { in cs_etm__copy_insn()
1339 attr.sample_type = evsel->core.attr.sample_type & PERF_SAMPLE_MASK; in cs_etm__synth_events()
1340 attr.sample_type |= PERF_SAMPLE_IP | PERF_SAMPLE_TID | 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()
[all …]
Devsel.c107 int __evsel__sample_size(u64 sample_type) in __evsel__sample_size() argument
109 u64 mask = sample_type & PERF_SAMPLE_MASK; in __evsel__sample_size()
131 static int __perf_evsel__calc_id_pos(u64 sample_type) in __perf_evsel__calc_id_pos() argument
135 if (sample_type & PERF_SAMPLE_IDENTIFIER) in __perf_evsel__calc_id_pos()
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()
164 static int __perf_evsel__calc_is_pos(u64 sample_type) in __perf_evsel__calc_is_pos() argument
[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.c980 if (!(evsel->core.attr.sample_type & PERF_SAMPLE_TIME)) in intel_pt_timeless_decoding()
1042 if ((evsel->core.attr.sample_type & PERF_SAMPLE_AUX) && in intel_pt_sampling_mode()
1085 if (!(evsel->core.attr.sample_type & PERF_SAMPLE_CALLCHAIN)) in intel_pt_callchain_init()
1123 if (!(evsel->core.attr.sample_type & PERF_SAMPLE_BRANCH_STACK)) in intel_pt_br_stack_init()
1988 u64 sample_type = evsel->core.attr.sample_type; in intel_pt_synth_pebs_sample() local
2018 if (sample_type & PERF_SAMPLE_TIME) { in intel_pt_synth_pebs_sample()
2029 if (sample_type & PERF_SAMPLE_CALLCHAIN && in intel_pt_synth_pebs_sample()
2037 if (sample_type & PERF_SAMPLE_REGS_INTR && in intel_pt_synth_pebs_sample()
2053 if (sample_type & PERF_SAMPLE_BRANCH_STACK) { in intel_pt_synth_pebs_sample()
2068 if (sample_type & PERF_SAMPLE_ADDR && items->has_mem_access_address) in intel_pt_synth_pebs_sample()
[all …]
Dsession.c798 bswap_field_64(sample_type); in perf_event__attr_swap()
1229 u64 sample_type = __evlist__combined_sample_type(evlist); in evlist__print_tstamp() local
1237 if ((sample_type & PERF_SAMPLE_CPU)) in evlist__print_tstamp()
1240 if (sample_type & PERF_SAMPLE_TIME) in evlist__print_tstamp()
1305 u64 sample_type; in dump_sample() local
1315 sample_type = evsel->core.attr.sample_type; in dump_sample()
1323 if (sample_type & PERF_SAMPLE_REGS_USER) in dump_sample()
1326 if (sample_type & PERF_SAMPLE_REGS_INTR) in dump_sample()
1329 if (sample_type & PERF_SAMPLE_STACK_USER) in dump_sample()
1332 if (sample_type & PERF_SAMPLE_WEIGHT_TYPE) { in dump_sample()
[all …]
Devlist.c1165 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 …]
/Linux-v5.15/arch/x86/events/intel/
Dds.c1068 u64 sample_type = attr->sample_type; in pebs_update_adaptive_cfg() local
1072 if (!(sample_type & ~(PERF_SAMPLE_IP|PERF_SAMPLE_TIME)) && in pebs_update_adaptive_cfg()
1076 if (sample_type & PERF_PEBS_MEMINFO_TYPE) in pebs_update_adaptive_cfg()
1085 gprs = (sample_type & PERF_SAMPLE_REGS_INTR) && in pebs_update_adaptive_cfg()
1088 tsx_weight = (sample_type & PERF_SAMPLE_WEIGHT_TYPE) && in pebs_update_adaptive_cfg()
1095 if ((sample_type & PERF_SAMPLE_REGS_INTR) && in pebs_update_adaptive_cfg()
1099 if (sample_type & PERF_SAMPLE_BRANCH_STACK) { in pebs_update_adaptive_cfg()
1463 u64 sample_type; in setup_pebs_fixed_sample_data() local
1469 sample_type = event->attr.sample_type; in setup_pebs_fixed_sample_data()
1479 if (fll && (sample_type & PERF_SAMPLE_WEIGHT_TYPE)) in setup_pebs_fixed_sample_data()
[all …]
/Linux-v5.15/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-v5.15/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
Dtest-record-graph-default7 sample_type=295
Dtest-record-raw7 sample_type=1415
/Linux-v5.15/drivers/cpufreq/
Dcpufreq_ondemand.c175 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()
Dcpufreq_ondemand.h16 unsigned int sample_type:1; member
/Linux-v5.15/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-v5.15/kernel/events/
Dcore.c1853 static void __perf_event_header_size(struct perf_event *event, u64 sample_type) in __perf_event_header_size() argument
1858 if (sample_type & PERF_SAMPLE_IP) in __perf_event_header_size()
1861 if (sample_type & PERF_SAMPLE_ADDR) in __perf_event_header_size()
1864 if (sample_type & PERF_SAMPLE_PERIOD) in __perf_event_header_size()
1867 if (sample_type & PERF_SAMPLE_WEIGHT_TYPE) in __perf_event_header_size()
1870 if (sample_type & PERF_SAMPLE_READ) in __perf_event_header_size()
1873 if (sample_type & PERF_SAMPLE_DATA_SRC) in __perf_event_header_size()
1876 if (sample_type & PERF_SAMPLE_TRANSACTION) in __perf_event_header_size()
1879 if (sample_type & PERF_SAMPLE_PHYS_ADDR) in __perf_event_header_size()
1882 if (sample_type & PERF_SAMPLE_CGROUP) in __perf_event_header_size()
[all …]
/Linux-v5.15/tools/perf/
Dbuiltin-report.c350 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()
1115 u64 sample_type; in process_attr() local
1126 sample_type = evlist__combined_sample_type(*pevlist); in process_attr()
[all …]

12345