diff options
author | David Ahern <dsahern@gmail.com> | 2015-03-24 11:51:57 -0400 |
---|---|---|
committer | Arnaldo Carvalho de Melo <acme@redhat.com> | 2015-03-24 12:01:54 -0400 |
commit | 6b1f342354d45c651cabd2ae0f61f55846f33e10 (patch) | |
tree | 33dc778ea2c763b2cb83105326877cd8b8add30a | |
parent | b839e1e846edb15cff322e262e8ce412d298232e (diff) |
perf diff: Add kallsyms option
Required for off-box analysis to convert kernel addresses.
Signed-off-by: David Ahern <dsahern@gmail.com>
Cc: Jiri Olsa <jolsa@redhat.com>
Link: http://lkml.kernel.org/r/1427212317-7018-1-git-send-email-dsahern@gmail.com
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
-rw-r--r-- | tools/perf/Documentation/perf-diff.txt | 3 | ||||
-rw-r--r-- | tools/perf/builtin-diff.c | 2 |
2 files changed, 5 insertions, 0 deletions
diff --git a/tools/perf/Documentation/perf-diff.txt b/tools/perf/Documentation/perf-diff.txt index 518266192d67..d1deb573877f 100644 --- a/tools/perf/Documentation/perf-diff.txt +++ b/tools/perf/Documentation/perf-diff.txt | |||
@@ -31,6 +31,9 @@ OPTIONS | |||
31 | --dump-raw-trace:: | 31 | --dump-raw-trace:: |
32 | Dump raw trace in ASCII. | 32 | Dump raw trace in ASCII. |
33 | 33 | ||
34 | --kallsyms=<file>:: | ||
35 | kallsyms pathname | ||
36 | |||
34 | -m:: | 37 | -m:: |
35 | --modules:: | 38 | --modules:: |
36 | Load module symbols. WARNING: use only with -k and LIVE kernel | 39 | Load module symbols. WARNING: use only with -k and LIVE kernel |
diff --git a/tools/perf/builtin-diff.c b/tools/perf/builtin-diff.c index 473887d1d61a..df6307b4050a 100644 --- a/tools/perf/builtin-diff.c +++ b/tools/perf/builtin-diff.c | |||
@@ -791,6 +791,8 @@ static const struct option options[] = { | |||
791 | OPT_BOOLEAN('D', "dump-raw-trace", &dump_trace, | 791 | OPT_BOOLEAN('D', "dump-raw-trace", &dump_trace, |
792 | "dump raw trace in ASCII"), | 792 | "dump raw trace in ASCII"), |
793 | OPT_BOOLEAN('f', "force", &force, "don't complain, do it"), | 793 | OPT_BOOLEAN('f', "force", &force, "don't complain, do it"), |
794 | OPT_STRING(0, "kallsyms", &symbol_conf.kallsyms_name, | ||
795 | "file", "kallsyms pathname"), | ||
794 | OPT_BOOLEAN('m', "modules", &symbol_conf.use_modules, | 796 | OPT_BOOLEAN('m', "modules", &symbol_conf.use_modules, |
795 | "load module symbols - WARNING: use only with -k and LIVE kernel"), | 797 | "load module symbols - WARNING: use only with -k and LIVE kernel"), |
796 | OPT_STRING('d', "dsos", &symbol_conf.dso_list_str, "dso[,dso...]", | 798 | OPT_STRING('d', "dsos", &symbol_conf.dso_list_str, "dso[,dso...]", |