perf diff: Add kallsyms option
authorDavid Ahern <dsahern@gmail.com>
Tue, 24 Mar 2015 15:51:57 +0000 (09:51 -0600)
committerArnaldo Carvalho de Melo <acme@redhat.com>
Tue, 24 Mar 2015 16:01:54 +0000 (13:01 -0300)
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>
tools/perf/Documentation/perf-diff.txt
tools/perf/builtin-diff.c

index 518266192d67f11f627c46e73f240b86be87561d..d1deb573877fe5d84a8a7a7a63fe700585e4d8d5 100644 (file)
@@ -31,6 +31,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
index 473887d1d61afec03b58f153556a50424f97a0b2..df6307b4050aaa2ab7e51403d22563e0a1866279 100644 (file)
@@ -791,6 +791,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...]",