Skip to contentSkip to conversation

perf diff: Add kallsyms option

PATCH In review David Ahern 2 participants 2 messages Dec 9, 2013 – Dec 10, 2013 perf events

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 perf diff: Add kallsyms option

Required for off-box analysis to convert kernel addresses.

---
 tools/perf/Documentation/perf-diff.txt | 3 +++
 tools/perf/builtin-diff.c              | 2 ++
 2 files changed, 5 insertions(+)
tools/perf/Documentation/perf-diff.txt +3 -0
index fdfceee0ffd0..06650332d555 100644
@@ -26,6 +26,9 @@ OPTIONS
 --dump-raw-trace::
         Dump raw trace in ASCII.
 
+--kallsyms=<file>::
+        kallsyms pathname
+
 -m::
 --modules::
         Load module symbols. WARNING: use only with -k and LIVE kernel
tools/perf/builtin-diff.c +2 -0
index 3b67ea2444bd..1334381d2569 100644
@@ -715,6 +715,8 @@ static const struct option options[] = {
 	OPT_BOOLEAN('D', "dump-raw-trace", &dump_trace,
 		    "dump raw trace in ASCII"),
 	OPT_BOOLEAN('f', "force", &force, "don't complain, do it"),
+	OPT_STRING(0, "kallsyms", &symbol_conf.kallsyms_name,
+		   "file", "kallsyms pathname"),
 	OPT_BOOLEAN('m', "modules", &symbol_conf.use_modules,
 		    "load module symbols - WARNING: use only with -k and LIVE kernel"),
 	OPT_STRING('d', "dsos", &symbol_conf.dso_list_str, "dso[,dso...]",
Signature · 1 line
1.8.3.4 (Apple Git-47)