diff --git a/tools/perf/builtin-top.c b/tools/perf/builtin-top.c index 1eca45190360a8359f0102d64f528860ac34c382..2dce4fe86acd7dc5390d183131e93f7f663138ea 100644 --- a/tools/perf/builtin-top.c +++ b/tools/perf/builtin-top.c @@ -1418,6 +1418,9 @@ int cmd_top(int argc, const char **argv) } } + if (opts->branch_stack && callchain_param.enabled) + symbol_conf.show_branchflag_count = true; + sort__mode = SORT_MODE__TOP; /* display thread wants entries to be collapsed in a different tree */ perf_hpp_list.need_collapse = 1;