diff options
author | Adrian Hunter <adrian.hunter@intel.com> | 2015-09-25 16:15:41 +0300 |
---|---|---|
committer | Arnaldo Carvalho de Melo <acme@redhat.com> | 2015-09-28 16:54:45 -0300 |
commit | fb9fab66e6e3ee737e521c899684c6d684b24a22 (patch) | |
tree | 695f6f0dc575b9a5003da93144b3c285d9e82ce5 /tools/perf/builtin-report.c | |
parent | c7eced63f2f67bd06ceb2269062416db9d81d29d (diff) | |
download | lwn-fb9fab66e6e3ee737e521c899684c6d684b24a22.tar.gz lwn-fb9fab66e6e3ee737e521c899684c6d684b24a22.zip |
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 <adrian.hunter@intel.com>
Cc: Jiri Olsa <jolsa@redhat.com>
Link: http://lkml.kernel.org/r/1443186956-18718-11-git-send-email-adrian.hunter@intel.com
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
Diffstat (limited to 'tools/perf/builtin-report.c')
-rw-r--r-- | tools/perf/builtin-report.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/tools/perf/builtin-report.c b/tools/perf/builtin-report.c index 7af35af5a5e5..92f7c5a75208 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. |