diff options
Diffstat (limited to 'tools/perf/builtin-top.c')
-rw-r--r-- | tools/perf/builtin-top.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/tools/perf/builtin-top.c b/tools/perf/builtin-top.c index ddc584b64871..6822b44ca4f9 100644 --- a/tools/perf/builtin-top.c +++ b/tools/perf/builtin-top.c | |||
@@ -1165,6 +1165,11 @@ static int __cmd_top(void) | |||
1165 | if (session == NULL) | 1165 | if (session == NULL) |
1166 | return -ENOMEM; | 1166 | return -ENOMEM; |
1167 | 1167 | ||
1168 | if (perf_session__create_kernel_maps(session) < 0) { | ||
1169 | pr_err("Problems creating kernel maps\n"); | ||
1170 | return -1; | ||
1171 | } | ||
1172 | |||
1168 | if (target_pid != -1) | 1173 | if (target_pid != -1) |
1169 | event__synthesize_thread(target_pid, event__process, session); | 1174 | event__synthesize_thread(target_pid, event__process, session); |
1170 | else | 1175 | else |