perf tools: Encode kernel module mappings in perf.data
[safe/jmp/linux-2.6] / tools / perf / builtin-top.c
index ddc584b..6822b44 100644 (file)
@@ -1165,6 +1165,11 @@ static int __cmd_top(void)
        if (session == NULL)
                return -ENOMEM;
 
+       if (perf_session__create_kernel_maps(session) < 0) {
+               pr_err("Problems creating kernel maps\n");
+               return -1;
+       }
+
        if (target_pid != -1)
                event__synthesize_thread(target_pid, event__process, session);
        else