Home
last modified time | relevance | path

Searched refs:branch_sample_type (Results 1 – 25 of 36) sorted by relevance

12

/linux/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()
90 event.attr.branch_sample_type = bhrb_filter_map_valid_p10[i]; in bhrb_filter_map_test()
97 event.attr.branch_sample_type = bhrb_filter_map_valid_p10[i]; in bhrb_filter_map_test()
108 event.attr.branch_sample_type = PERF_SAMPLE_BRANCH_ANY | PERF_SAMPLE_BRANCH_ANY_CALL; in bhrb_filter_map_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_disable_test.c38 event.attr.branch_sample_type = PERF_SAMPLE_BRANCH_ANY; in mmcra_bhrb_disable_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_cond_test.c41 event.attr.branch_sample_type = PERF_SAMPLE_BRANCH_COND; in mmcra_bhrb_cond_test()
/linux/drivers/perf/
H A Darm_brbe.c422 u64 branch_type = event->attr.branch_sample_type; in brbe_branch_attr_valid()
454 event->hw.branch_reg.config = branch_type_to_brbfcr(event->attr.branch_sample_type); in brbe_branch_attr_valid()
455 event->hw.extra_reg.config = branch_type_to_brbcr(event->attr.branch_sample_type); in brbe_branch_attr_valid()
696 static bool filter_branch_privilege(struct perf_branch_entry *entry, u64 branch_sample_type) in filter_branch_privilege() argument
700 bool exclude_kernel = !((branch_sample_type & PERF_SAMPLE_BRANCH_KERNEL) || in filter_branch_privilege()
701 (is_kernel_in_hyp_mode() && (branch_sample_type & PERF_SAMPLE_BRANCH_HV))); in filter_branch_privilege()
714 (branch_sample_type & PERF_SAMPLE_BRANCH_USER)); in filter_branch_privilege()
720 if (!(branch_sample_type & PERF_SAMPLE_BRANCH_USER)) { in filter_branch_privilege()
761 u64 branch_sample_type = event->attr.branch_sample_type; in brbe_read_filtered_entries() local
764 prepare_event_branch_type_mask(branch_sample_type, event_type_mask); in brbe_read_filtered_entries()
[all …]
/linux/arch/powerpc/perf/
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 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 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()
/linux/include/linux/
H A Dperf_event.h1269 return event->attr.branch_sample_type & PERF_SAMPLE_BRANCH_NO_FLAGS; in branch_sample_no_flags()
1274 return event->attr.branch_sample_type & PERF_SAMPLE_BRANCH_NO_CYCLES; in branch_sample_no_cycles()
1277 static inline bool branch_sample_type(const struct perf_event *event) in branch_sample_type() function
1279 return event->attr.branch_sample_type & PERF_SAMPLE_BRANCH_TYPE_SAVE; in branch_sample_type()
1284 return event->attr.branch_sample_type & PERF_SAMPLE_BRANCH_HW_INDEX; in branch_sample_hw_index()
1289 return event->attr.branch_sample_type & PERF_SAMPLE_BRANCH_PRIV_SAVE; in branch_sample_priv()
1294 return event->attr.branch_sample_type & PERF_SAMPLE_BRANCH_COUNTERS; in branch_sample_counters()
1299 return event->attr.branch_sample_type & PERF_SAMPLE_BRANCH_CALL_STACK; in branch_sample_call_stack()
1844 return event->attr.branch_sample_type != 0; in needs_branch_stack()
/linux/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()
H A Dlbr.c252 u64 br_type = event->attr.branch_sample_type; in amd_pmu_lbr_setup_filter()
/linux/tools/testing/selftests/bpf/prog_tests/
H A Dperf_event_stackmap.c62 .branch_sample_type = PERF_SAMPLE_BRANCH_USER | in test_perf_event_stackmap()
H A Dget_stackid_cannot_attach.c14 .branch_sample_type = PERF_SAMPLE_BRANCH_USER | in test_get_stackid_cannot_attach()
H A Dget_branch_snapshot.c43 attr.branch_sample_type = PERF_SAMPLE_BRANCH_KERNEL | in create_perf_events()
H A Dperf_branches.c127 attr.branch_sample_type = PERF_SAMPLE_BRANCH_USER | PERF_SAMPLE_BRANCH_ANY; in test_perf_branches_hw()
/linux/tools/perf/util/
H A Devsel.c189 WRITE_ASS(branch_sample_type, "llu"); in store_event()
1116 attr->branch_sample_type = PERF_SAMPLE_BRANCH_USER | in evsel__apply_ratio_to_prev()
1173 attr->branch_sample_type &= ~(PERF_SAMPLE_BRANCH_USER | in evsel__apply_config_terms()
1292 &attr->branch_sample_type); in evsel__apply_config_terms()
1705 attr->branch_sample_type = opts->branch_stack; in evsel__config()
2527 evsel->core.attr.branch_sample_type &= ~PERF_SAMPLE_BRANCH_COUNTERS; in evsel__probe_aux_action()
2547 evsel->core.attr.branch_sample_type &= ~(PERF_SAMPLE_BRANCH_NO_FLAGS | in evsel__detect_missing_aux_action_feature()
2556 evsel->core.attr.branch_sample_type &= ~PERF_SAMPLE_BRANCH_HW_INDEX; in evsel__detect_missing_aux_action_feature()
2685 attr.branch_sample_type = PERF_SAMPLE_BRANCH_COUNTERS; in evsel__detect_missing_features()
2691 attr.branch_sample_type in evsel__detect_missing_features()
[all...]
H A Devsel.h556 return evsel->core.attr.branch_sample_type & PERF_SAMPLE_BRANCH_CALL_STACK;
561 return evsel->core.attr.branch_sample_type & PERF_SAMPLE_BRANCH_HW_INDEX;
H A Dperf_event_attr_fprintf.c393 PRINT_ATTRf(branch_sample_type, p_branch_sample_type);
H A Devlist.c1363 branch_type |= evsel->core.attr.branch_sample_type; in evlist__id_hdr_size()
1375 if ((pos->core.attr.branch_sample_type & PERF_SAMPLE_BRANCH_COUNTERS) && in evlist__valid_sample_id_all()
1419 if (evsel->core.attr.branch_sample_type & PERF_SAMPLE_BRANCH_COUNTERS) { in evlist__create_syswide_maps()
/linux/tools/perf/tests/
H A Dsample-parsing.c318 evsel->core.attr.branch_sample_type |= PERF_SAMPLE_BRANCH_HW_INDEX; in do_test()
344 evsel->core.attr.branch_sample_type); in do_test()
358 evsel->core.attr.branch_sample_type, &sample); in do_test()
/linux/tools/include/uapi/linux/
H A Dperf_event.h489 __u64 branch_sample_type; /* enum perf_branch_sample_type */ member
/linux/include/uapi/linux/
H A Dperf_event.h491 __u64 branch_sample_type; /* enum perf_branch_sample_type */ member
/linux/arch/x86/events/intel/
H A Dlbr.c1044 u64 br_type = event->attr.branch_sample_type; in intel_pmu_setup_sw_lbr_filter()
1113 u64 br_type = event->attr.branch_sample_type; in intel_pmu_setup_hw_lbr_filter()
/linux/arch/x86/kvm/vmx/
H A Dpmu_intel.c273 .branch_sample_type = PERF_SAMPLE_BRANCH_CALL_STACK | in intel_pmu_create_guest_lbr_event()

12