Home
last modified time | relevance | path

Searched refs:branch_sample_type (Results 1 - 25 of 60) sorted by relevance

123

/kernel/linux/linux-6.6/tools/testing/selftests/powerpc/pmu/sampling_tests/
H A Dbhrb_filter_map_test.c68 event.attr.branch_sample_type = 1U << i; in bhrb_filter_map_test()
74 event.attr.branch_sample_type = bhrb_filter_map_valid_common[i]; in bhrb_filter_map_test()
88 event.attr.branch_sample_type = bhrb_filter_map_valid_p10[i]; in bhrb_filter_map_test()
94 event.attr.branch_sample_type = bhrb_filter_map_valid_p10[i]; in bhrb_filter_map_test()
105 event.attr.branch_sample_type = PERF_SAMPLE_BRANCH_ANY | PERF_SAMPLE_BRANCH_ANY_CALL; in bhrb_filter_map_test()
H A Dmmcra_bhrb_cond_test.c41 event.attr.branch_sample_type = PERF_SAMPLE_BRANCH_COND; in mmcra_bhrb_cond_test()
H A Dmmcra_bhrb_ind_call_test.c41 event.attr.branch_sample_type = PERF_SAMPLE_BRANCH_IND_CALL; in mmcra_bhrb_ind_call_test()
H A Dmmcra_bhrb_any_test.c37 event.attr.branch_sample_type = PERF_SAMPLE_BRANCH_ANY; in mmcra_bhrb_any_test()
H A Dmmcra_bhrb_disable_test.c38 event.attr.branch_sample_type = PERF_SAMPLE_BRANCH_ANY; in mmcra_bhrb_disable_test()
/kernel/linux/linux-5.10/arch/powerpc/perf/
H A Dpower10-pmu.c223 static u64 power10_bhrb_filter_map(u64 branch_sample_type) in power10_bhrb_filter_map() argument
235 if (branch_sample_type & PERF_SAMPLE_BRANCH_ANY) in power10_bhrb_filter_map()
239 if (branch_sample_type & PERF_SAMPLE_BRANCH_ANY_RETURN) in power10_bhrb_filter_map()
242 if (branch_sample_type & PERF_SAMPLE_BRANCH_IND_CALL) { in power10_bhrb_filter_map()
247 if (branch_sample_type & PERF_SAMPLE_BRANCH_COND) { in power10_bhrb_filter_map()
252 if (branch_sample_type & PERF_SAMPLE_BRANCH_CALL) in power10_bhrb_filter_map()
255 if (branch_sample_type & PERF_SAMPLE_BRANCH_ANY_CALL) { in power10_bhrb_filter_map()
H A Dpower9-pmu.c266 static u64 power9_bhrb_filter_map(u64 branch_sample_type) in power9_bhrb_filter_map() argument
278 if (branch_sample_type & PERF_SAMPLE_BRANCH_ANY) in power9_bhrb_filter_map()
282 if (branch_sample_type & PERF_SAMPLE_BRANCH_ANY_RETURN) in power9_bhrb_filter_map()
285 if (branch_sample_type & PERF_SAMPLE_BRANCH_IND_CALL) in power9_bhrb_filter_map()
288 if (branch_sample_type & PERF_SAMPLE_BRANCH_CALL) in power9_bhrb_filter_map()
291 if (branch_sample_type & PERF_SAMPLE_BRANCH_ANY_CALL) { in power9_bhrb_filter_map()
H A Dpower8-pmu.c207 static u64 power8_bhrb_filter_map(u64 branch_sample_type) in power8_bhrb_filter_map() argument
219 if (branch_sample_type & PERF_SAMPLE_BRANCH_ANY) in power8_bhrb_filter_map()
223 if (branch_sample_type & PERF_SAMPLE_BRANCH_ANY_RETURN) in power8_bhrb_filter_map()
226 if (branch_sample_type & PERF_SAMPLE_BRANCH_IND_CALL) in power8_bhrb_filter_map()
229 if (branch_sample_type & PERF_SAMPLE_BRANCH_CALL) in power8_bhrb_filter_map()
232 if (branch_sample_type & PERF_SAMPLE_BRANCH_ANY_CALL) { in power8_bhrb_filter_map()
/kernel/linux/linux-6.6/arch/powerpc/perf/
H A Dpower9-pmu.c288 static u64 power9_bhrb_filter_map(u64 branch_sample_type) in power9_bhrb_filter_map() argument
300 if (branch_sample_type & PERF_SAMPLE_BRANCH_ANY) in power9_bhrb_filter_map()
304 if (branch_sample_type & PERF_SAMPLE_BRANCH_ANY_RETURN) in power9_bhrb_filter_map()
307 if (branch_sample_type & PERF_SAMPLE_BRANCH_IND_CALL) in power9_bhrb_filter_map()
310 if (branch_sample_type & PERF_SAMPLE_BRANCH_CALL) in power9_bhrb_filter_map()
313 if (branch_sample_type & PERF_SAMPLE_BRANCH_ANY_CALL) { in power9_bhrb_filter_map()
H A Dpower8-pmu.c217 static u64 power8_bhrb_filter_map(u64 branch_sample_type) in power8_bhrb_filter_map() argument
229 if (branch_sample_type & PERF_SAMPLE_BRANCH_ANY) in power8_bhrb_filter_map()
233 if (branch_sample_type & PERF_SAMPLE_BRANCH_ANY_RETURN) in power8_bhrb_filter_map()
236 if (branch_sample_type & PERF_SAMPLE_BRANCH_IND_CALL) in power8_bhrb_filter_map()
239 if (branch_sample_type & PERF_SAMPLE_BRANCH_CALL) in power8_bhrb_filter_map()
242 if (branch_sample_type & PERF_SAMPLE_BRANCH_ANY_CALL) { in power8_bhrb_filter_map()
H A Dpower10-pmu.c302 static u64 power10_bhrb_filter_map(u64 branch_sample_type) in power10_bhrb_filter_map() argument
314 if (branch_sample_type & PERF_SAMPLE_BRANCH_ANY) in power10_bhrb_filter_map()
318 if (branch_sample_type & PERF_SAMPLE_BRANCH_ANY_RETURN) in power10_bhrb_filter_map()
321 if (branch_sample_type & PERF_SAMPLE_BRANCH_IND_CALL) { in power10_bhrb_filter_map()
326 if (branch_sample_type & PERF_SAMPLE_BRANCH_COND) { in power10_bhrb_filter_map()
331 if (branch_sample_type & PERF_SAMPLE_BRANCH_CALL) in power10_bhrb_filter_map()
334 if (branch_sample_type & PERF_SAMPLE_BRANCH_ANY_CALL) { in power10_bhrb_filter_map()
/kernel/linux/linux-6.6/arch/x86/events/amd/
H A Dbrs.c83 u64 type = event->attr.branch_sample_type; in amd_brs_setup_filter()
264 int type = event->attr.branch_sample_type; in amd_brs_match_plm()
/kernel/linux/linux-6.6/include/linux/
H A Dperf_event.h1123 return event->attr.branch_sample_type & PERF_SAMPLE_BRANCH_NO_FLAGS; in branch_sample_no_flags()
1128 return event->attr.branch_sample_type & PERF_SAMPLE_BRANCH_NO_CYCLES; in branch_sample_no_cycles()
1131 static inline bool branch_sample_type(const struct perf_event *event) in branch_sample_type() function
1133 return event->attr.branch_sample_type & PERF_SAMPLE_BRANCH_TYPE_SAVE; in branch_sample_type()
1138 return event->attr.branch_sample_type & PERF_SAMPLE_BRANCH_HW_INDEX; in branch_sample_hw_index()
1143 return event->attr.branch_sample_type & PERF_SAMPLE_BRANCH_PRIV_SAVE; in branch_sample_priv()
1648 return event->attr.branch_sample_type != 0; in needs_branch_stack()
/kernel/linux/linux-5.10/tools/testing/selftests/bpf/prog_tests/
H A Dget_stackid_cannot_attach.c14 .branch_sample_type = PERF_SAMPLE_BRANCH_USER | in test_get_stackid_cannot_attach()
H A Dperf_event_stackmap.c62 .branch_sample_type = PERF_SAMPLE_BRANCH_USER | in test_perf_event_stackmap()
H A Dperf_branches.c115 attr.branch_sample_type = PERF_SAMPLE_BRANCH_USER | PERF_SAMPLE_BRANCH_ANY; in test_perf_branches_hw()
/kernel/linux/linux-6.6/tools/testing/selftests/bpf/prog_tests/
H A Dget_branch_snapshot.c43 attr.branch_sample_type = PERF_SAMPLE_BRANCH_KERNEL | in create_perf_events()
H A Dget_stackid_cannot_attach.c14 .branch_sample_type = PERF_SAMPLE_BRANCH_USER | in test_get_stackid_cannot_attach()
H A Dperf_event_stackmap.c62 .branch_sample_type = PERF_SAMPLE_BRANCH_USER | in test_perf_event_stackmap()
H A Dperf_branches.c115 attr.branch_sample_type = PERF_SAMPLE_BRANCH_USER | PERF_SAMPLE_BRANCH_ANY; in test_perf_branches_hw()
/kernel/linux/linux-5.10/arch/powerpc/include/asm/
H A Dperf_event_server.h49 u64 (*bhrb_filter_map)(u64 branch_sample_type);
/kernel/linux/linux-6.6/arch/powerpc/include/asm/
H A Dperf_event_server.h49 u64 (*bhrb_filter_map)(u64 branch_sample_type);
/kernel/linux/linux-5.10/tools/perf/tests/
H A Dattr.c138 WRITE_ASS(branch_sample_type, "llu"); in store_event()
/kernel/linux/linux-6.6/tools/perf/tests/
H A Dattr.c139 WRITE_ASS(branch_sample_type, "llu"); in store_event()
/kernel/linux/linux-5.10/tools/perf/util/
H A Devsel.h389 return evsel->core.attr.branch_sample_type & PERF_SAMPLE_BRANCH_CALL_STACK; in evsel__has_branch_callstack()
394 return evsel->core.attr.branch_sample_type & PERF_SAMPLE_BRANCH_HW_INDEX; in evsel__has_branch_hw_idx()

Completed in 17 milliseconds

123