Home
last modified time | relevance | path

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

1234

/Linux-v5.4/tools/perf/tests/
Dsample-parsing.c156 static int do_test(u64 sample_type, u64 sample_regs, u64 read_format) in do_test() argument
162 .sample_type = sample_type, in do_test()
227 if (sample_type & PERF_SAMPLE_REGS_USER) in do_test()
230 if (sample_type & PERF_SAMPLE_REGS_INTR) in do_test()
244 sz = perf_event__sample_event_size(&sample, sample_type, read_format); in do_test()
257 err = perf_event__synthesize_sample(event, sample_type, read_format, in do_test()
261 "perf_event__synthesize_sample", sample_type, err); in do_test()
276 evsel.sample_size = __perf_evsel__sample_size(sample_type); in do_test()
281 "perf_evsel__parse_sample", sample_type, err); in do_test()
285 if (!samples_same(&sample, &sample_out, sample_type, read_format)) { in do_test()
[all …]
/Linux-v5.4/samples/bpf/
Dtracex6_user.c107 .sample_type = 0, in test_bpf_perf_event()
116 .sample_type = 0, in test_bpf_perf_event()
125 .sample_type = 0, in test_bpf_perf_event()
135 .sample_type = 0, in test_bpf_perf_event()
147 .sample_type = 0, in test_bpf_perf_event()
160 .sample_type = 0, in test_bpf_perf_event()
/Linux-v5.4/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-group-sampling9 sample_type=343
22 sample_type=343
Dtest-record-raw7 sample_type=1415
Dtest-record-graph-default7 sample_type=295
Dtest-record-no-inherit7 sample_type=263
Dtest-record-branch-any7 sample_type=2311
Dtest-record-branch-filter-any7 sample_type=2311
/Linux-v5.4/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.4/arch/x86/events/intel/
Dds.c968 u64 sample_type = attr->sample_type; in pebs_update_adaptive_cfg() local
972 if (!(sample_type & ~(PERF_SAMPLE_IP|PERF_SAMPLE_TIME)) && in pebs_update_adaptive_cfg()
976 if (sample_type & PERF_PEBS_MEMINFO_TYPE) in pebs_update_adaptive_cfg()
985 gprs = (sample_type & PERF_SAMPLE_REGS_INTR) && in pebs_update_adaptive_cfg()
988 tsx_weight = (sample_type & PERF_SAMPLE_WEIGHT) && in pebs_update_adaptive_cfg()
995 if ((sample_type & PERF_SAMPLE_REGS_INTR) && in pebs_update_adaptive_cfg()
999 if (sample_type & PERF_SAMPLE_BRANCH_STACK) { in pebs_update_adaptive_cfg()
1350 u64 sample_type; in setup_pebs_fixed_sample_data() local
1356 sample_type = event->attr.sample_type; in setup_pebs_fixed_sample_data()
1366 if (fll && (sample_type & PERF_SAMPLE_WEIGHT)) in setup_pebs_fixed_sample_data()
[all …]
/Linux-v5.4/tools/perf/util/
Dcs-etm.c924 if (packet->sample_type == CS_ETM_DISCONTINUITY) in cs_etm__first_executed_instr()
934 if (packet->sample_type == CS_ETM_DISCONTINUITY) in cs_etm__last_executed_instr()
1092 if (packet->sample_type == CS_ETM_DISCONTINUITY) { in cs_etm__copy_insn()
1284 attr.sample_type = evsel->core.attr.sample_type & PERF_SAMPLE_MASK; in cs_etm__synth_events()
1285 attr.sample_type |= PERF_SAMPLE_IP | PERF_SAMPLE_TID | in cs_etm__synth_events()
1288 attr.sample_type &= ~(u64)PERF_SAMPLE_TIME; in cs_etm__synth_events()
1290 attr.sample_type |= PERF_SAMPLE_TIME; in cs_etm__synth_events()
1309 attr.sample_type |= PERF_SAMPLE_ADDR; in cs_etm__synth_events()
1314 etm->branches_sample_type = attr.sample_type; in cs_etm__synth_events()
1317 attr.sample_type &= ~(u64)PERF_SAMPLE_ADDR; in cs_etm__synth_events()
[all …]
Devsel.c105 int __perf_evsel__sample_size(u64 sample_type) in __perf_evsel__sample_size() argument
107 u64 mask = sample_type & PERF_SAMPLE_MASK; in __perf_evsel__sample_size()
129 static int __perf_evsel__calc_id_pos(u64 sample_type) in __perf_evsel__calc_id_pos() argument
133 if (sample_type & PERF_SAMPLE_IDENTIFIER) in __perf_evsel__calc_id_pos()
136 if (!(sample_type & PERF_SAMPLE_ID)) in __perf_evsel__calc_id_pos()
139 if (sample_type & PERF_SAMPLE_IP) in __perf_evsel__calc_id_pos()
142 if (sample_type & PERF_SAMPLE_TID) in __perf_evsel__calc_id_pos()
145 if (sample_type & PERF_SAMPLE_TIME) in __perf_evsel__calc_id_pos()
148 if (sample_type & PERF_SAMPLE_ADDR) in __perf_evsel__calc_id_pos()
162 static int __perf_evsel__calc_is_pos(u64 sample_type) in __perf_evsel__calc_is_pos() argument
[all …]
Devlist.c1103 evlist->combined_sample_type |= evsel->core.attr.sample_type; in __perf_evlist__combined_sample_type()
1128 u64 sample_type = first->core.attr.sample_type; in perf_evlist__valid_read_format() local
1136 if ((sample_type & PERF_SAMPLE_READ) && in perf_evlist__valid_read_format()
1148 u64 sample_type; in perf_evlist__id_hdr_size() local
1154 sample_type = first->core.attr.sample_type; in perf_evlist__id_hdr_size()
1156 if (sample_type & PERF_SAMPLE_TID) in perf_evlist__id_hdr_size()
1159 if (sample_type & PERF_SAMPLE_TIME) in perf_evlist__id_hdr_size()
1162 if (sample_type & PERF_SAMPLE_ID) in perf_evlist__id_hdr_size()
1165 if (sample_type & PERF_SAMPLE_STREAM_ID) in perf_evlist__id_hdr_size()
1168 if (sample_type & PERF_SAMPLE_CPU) in perf_evlist__id_hdr_size()
[all …]
Drecord.c87 evsel->core.attr.sample_type |= PERF_SAMPLE_IDENTIFIER; in perf_probe_sample_identifier()
177 if (evsel->core.attr.sample_type == first->core.attr.sample_type) in perf_evlist__config()
Dintel-bts.c785 attr.sample_type = evsel->core.attr.sample_type & PERF_SAMPLE_MASK; in intel_bts_synth_events()
786 attr.sample_type |= PERF_SAMPLE_IP | PERF_SAMPLE_TID | in intel_bts_synth_events()
788 attr.sample_type &= ~(u64)PERF_SAMPLE_TIME; in intel_bts_synth_events()
789 attr.sample_type &= ~(u64)PERF_SAMPLE_CPU; in intel_bts_synth_events()
805 attr.sample_type |= PERF_SAMPLE_ADDR; in intel_bts_synth_events()
807 id, (u64)attr.sample_type); in intel_bts_synth_events()
815 bts->branches_sample_type = attr.sample_type; in intel_bts_synth_events()
822 __perf_evsel__sample_size(attr.sample_type); in intel_bts_synth_events()
Dintel-pt.c795 if (!(evsel->core.attr.sample_type & PERF_SAMPLE_TIME)) in intel_pt_timeless_decoding()
1707 u64 sample_type = evsel->core.attr.sample_type; in intel_pt_synth_pebs_sample() local
1739 if (sample_type & PERF_SAMPLE_TIME) { in intel_pt_synth_pebs_sample()
1750 if (sample_type & PERF_SAMPLE_CALLCHAIN && in intel_pt_synth_pebs_sample()
1758 if (sample_type & PERF_SAMPLE_REGS_INTR && in intel_pt_synth_pebs_sample()
1774 if (sample_type & PERF_SAMPLE_BRANCH_STACK) { in intel_pt_synth_pebs_sample()
1794 if (sample_type & PERF_SAMPLE_ADDR && items->has_mem_access_address) in intel_pt_synth_pebs_sample()
1797 if (sample_type & PERF_SAMPLE_WEIGHT) { in intel_pt_synth_pebs_sample()
1810 if (sample_type & PERF_SAMPLE_TRANSACTION && items->has_tsx_aux_info) { in intel_pt_synth_pebs_sample()
1821 return intel_pt_deliver_synth_event(pt, ptq, event, &sample, sample_type); in intel_pt_synth_pebs_sample()
[all …]
Dsession.c740 bswap_field_64(sample_type); in perf_event__attr_swap()
1155 u64 sample_type = __perf_evlist__combined_sample_type(evlist); in perf_evlist__print_tstamp() local
1163 if ((sample_type & PERF_SAMPLE_CPU)) in perf_evlist__print_tstamp()
1166 if (sample_type & PERF_SAMPLE_TIME) in perf_evlist__print_tstamp()
1223 u64 sample_type; in dump_sample() local
1232 sample_type = evsel->core.attr.sample_type; in dump_sample()
1237 if (sample_type & PERF_SAMPLE_BRANCH_STACK) in dump_sample()
1240 if (sample_type & PERF_SAMPLE_REGS_USER) in dump_sample()
1243 if (sample_type & PERF_SAMPLE_REGS_INTR) in dump_sample()
1246 if (sample_type & PERF_SAMPLE_STACK_USER) in dump_sample()
[all …]
Djitdump.c39 uint64_t sample_type; member
470 if (jd->sample_type & PERF_SAMPLE_TID) { in jit_repipe_code_load()
474 if (jd->sample_type & PERF_SAMPLE_TIME) in jit_repipe_code_load()
562 if (jd->sample_type & PERF_SAMPLE_TID) { in jit_repipe_code_move()
566 if (jd->sample_type & PERF_SAMPLE_TIME) in jit_repipe_code_move()
781 jd.sample_type = first->core.attr.sample_type; in jit_process()
/Linux-v5.4/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.4/kernel/events/
Dcore.c1727 static void __perf_event_header_size(struct perf_event *event, u64 sample_type) in __perf_event_header_size() argument
1732 if (sample_type & PERF_SAMPLE_IP) in __perf_event_header_size()
1735 if (sample_type & PERF_SAMPLE_ADDR) in __perf_event_header_size()
1738 if (sample_type & PERF_SAMPLE_PERIOD) in __perf_event_header_size()
1741 if (sample_type & PERF_SAMPLE_WEIGHT) in __perf_event_header_size()
1744 if (sample_type & PERF_SAMPLE_READ) in __perf_event_header_size()
1747 if (sample_type & PERF_SAMPLE_DATA_SRC) in __perf_event_header_size()
1750 if (sample_type & PERF_SAMPLE_TRANSACTION) in __perf_event_header_size()
1753 if (sample_type & PERF_SAMPLE_PHYS_ADDR) in __perf_event_header_size()
1767 __perf_event_header_size(event, event->attr.sample_type); in perf_event__header_size()
[all …]
/Linux-v5.4/arch/s390/kernel/
Dperf_cpum_cf_diag.c248 event, event->cpu, attr->config, attr->sample_type, 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()

1234