diff options
author | Arnaldo Carvalho de Melo <acme@redhat.com> | 2016-05-19 18:00:27 -0400 |
---|---|---|
committer | Arnaldo Carvalho de Melo <acme@redhat.com> | 2016-05-20 10:43:57 -0400 |
commit | caa36ed7ba82caa9f685dd04aa10d0bf87ea8b6a (patch) | |
tree | 50326bd59eb3acaee681786acb3b8e5095e353fb /tools/perf/builtin-trace.c | |
parent | 7e4c1498130d7b6c26e6669839af4c7e321c9fec (diff) |
perf trace: Only auto set call-graph to "dwarf" when syscalls are being traced
When --min-stack or --max-stack is passwd but --no-syscalls is also in
effect, there is no point in automatically setting '--call-graph dwarf'.
Cc: Adrian Hunter <adrian.hunter@intel.com>
Cc: David Ahern <dsahern@gmail.com>
Cc: Jiri Olsa <jolsa@kernel.org>
Cc: Milian Wolff <milian.wolff@kdab.com>
Cc: Namhyung Kim <namhyung@kernel.org>
Cc: Wang Nan <wangnan0@huawei.com>
Link: http://lkml.kernel.org/n/tip-pq922i7h9wef0pho1dqpttvn@git.kernel.org
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
Diffstat (limited to 'tools/perf/builtin-trace.c')
-rw-r--r-- | tools/perf/builtin-trace.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/perf/builtin-trace.c b/tools/perf/builtin-trace.c index 7401de71d097..487c10401d46 100644 --- a/tools/perf/builtin-trace.c +++ b/tools/perf/builtin-trace.c | |||
@@ -2910,7 +2910,7 @@ int cmd_trace(int argc, const char **argv, const char *prefix __maybe_unused) | |||
2910 | } | 2910 | } |
2911 | 2911 | ||
2912 | #ifdef HAVE_DWARF_UNWIND_SUPPORT | 2912 | #ifdef HAVE_DWARF_UNWIND_SUPPORT |
2913 | if ((trace.min_stack || max_stack_user_set) && !callchain_param.enabled) | 2913 | if ((trace.min_stack || max_stack_user_set) && !callchain_param.enabled && trace.trace_syscalls) |
2914 | record_opts__parse_callchain(&trace.opts, &callchain_param, "dwarf", false); | 2914 | record_opts__parse_callchain(&trace.opts, &callchain_param, "dwarf", false); |
2915 | #endif | 2915 | #endif |
2916 | 2916 | ||