[<prev] [next>] [day] [month] [year] [list]
Message-ID: <tip-pq922i7h9wef0pho1dqpttvn@git.kernel.org>
Date: Fri, 20 May 2016 10:46:05 -0700
From: tip-bot for Arnaldo Carvalho de Melo <tipbot@...or.com>
To: linux-tip-commits@...r.kernel.org
Cc: milian.wolff@...b.com, jolsa@...nel.org, namhyung@...nel.org,
adrian.hunter@...el.com, linux-kernel@...r.kernel.org,
dsahern@...il.com, acme@...hat.com, mingo@...nel.org,
wangnan0@...wei.com, tglx@...utronix.de, hpa@...or.com
Subject: [tip:perf/urgent] perf trace: Only auto set call-graph to "dwarf"
when syscalls are being traced
Commit-ID: caa36ed7ba82caa9f685dd04aa10d0bf87ea8b6a
Gitweb: http://git.kernel.org/tip/caa36ed7ba82caa9f685dd04aa10d0bf87ea8b6a
Author: Arnaldo Carvalho de Melo <acme@...hat.com>
AuthorDate: Thu, 19 May 2016 19:00:27 -0300
Committer: Arnaldo Carvalho de Melo <acme@...hat.com>
CommitDate: Fri, 20 May 2016 11:43:57 -0300
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@...el.com>
Cc: David Ahern <dsahern@...il.com>
Cc: Jiri Olsa <jolsa@...nel.org>
Cc: Milian Wolff <milian.wolff@...b.com>
Cc: Namhyung Kim <namhyung@...nel.org>
Cc: Wang Nan <wangnan0@...wei.com>
Link: http://lkml.kernel.org/n/tip-pq922i7h9wef0pho1dqpttvn@git.kernel.org
Signed-off-by: Arnaldo Carvalho de Melo <acme@...hat.com>
---
tools/perf/builtin-trace.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/tools/perf/builtin-trace.c b/tools/perf/builtin-trace.c
index 7401de7..487c104 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)
}
#ifdef HAVE_DWARF_UNWIND_SUPPORT
- if ((trace.min_stack || max_stack_user_set) && !callchain_param.enabled)
+ if ((trace.min_stack || max_stack_user_set) && !callchain_param.enabled && trace.trace_syscalls)
record_opts__parse_callchain(&trace.opts, &callchain_param, "dwarf", false);
#endif
Powered by blists - more mailing lists