aboutsummaryrefslogtreecommitdiffstats
path: root/tools/perf/builtin-kmem.c
diff options
context:
space:
mode:
Diffstat (limited to 'tools/perf/builtin-kmem.c')
-rw-r--r--tools/perf/builtin-kmem.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/tools/perf/builtin-kmem.c b/tools/perf/builtin-kmem.c
index 32edb6a86876..7cbb5eb15101 100644
--- a/tools/perf/builtin-kmem.c
+++ b/tools/perf/builtin-kmem.c
@@ -489,6 +489,9 @@ static int __cmd_kmem(void)
489 if (session == NULL) 489 if (session == NULL)
490 return -ENOMEM; 490 return -ENOMEM;
491 491
492 if (perf_session__create_kernel_maps(session) < 0)
493 goto out_delete;
494
492 if (!perf_session__has_traces(session, "kmem record")) 495 if (!perf_session__has_traces(session, "kmem record"))
493 goto out_delete; 496 goto out_delete;
494 497