aboutsummaryrefslogtreecommitdiffstats
path: root/tools
diff options
context:
space:
mode:
authorJiri Olsa <jolsa@kernel.org>2015-04-06 01:36:08 -0400
committerArnaldo Carvalho de Melo <acme@redhat.com>2015-04-08 08:07:14 -0400
commit28939e1a1f6d198239d86b1d77fa9fd55773189a (patch)
tree820d95e1b65a89163a24f65803ba3f337e3e1c09 /tools
parent3201f0dc42f7fad9387afc4692cea3d0c730cba2 (diff)
perf kmem: Respect -i option
Currently the perf kmem does not respect -i option. Initializing the file.path properly after options get parsed. Signed-off-by: Jiri Olsa <jolsa@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> Cc: linux-mm@kvack.org Link: http://lkml.kernel.org/r/1428298576-9785-2-git-send-email-namhyung@kernel.org Signed-off-by: Namhyung Kim <namhyung@kernel.org> Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
Diffstat (limited to 'tools')
-rw-r--r--tools/perf/builtin-kmem.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/tools/perf/builtin-kmem.c b/tools/perf/builtin-kmem.c
index ac303ef9f2f0..4ebf65c79434 100644
--- a/tools/perf/builtin-kmem.c
+++ b/tools/perf/builtin-kmem.c
@@ -663,7 +663,6 @@ int cmd_kmem(int argc, const char **argv, const char *prefix __maybe_unused)
663{ 663{
664 const char * const default_sort_order = "frag,hit,bytes"; 664 const char * const default_sort_order = "frag,hit,bytes";
665 struct perf_data_file file = { 665 struct perf_data_file file = {
666 .path = input_name,
667 .mode = PERF_DATA_MODE_READ, 666 .mode = PERF_DATA_MODE_READ,
668 }; 667 };
669 const struct option kmem_options[] = { 668 const struct option kmem_options[] = {
@@ -701,6 +700,8 @@ int cmd_kmem(int argc, const char **argv, const char *prefix __maybe_unused)
701 return __cmd_record(argc, argv); 700 return __cmd_record(argc, argv);
702 } 701 }
703 702
703 file.path = input_name;
704
704 session = perf_session__new(&file, false, &perf_kmem); 705 session = perf_session__new(&file, false, &perf_kmem);
705 if (session == NULL) 706 if (session == NULL)
706 return -1; 707 return -1;