| /linux/tools/testing/selftests/powerpc/pmu/sampling_tests/ |
| H A D | bhrb_filter_map_test.c | 68 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 D | mmcra_bhrb_ind_call_test.c | 41 event.attr.branch_sample_type = PERF_SAMPLE_BRANCH_IND_CALL; in mmcra_bhrb_ind_call_test()
|
| H A D | mmcra_bhrb_disable_test.c | 38 event.attr.branch_sample_type = PERF_SAMPLE_BRANCH_ANY; in mmcra_bhrb_disable_test()
|
| H A D | mmcra_bhrb_any_test.c | 37 event.attr.branch_sample_type = PERF_SAMPLE_BRANCH_ANY; in mmcra_bhrb_any_test()
|
| H A D | mmcra_bhrb_cond_test.c | 41 event.attr.branch_sample_type = PERF_SAMPLE_BRANCH_COND; in mmcra_bhrb_cond_test()
|
| /linux/drivers/perf/ |
| H A D | arm_brbe.c | 432 u64 branch_type = event->attr.branch_sample_type; in brbe_branch_attr_valid() 464 event->hw.branch_reg.config = branch_type_to_brbfcr(event->attr.branch_sample_type); in brbe_branch_attr_valid() 465 event->hw.extra_reg.config = branch_type_to_brbcr(event->attr.branch_sample_type); in brbe_branch_attr_valid() 714 static bool filter_branch_privilege(struct perf_branch_entry *entry, u64 branch_sample_type) in filter_branch_privilege() argument 718 bool exclude_kernel = !((branch_sample_type & PERF_SAMPLE_BRANCH_KERNEL) || in filter_branch_privilege() 719 (is_kernel_in_hyp_mode() && (branch_sample_type & PERF_SAMPLE_BRANCH_HV))); in filter_branch_privilege() 732 (branch_sample_type & PERF_SAMPLE_BRANCH_USER)); in filter_branch_privilege() 738 if (!(branch_sample_type & PERF_SAMPLE_BRANCH_USER)) { in filter_branch_privilege() 779 u64 branch_sample_type = event->attr.branch_sample_type; in brbe_read_filtered_entries() local 782 prepare_event_branch_type_mask(branch_sample_type, event_type_mask); in brbe_read_filtered_entries() [all …]
|
| /linux/arch/powerpc/perf/ |
| H A D | power8-pmu.c | 217 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 D | power9-pmu.c | 288 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 D | power10-pmu.c | 302 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 D | perf_event.h | 1268 return event->attr.branch_sample_type & PERF_SAMPLE_BRANCH_NO_FLAGS; in branch_sample_no_flags() 1273 return event->attr.branch_sample_type & PERF_SAMPLE_BRANCH_NO_CYCLES; in branch_sample_no_cycles() 1276 static inline bool branch_sample_type(const struct perf_event *event) in branch_sample_type() function 1278 return event->attr.branch_sample_type & PERF_SAMPLE_BRANCH_TYPE_SAVE; in branch_sample_type() 1283 return event->attr.branch_sample_type & PERF_SAMPLE_BRANCH_HW_INDEX; in branch_sample_hw_index() 1288 return event->attr.branch_sample_type & PERF_SAMPLE_BRANCH_PRIV_SAVE; in branch_sample_priv() 1293 return event->attr.branch_sample_type & PERF_SAMPLE_BRANCH_COUNTERS; in branch_sample_counters() 1298 return event->attr.branch_sample_type & PERF_SAMPLE_BRANCH_CALL_STACK; in branch_sample_call_stack() 1851 return event->attr.branch_sample_type != 0; in needs_branch_stack()
|
| /linux/tools/testing/selftests/bpf/prog_tests/ |
| H A D | perf_event_stackmap.c | 62 .branch_sample_type = PERF_SAMPLE_BRANCH_USER | in test_perf_event_stackmap()
|
| H A D | get_stackid_cannot_attach.c | 14 .branch_sample_type = PERF_SAMPLE_BRANCH_USER | in test_get_stackid_cannot_attach()
|
| H A D | get_branch_snapshot.c | 43 attr.branch_sample_type = PERF_SAMPLE_BRANCH_KERNEL | in create_perf_events()
|
| H A D | perf_branches.c | 127 attr.branch_sample_type = PERF_SAMPLE_BRANCH_USER | PERF_SAMPLE_BRANCH_ANY; in test_perf_branches_hw()
|
| /linux/tools/perf/util/ |
| H A D | evsel.c | 184 WRITE_ASS(branch_sample_type, "llu"); in store_event() 1040 attr->branch_sample_type = PERF_SAMPLE_BRANCH_USER | in __evsel__config_callchain() 1097 attr->branch_sample_type &= ~(PERF_SAMPLE_BRANCH_USER | in evsel__reset_callgraph() 1216 &attr->branch_sample_type); in evsel__apply_config_terms() 1623 attr->branch_sample_type = opts->branch_stack; in evsel__config() 2332 evsel->core.attr.branch_sample_type &= ~PERF_SAMPLE_BRANCH_COUNTERS; in evsel__disable_missing_features() 2352 evsel->core.attr.branch_sample_type &= ~(PERF_SAMPLE_BRANCH_NO_FLAGS | in evsel__disable_missing_features() 2361 evsel->core.attr.branch_sample_type &= ~PERF_SAMPLE_BRANCH_HW_INDEX; in evsel__disable_missing_features() 2490 attr.branch_sample_type = PERF_SAMPLE_BRANCH_COUNTERS; in evsel__detect_missing_brstack_features() 2496 attr.branch_sample_type = PERF_SAMPLE_BRANCH_HW_INDEX; in evsel__detect_missing_brstack_features() [all …]
|
| H A D | evsel.h | 513 return evsel->core.attr.branch_sample_type & PERF_SAMPLE_BRANCH_CALL_STACK; in evsel__has_branch_callstack() 518 return evsel->core.attr.branch_sample_type & PERF_SAMPLE_BRANCH_HW_INDEX; in evsel__has_branch_hw_idx()
|
| H A D | perf_event_attr_fprintf.c | 353 PRINT_ATTRf(branch_sample_type, p_branch_sample_type); in perf_event_attr__fprintf()
|
| H A D | evlist.c | 1266 branch_type |= evsel->core.attr.branch_sample_type; in evlist__combined_branch_type() 1278 if ((pos->core.attr.branch_sample_type & PERF_SAMPLE_BRANCH_COUNTERS) && in evlist__find_dup_event_from_prev() 1322 if (evsel->core.attr.branch_sample_type & PERF_SAMPLE_BRANCH_COUNTERS) { in evlist__update_br_cntr()
|
| H A D | annotate.c | 1826 if (!(pos->core.attr.branch_sample_type & PERF_SAMPLE_BRANCH_COUNTERS)) in annotation_br_cntr_abbr_list() 1877 if ((pos->core.attr.branch_sample_type & PERF_SAMPLE_BRANCH_COUNTERS) && in annotation_br_cntr_entry() 1913 if ((pos->core.attr.branch_sample_type & PERF_SAMPLE_BRANCH_COUNTERS) && in annotation_br_cntr_entry()
|
| H A D | arm-spe.c | 1811 attr.branch_sample_type |= PERF_SAMPLE_BRANCH_HW_INDEX; in arm_spe_synth_events()
|
| /linux/tools/perf/tests/ |
| H A D | sample-parsing.c | 299 evsel.core.attr.branch_sample_type |= PERF_SAMPLE_BRANCH_HW_INDEX; in do_test()
|
| /linux/include/uapi/linux/ |
| H A D | perf_event.h | 489 __u64 branch_sample_type; /* enum perf_branch_sample_type */ member
|
| /linux/tools/include/uapi/linux/ |
| H A D | perf_event.h | 175 * Values to program into branch_sample_type when PERF_SAMPLE_BRANCH is set. 177 * If the user does not pass priv level information via branch_sample_type, 377 #define PERF_ATTR_SIZE_VER2 80 /* Add: branch_sample_type */ 489 __u64 branch_sample_type; /* enum perf_branch_sample_type */ member
|
| /linux/arch/x86/events/ |
| H A D | core.c | 539 u64 m = event->attr.branch_sample_type; in precise_br_compat() 605 u64 *br_type = &event->attr.branch_sample_type; in x86_pmu_hw_config()
|
| /linux/tools/perf/ |
| H A D | builtin-script.c | 1280 if (!(pos->core.attr.branch_sample_type & PERF_SAMPLE_BRANCH_COUNTERS)) in ip__fprintf_jump() 1496 if ((attr->branch_sample_type == 0 || attr->branch_sample_type & PERF_SAMPLE_BRANCH_ANY) in perf_sample__fprintf_brstackinsn()
|