Home
last modified time | relevance | path

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

1234

/Linux-v4.19/tools/perf/tests/
Dsample-parsing.c151 static int do_test(u64 sample_type, u64 sample_regs, u64 read_format) in do_test() argument
156 .sample_type = sample_type, in do_test()
220 if (sample_type & PERF_SAMPLE_REGS_USER) in do_test()
223 if (sample_type & PERF_SAMPLE_REGS_INTR) in do_test()
237 sz = perf_event__sample_event_size(&sample, sample_type, read_format); in do_test()
250 err = perf_event__synthesize_sample(event, sample_type, read_format, in do_test()
254 "perf_event__synthesize_sample", sample_type, err); in do_test()
269 evsel.sample_size = __perf_evsel__sample_size(sample_type); in do_test()
274 "perf_evsel__parse_sample", sample_type, err); in do_test()
278 if (!samples_same(&sample, &sample_out, sample_type, read_format)) { in do_test()
[all …]
/Linux-v4.19/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-v4.19/tools/perf/util/
Dcs-etm.c498 if (packet->sample_type == CS_ETM_TRACE_ON) in cs_etm__last_executed_instr()
515 if (packet->sample_type == CS_ETM_TRACE_ON) in cs_etm__first_executed_instr()
810 attr.sample_type = evsel->attr.sample_type & PERF_SAMPLE_MASK; in cs_etm__synth_events()
811 attr.sample_type |= PERF_SAMPLE_IP | PERF_SAMPLE_TID | in cs_etm__synth_events()
814 attr.sample_type &= ~(u64)PERF_SAMPLE_TIME; in cs_etm__synth_events()
816 attr.sample_type |= PERF_SAMPLE_TIME; in cs_etm__synth_events()
835 attr.sample_type |= PERF_SAMPLE_ADDR; in cs_etm__synth_events()
840 etm->branches_sample_type = attr.sample_type; in cs_etm__synth_events()
843 attr.sample_type &= ~(u64)PERF_SAMPLE_ADDR; in cs_etm__synth_events()
847 attr.sample_type |= PERF_SAMPLE_BRANCH_STACK; in cs_etm__synth_events()
[all …]
Devsel.c94 int __perf_evsel__sample_size(u64 sample_type) in __perf_evsel__sample_size() argument
96 u64 mask = sample_type & PERF_SAMPLE_MASK; in __perf_evsel__sample_size()
118 static int __perf_evsel__calc_id_pos(u64 sample_type) in __perf_evsel__calc_id_pos() argument
122 if (sample_type & PERF_SAMPLE_IDENTIFIER) in __perf_evsel__calc_id_pos()
125 if (!(sample_type & PERF_SAMPLE_ID)) in __perf_evsel__calc_id_pos()
128 if (sample_type & PERF_SAMPLE_IP) in __perf_evsel__calc_id_pos()
131 if (sample_type & PERF_SAMPLE_TID) in __perf_evsel__calc_id_pos()
134 if (sample_type & PERF_SAMPLE_TIME) in __perf_evsel__calc_id_pos()
137 if (sample_type & PERF_SAMPLE_ADDR) in __perf_evsel__calc_id_pos()
151 static int __perf_evsel__calc_is_pos(u64 sample_type) in __perf_evsel__calc_is_pos() argument
[all …]
Devlist.c1255 evlist->combined_sample_type |= evsel->attr.sample_type; in __perf_evlist__combined_sample_type()
1280 u64 sample_type = first->attr.sample_type; in perf_evlist__valid_read_format() local
1288 if ((sample_type & PERF_SAMPLE_READ) && in perf_evlist__valid_read_format()
1306 u64 sample_type; in perf_evlist__id_hdr_size() local
1312 sample_type = first->attr.sample_type; in perf_evlist__id_hdr_size()
1314 if (sample_type & PERF_SAMPLE_TID) in perf_evlist__id_hdr_size()
1317 if (sample_type & PERF_SAMPLE_TIME) in perf_evlist__id_hdr_size()
1320 if (sample_type & PERF_SAMPLE_ID) in perf_evlist__id_hdr_size()
1323 if (sample_type & PERF_SAMPLE_STREAM_ID) in perf_evlist__id_hdr_size()
1326 if (sample_type & PERF_SAMPLE_CPU) in perf_evlist__id_hdr_size()
[all …]
Drecord.c83 evsel->attr.sample_type |= PERF_SAMPLE_IDENTIFIER; in perf_probe_sample_identifier()
173 if (evsel->attr.sample_type == first->attr.sample_type) in perf_evlist__config()
Dintel-bts.c801 attr.sample_type = evsel->attr.sample_type & PERF_SAMPLE_MASK; in intel_bts_synth_events()
802 attr.sample_type |= PERF_SAMPLE_IP | PERF_SAMPLE_TID | in intel_bts_synth_events()
804 attr.sample_type &= ~(u64)PERF_SAMPLE_TIME; in intel_bts_synth_events()
805 attr.sample_type &= ~(u64)PERF_SAMPLE_CPU; in intel_bts_synth_events()
821 attr.sample_type |= PERF_SAMPLE_ADDR; in intel_bts_synth_events()
823 id, (u64)attr.sample_type); in intel_bts_synth_events()
831 bts->branches_sample_type = attr.sample_type; in intel_bts_synth_events()
838 __perf_evsel__sample_size(attr.sample_type); in intel_bts_synth_events()
Dsession.c616 bswap_field_64(sample_type); in perf_event__attr_swap()
1020 u64 sample_type = __perf_evlist__combined_sample_type(evlist); in perf_evlist__print_tstamp() local
1028 if ((sample_type & PERF_SAMPLE_CPU)) in perf_evlist__print_tstamp()
1031 if (sample_type & PERF_SAMPLE_TIME) in perf_evlist__print_tstamp()
1086 u64 sample_type; in dump_sample() local
1095 sample_type = evsel->attr.sample_type; in dump_sample()
1100 if ((sample_type & PERF_SAMPLE_BRANCH_STACK) && !perf_evsel__has_branch_callstack(evsel)) in dump_sample()
1103 if (sample_type & PERF_SAMPLE_REGS_USER) in dump_sample()
1106 if (sample_type & PERF_SAMPLE_REGS_INTR) in dump_sample()
1109 if (sample_type & PERF_SAMPLE_STACK_USER) in dump_sample()
[all …]
Djitdump.c38 uint64_t sample_type; member
471 if (jd->sample_type & PERF_SAMPLE_TID) { in jit_repipe_code_load()
475 if (jd->sample_type & PERF_SAMPLE_TIME) in jit_repipe_code_load()
563 if (jd->sample_type & PERF_SAMPLE_TID) { in jit_repipe_code_move()
567 if (jd->sample_type & PERF_SAMPLE_TIME) in jit_repipe_code_move()
782 jd.sample_type = first->attr.sample_type; in jit_process()
/Linux-v4.19/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-graph-default7 sample_type=295
Dtest-record-raw7 sample_type=1415
Dtest-record-no-inherit7 sample_type=263
Dtest-record-branch-any7 sample_type=2311
Dtest-record-branch-filter-any7 sample_type=2311
Dtest-record-branch-filter-any_call7 sample_type=2311
Dtest-record-branch-filter-any_ret7 sample_type=2311
Dtest-record-branch-filter-hv7 sample_type=2311
Dtest-record-branch-filter-ind_call7 sample_type=2311
Dtest-record-branch-filter-k7 sample_type=2311
/Linux-v4.19/drivers/cpufreq/
Dcpufreq_ondemand.c178 int sample_type = dbs_info->sample_type; in od_dbs_update() local
181 dbs_info->sample_type = OD_NORMAL_SAMPLE; in od_dbs_update()
186 if (sample_type == OD_SUB_SAMPLE && policy_dbs->sample_delay_ns > 0) { in od_dbs_update()
196 dbs_info->sample_type = OD_SUB_SAMPLE; in od_dbs_update()
395 dbs_info->sample_type = OD_NORMAL_SAMPLE; in od_start()
/Linux-v4.19/kernel/events/
Dcore.c1725 static void __perf_event_header_size(struct perf_event *event, u64 sample_type) in __perf_event_header_size() argument
1730 if (sample_type & PERF_SAMPLE_IP) in __perf_event_header_size()
1733 if (sample_type & PERF_SAMPLE_ADDR) in __perf_event_header_size()
1736 if (sample_type & PERF_SAMPLE_PERIOD) in __perf_event_header_size()
1739 if (sample_type & PERF_SAMPLE_WEIGHT) in __perf_event_header_size()
1742 if (sample_type & PERF_SAMPLE_READ) in __perf_event_header_size()
1745 if (sample_type & PERF_SAMPLE_DATA_SRC) in __perf_event_header_size()
1748 if (sample_type & PERF_SAMPLE_TRANSACTION) in __perf_event_header_size()
1751 if (sample_type & PERF_SAMPLE_PHYS_ADDR) in __perf_event_header_size()
1765 __perf_event_header_size(event, event->attr.sample_type); in perf_event__header_size()
[all …]

1234