]> git.proxmox.com Git - mirror_ubuntu-disco-kernel.git/commitdiff
perf annotate: Automatically pick up vmlinux in the local directory
authorIngo Molnar <mingo@elte.hu>
Sat, 6 Jun 2009 19:17:03 +0000 (21:17 +0200)
committerIngo Molnar <mingo@elte.hu>
Sat, 6 Jun 2009 19:17:03 +0000 (21:17 +0200)
Right now kernel debug info does not get resolved by default, because
we dont know where to look for the vmlinux.

The -k option can be used for that - but if no option is given, pick
up vmlinux files in the current directory - in case a kernel hacker
runs profiling from the source directory that the kernel was built in.

The real solution would be to embedd the location (and perhaps the
date/timestamp) of the vmlinux file in /proc/kallsyms, so that
tools can pick it up automatically.

Cc: Peter Zijlstra <a.p.zijlstra@chello.nl>
Cc: Mike Galbraith <efault@gmx.de>
Cc: Paul Mackerras <paulus@samba.org>
Cc: Arnaldo Carvalho de Melo <acme@redhat.com>
LKML-Reference: <new-submission>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
tools/perf/builtin-annotate.c

index 4a3c279160c5ce86fcd662c5a9323d398689453c..80c5aa0bb42ec0bd928fd98cb8d04abac7cfe708 100644 (file)
@@ -26,7 +26,7 @@
 #define SHOW_HV                4
 
 static char            const *input_name = "perf.data";
-static char            *vmlinux = NULL;
+static char            *vmlinux = "vmlinux";
 
 static char            default_sort_order[] = "comm,symbol";
 static char            *sort_order = default_sort_order;