From: Adrian Hunter Date: Fri, 25 Sep 2015 13:15:41 +0000 (+0300) Subject: perf report: Also do default setup for synthesized branch stacks X-Git-Tag: v4.4-rc1~155^2~21^2~18 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=fb9fab66e6e3ee737e521c899684c6d684b24a22;p=platform%2Fkernel%2Flinux-exynos.git perf report: Also do default setup for synthesized branch stacks The 'perf report' tool will default to displaying branch stacks (-b option) if they are present. Make that also happen for synthesized branch stacks. Signed-off-by: Adrian Hunter Cc: Jiri Olsa Link: http://lkml.kernel.org/r/1443186956-18718-11-git-send-email-adrian.hunter@intel.com Signed-off-by: Arnaldo Carvalho de Melo --- diff --git a/tools/perf/builtin-report.c b/tools/perf/builtin-report.c index 7af35af..92f7c5a 100644 --- a/tools/perf/builtin-report.c +++ b/tools/perf/builtin-report.c @@ -829,6 +829,9 @@ repeat: has_br_stack = perf_header__has_feat(&session->header, HEADER_BRANCH_STACK); + if (itrace_synth_opts.last_branch) + has_br_stack = true; + /* * Branch mode is a tristate: * -1 means default, so decide based on the file having branch data.