diff --git a/tools/perf/builtin-report.c b/tools/perf/builtin-report.c index 8064de8ceedc44a05321ae22f762f32002e0aab9..3dfbfffe2ecdbc5bb31a2640a8c65d35284a6717 100644 --- a/tools/perf/builtin-report.c +++ b/tools/perf/builtin-report.c @@ -911,6 +911,9 @@ int cmd_report(int argc, const char **argv, const char *prefix __maybe_unused) if (itrace_synth_opts.last_branch) has_br_stack = true; + if (has_br_stack && branch_call_mode) + symbol_conf.show_branchflag_count = true; + /* * Branch mode is a tristate: * -1 means default, so decide based on the file having branch data. diff --git a/tools/perf/util/symbol.h b/tools/perf/util/symbol.h index d964844eb3141fa1b94b1a39c8db05557b4f50d6..2d0a905c879af272932a4769b4acb5479f3e8672 100644 --- a/tools/perf/util/symbol.h +++ b/tools/perf/util/symbol.h @@ -100,6 +100,7 @@ struct symbol_conf { show_total_period, use_callchain, cumulate_callchain, + show_branchflag_count, exclude_other, show_cpu_utilization, initialized,