perf session: Create kernel maps in the constructor
Removing one extra step needed in the tools that need this, fixing a bug in 'perf probe' where this was not being done. Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com> Cc: Masami Hiramatsu <mhiramat@redhat.com> Cc: Frédéric Weisbecker <fweisbec@gmail.com> Cc: Mike Galbraith <efault@gmx.de> Cc: Peter Zijlstra <a.p.zijlstra@chello.nl> Cc: Paul Mackerras <paulus@samba.org> LKML-Reference: <1264633557-17597-4-git-send-email-acme@infradead.org> Signed-off-by: Ingo Molnar <mingo@elte.hu>
This commit is contained in:
committed by
Ingo Molnar
parent
fd1d908c54
commit
64abebf731
@ -477,11 +477,6 @@ static int __cmd_record(int argc, const char **argv)
|
||||
return -1;
|
||||
}
|
||||
|
||||
if (perf_session__create_kernel_maps(session) < 0) {
|
||||
pr_err("Problems creating kernel maps\n");
|
||||
return -1;
|
||||
}
|
||||
|
||||
if (!file_new) {
|
||||
err = perf_header__read(&session->header, output);
|
||||
if (err < 0)
|
||||
|
Reference in New Issue
Block a user