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

12

/linux-master/tools/testing/selftests/powerpc/pmu/sampling_tests/
H A Dbhrb_filter_map_test.c68 event.attr.branch_sample_type = 1U << i;
74 event.attr.branch_sample_type = bhrb_filter_map_valid_common[i];
88 event.attr.branch_sample_type = bhrb_filter_map_valid_p10[i];
94 event.attr.branch_sample_type = bhrb_filter_map_valid_p10[i];
105 event.attr.branch_sample_type = PERF_SAMPLE_BRANCH_ANY | PERF_SAMPLE_BRANCH_ANY_CALL;
H A Dmmcra_bhrb_any_test.c37 event.attr.branch_sample_type = PERF_SAMPLE_BRANCH_ANY;
H A Dmmcra_bhrb_cond_test.c41 event.attr.branch_sample_type = PERF_SAMPLE_BRANCH_COND;
H A Dmmcra_bhrb_disable_test.c38 event.attr.branch_sample_type = PERF_SAMPLE_BRANCH_ANY;
H A Dmmcra_bhrb_ind_call_test.c41 event.attr.branch_sample_type = PERF_SAMPLE_BRANCH_IND_CALL;
/linux-master/arch/powerpc/perf/
H A Dpower9-pmu.c288 static u64 power9_bhrb_filter_map(u64 branch_sample_type) argument
300 if (branch_sample_type & PERF_SAMPLE_BRANCH_ANY)
304 if (branch_sample_type & PERF_SAMPLE_BRANCH_ANY_RETURN)
307 if (branch_sample_type & PERF_SAMPLE_BRANCH_IND_CALL)
310 if (branch_sample_type & PERF_SAMPLE_BRANCH_CALL)
313 if (branch_sample_type & PERF_SAMPLE_BRANCH_ANY_CALL) {
H A Dpower8-pmu.c217 static u64 power8_bhrb_filter_map(u64 branch_sample_type) argument
229 if (branch_sample_type & PERF_SAMPLE_BRANCH_ANY)
233 if (branch_sample_type & PERF_SAMPLE_BRANCH_ANY_RETURN)
236 if (branch_sample_type & PERF_SAMPLE_BRANCH_IND_CALL)
239 if (branch_sample_type & PERF_SAMPLE_BRANCH_CALL)
242 if (branch_sample_type & PERF_SAMPLE_BRANCH_ANY_CALL) {
H A Dpower10-pmu.c302 static u64 power10_bhrb_filter_map(u64 branch_sample_type) argument
314 if (branch_sample_type & PERF_SAMPLE_BRANCH_ANY)
318 if (branch_sample_type & PERF_SAMPLE_BRANCH_ANY_RETURN)
321 if (branch_sample_type & PERF_SAMPLE_BRANCH_IND_CALL) {
326 if (branch_sample_type & PERF_SAMPLE_BRANCH_COND) {
331 if (branch_sample_type & PERF_SAMPLE_BRANCH_CALL)
334 if (branch_sample_type & PERF_SAMPLE_BRANCH_ANY_CALL) {
H A Dcore-book3s.c1686 event->attr.branch_sample_type);
2139 * When opening event via perf_event_open(), branch_sample_type
2141 * adjust the branch_sample_type based on the event modifier
2145 if (hweight64(event->attr.branch_sample_type & ~PERF_SAMPLE_BRANCH_PLM_ALL) > 1) {
2152 event->attr.branch_sample_type);
/linux-master/tools/testing/selftests/bpf/prog_tests/
H A Dget_stackid_cannot_attach.c14 .branch_sample_type = PERF_SAMPLE_BRANCH_USER |
H A Dget_branch_snapshot.c43 attr.branch_sample_type = PERF_SAMPLE_BRANCH_KERNEL |
H A Dperf_event_stackmap.c62 .branch_sample_type = PERF_SAMPLE_BRANCH_USER |
H A Dperf_branches.c115 attr.branch_sample_type = PERF_SAMPLE_BRANCH_USER | PERF_SAMPLE_BRANCH_ANY;
/linux-master/arch/powerpc/include/asm/
H A Dperf_event_server.h49 u64 (*bhrb_filter_map)(u64 branch_sample_type);
/linux-master/arch/x86/events/amd/
H A Dbrs.c83 u64 type = event->attr.branch_sample_type;
264 int type = event->attr.branch_sample_type;
H A Dlbr.c248 u64 br_type = event->attr.branch_sample_type;
/linux-master/include/linux/
H A Dperf_event.h1123 return event->attr.branch_sample_type & PERF_SAMPLE_BRANCH_NO_FLAGS;
1128 return event->attr.branch_sample_type & PERF_SAMPLE_BRANCH_NO_CYCLES;
1131 static inline bool branch_sample_type(const struct perf_event *event) function
1133 return event->attr.branch_sample_type & PERF_SAMPLE_BRANCH_TYPE_SAVE;
1138 return event->attr.branch_sample_type & PERF_SAMPLE_BRANCH_HW_INDEX;
1143 return event->attr.branch_sample_type & PERF_SAMPLE_BRANCH_PRIV_SAVE;
1148 return event->attr.branch_sample_type & PERF_SAMPLE_BRANCH_COUNTERS;
1153 return event->attr.branch_sample_type & PERF_SAMPLE_BRANCH_CALL_STACK;
1668 return event->attr.branch_sample_type != 0;
/linux-master/tools/perf/tests/
H A Dattr.c139 WRITE_ASS(branch_sample_type, "llu");
H A Dsample-parsing.c283 evsel.core.attr.branch_sample_type |= PERF_SAMPLE_BRANCH_HW_INDEX;
/linux-master/tools/perf/util/
H A Devsel.c867 attr->branch_sample_type = PERF_SAMPLE_BRANCH_USER |
919 attr->branch_sample_type &= ~(PERF_SAMPLE_BRANCH_USER |
972 &attr->branch_sample_type);
1249 attr->branch_sample_type = opts->branch_stack;
1836 evsel->core.attr.branch_sample_type &= ~PERF_SAMPLE_BRANCH_COUNTERS;
1856 evsel->core.attr.branch_sample_type &= ~(PERF_SAMPLE_BRANCH_NO_FLAGS |
1865 evsel->core.attr.branch_sample_type &= ~PERF_SAMPLE_BRANCH_HW_INDEX;
1891 (evsel->core.attr.branch_sample_type & PERF_SAMPLE_BRANCH_COUNTERS)) {
1920 (evsel->core.attr.branch_sample_type & PERF_SAMPLE_BRANCH_HW_INDEX)) {
1982 (evsel->core.attr.branch_sample_type
[all...]
H A Devsel.h496 return evsel->core.attr.branch_sample_type & PERF_SAMPLE_BRANCH_CALL_STACK;
501 return evsel->core.attr.branch_sample_type & PERF_SAMPLE_BRANCH_HW_INDEX;
H A Dperf_event_attr_fprintf.c317 PRINT_ATTRf(branch_sample_type, p_branch_sample_type);
/linux-master/include/uapi/linux/
H A Dperf_event.h171 * values to program into branch_sample_type when PERF_SAMPLE_BRANCH is set
173 * If the user does not pass priv level information via branch_sample_type,
374 #define PERF_ATTR_SIZE_VER2 80 /* add: branch_sample_type */
483 __u64 branch_sample_type; /* enum perf_branch_sample_type */ member in struct:perf_event_attr
/linux-master/tools/include/uapi/linux/
H A Dperf_event.h171 * values to program into branch_sample_type when PERF_SAMPLE_BRANCH is set
173 * If the user does not pass priv level information via branch_sample_type,
374 #define PERF_ATTR_SIZE_VER2 80 /* add: branch_sample_type */
483 __u64 branch_sample_type; /* enum perf_branch_sample_type */ member in struct:perf_event_attr
/linux-master/arch/x86/kvm/vmx/
H A Dpmu_intel.c221 * 'branch_sample_type = PERF_SAMPLE_BRANCH_CALL_STACK |
234 .branch_sample_type = PERF_SAMPLE_BRANCH_CALL_STACK |

Completed in 191 milliseconds

12