diff options
author | Namhyung Kim <namhyung@kernel.org> | 2015-03-12 03:32:47 -0400 |
---|---|---|
committer | Arnaldo Carvalho de Melo <acme@redhat.com> | 2015-03-13 06:47:48 -0400 |
commit | bd72a33ebae8b4d37e3d2a3f0f3f3333ac9654dd (patch) | |
tree | 13dedd137cb1f71b44ed12054c18c5d6c17f9565 /tools | |
parent | 405f87557da35a03ba4663eca971ffac58b0a818 (diff) |
perf kmem: Allow -v option
Current perf kmem fails when -v option is used. As it's very useful for
debugging, let's allow it.
Signed-off-by: Namhyung Kim <namhyung@kernel.org>
Cc: David Ahern <dsahern@gmail.com>
Cc: Jiri Olsa <jolsa@redhat.com>
Cc: Joonsoo Kim <js1304@gmail.com>
Cc: Minchan Kim <minchan@kernel.org>
Cc: Peter Zijlstra <a.p.zijlstra@chello.nl>
Link: http://lkml.kernel.org/r/1426145571-3065-3-git-send-email-namhyung@kernel.org
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
Diffstat (limited to 'tools')
-rw-r--r-- | tools/perf/Documentation/perf-kmem.txt | 4 | ||||
-rw-r--r-- | tools/perf/builtin-kmem.c | 2 |
2 files changed, 6 insertions, 0 deletions
diff --git a/tools/perf/Documentation/perf-kmem.txt b/tools/perf/Documentation/perf-kmem.txt index 7c8fbbf3f61c..150253cc3c97 100644 --- a/tools/perf/Documentation/perf-kmem.txt +++ b/tools/perf/Documentation/perf-kmem.txt | |||
@@ -25,6 +25,10 @@ OPTIONS | |||
25 | --input=<file>:: | 25 | --input=<file>:: |
26 | Select the input file (default: perf.data unless stdin is a fifo) | 26 | Select the input file (default: perf.data unless stdin is a fifo) |
27 | 27 | ||
28 | -v:: | ||
29 | --verbose:: | ||
30 | Be more verbose. (show symbol address, etc) | ||
31 | |||
28 | --caller:: | 32 | --caller:: |
29 | Show per-callsite statistics | 33 | Show per-callsite statistics |
30 | 34 | ||
diff --git a/tools/perf/builtin-kmem.c b/tools/perf/builtin-kmem.c index 1e69ea57a1cc..02b76976b288 100644 --- a/tools/perf/builtin-kmem.c +++ b/tools/perf/builtin-kmem.c | |||
@@ -663,6 +663,8 @@ int cmd_kmem(int argc, const char **argv, const char *prefix __maybe_unused) | |||
663 | const char * const default_sort_order = "frag,hit,bytes"; | 663 | const char * const default_sort_order = "frag,hit,bytes"; |
664 | const struct option kmem_options[] = { | 664 | const struct option kmem_options[] = { |
665 | OPT_STRING('i', "input", &input_name, "file", "input file name"), | 665 | OPT_STRING('i', "input", &input_name, "file", "input file name"), |
666 | OPT_INCR('v', "verbose", &verbose, | ||
667 | "be more verbose (show symbol address, etc)"), | ||
666 | OPT_CALLBACK_NOOPT(0, "caller", NULL, NULL, | 668 | OPT_CALLBACK_NOOPT(0, "caller", NULL, NULL, |
667 | "show per-callsite statistics", parse_caller_opt), | 669 | "show per-callsite statistics", parse_caller_opt), |
668 | OPT_CALLBACK_NOOPT(0, "alloc", NULL, NULL, | 670 | OPT_CALLBACK_NOOPT(0, "alloc", NULL, NULL, |