Home
last modified time | relevance | path

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

12345

/OK3568_Linux_fs/kernel/tools/perf/tests/
H A Dsample-parsing.c169 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 …]
/OK3568_Linux_fs/kernel/samples/bpf/
H A 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()
/OK3568_Linux_fs/kernel/tools/perf/util/
H A Drecord.c88 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()
H A Dcs-etm.c954 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 …]
H A Devsel.c104 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 …]
H A Darm-spe.c51 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()
H A Dintel-pt.c842 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 …]
H A 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()
H A Devlist.c1130 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 …]
H A Dsession.c778 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 …]
H A Djitdump.c40 uint64_t sample_type; member
485 if (jd->sample_type & PERF_SAMPLE_TID) { in jit_repipe_code_load()
489 if (jd->sample_type & PERF_SAMPLE_TIME) in jit_repipe_code_load()
577 if (jd->sample_type & PERF_SAMPLE_TID) { in jit_repipe_code_move()
581 if (jd->sample_type & PERF_SAMPLE_TIME) in jit_repipe_code_move()
823 jd.sample_type = first->core.attr.sample_type; in jit_process()
/OK3568_Linux_fs/kernel/arch/x86/events/intel/
H A Dds.c974 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 …]
/OK3568_Linux_fs/kernel/tools/perf/ui/browsers/
H A 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()
/OK3568_Linux_fs/kernel/drivers/cpufreq/
H A 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()
/OK3568_Linux_fs/kernel/tools/perf/tests/attr/
H A Dtest-record-data7 # sample_type = PERF_SAMPLE_IP | PERF_SAMPLE_TID | PERF_SAMPLE_TIME |
9 sample_type=33039
H A Dtest-record-group19 sample_type=327
17 sample_type=327
H A Dtest-record-group9 sample_type=327
16 sample_type=327
H A Dtest-record-group211 sample_type=87
21 sample_type=87
H A Dtest-record-group-sampling9 sample_type=343
22 sample_type=343
/OK3568_Linux_fs/kernel/tools/perf/
H A Dbuiltin-report.c341 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 …]
/OK3568_Linux_fs/kernel/kernel/events/
H A Dcore.c1867 static void __perf_event_header_size(struct perf_event *event, u64 sample_type) in __perf_event_header_size() argument
1872 if (sample_type & PERF_SAMPLE_IP) in __perf_event_header_size()
1875 if (sample_type & PERF_SAMPLE_ADDR) in __perf_event_header_size()
1878 if (sample_type & PERF_SAMPLE_PERIOD) in __perf_event_header_size()
1881 if (sample_type & PERF_SAMPLE_WEIGHT) in __perf_event_header_size()
1884 if (sample_type & PERF_SAMPLE_READ) in __perf_event_header_size()
1887 if (sample_type & PERF_SAMPLE_DATA_SRC) in __perf_event_header_size()
1890 if (sample_type & PERF_SAMPLE_TRANSACTION) in __perf_event_header_size()
1893 if (sample_type & PERF_SAMPLE_PHYS_ADDR) in __perf_event_header_size()
1896 if (sample_type & PERF_SAMPLE_CGROUP) in __perf_event_header_size()
[all …]
/OK3568_Linux_fs/kernel/tools/testing/selftests/bpf/prog_tests/
H A Dget_stackid_cannot_attach.c13 .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()
/OK3568_Linux_fs/kernel/arch/s390/kernel/
H A Dperf_cpum_cf_diag.c249 attr->sample_type, atomic_read(&cf_diag_events)); in cf_diag_event_init()
261 !(attr->sample_type & (PERF_SAMPLE_CPU | PERF_SAMPLE_RAW))) { in cf_diag_event_init()
500 if (event->attr.sample_type & PERF_SAMPLE_CPU) in cf_diag_push_sample()
502 if (event->attr.sample_type & PERF_SAMPLE_RAW) { in cf_diag_push_sample()
513 event->attr.sample_type, raw.size, overflow); in cf_diag_push_sample()
/OK3568_Linux_fs/kernel/arch/x86/events/amd/
H A Dibs.c322 if (event->attr.sample_type & PERF_SAMPLE_CALLCHAIN) in perf_ibs_init()
323 event->attr.sample_type |= __PERF_SAMPLE_CALLCHAIN_EARLY; in perf_ibs_init()
647 if (event->attr.sample_type & PERF_SAMPLE_RAW) in perf_ibs_handle_irq()
665 if (event->attr.sample_type & PERF_SAMPLE_RAW) { in perf_ibs_handle_irq()
695 if (event->attr.sample_type & PERF_SAMPLE_RAW) { in perf_ibs_handle_irq()
710 if (event->attr.sample_type & PERF_SAMPLE_CALLCHAIN) in perf_ibs_handle_irq()
/OK3568_Linux_fs/kernel/sound/pci/mixart/
H A Dmixart.c525 stream_param.sample_type = ST_INTEGER_8; in mixart_set_format()
529 stream_param.sample_type = ST_INTEGER_16LE; in mixart_set_format()
533 stream_param.sample_type = ST_INTEGER_16BE; in mixart_set_format()
537 stream_param.sample_type = ST_INTEGER_24LE; in mixart_set_format()
541 stream_param.sample_type = ST_INTEGER_24BE; in mixart_set_format()
545 stream_param.sample_type = ST_FLOATING_POINT_32LE; in mixart_set_format()
549 stream_param.sample_type = ST_FLOATING_POINT_32BE; in mixart_set_format()
560 … stream_param.sample_type, stream_param.sample_size, stream_param.sampling_freq, stream->channels); in mixart_set_format()

12345