Skip to content

Commit

Permalink
perf annotate: Automatically pick up vmlinux in the local directory
Browse files Browse the repository at this point in the history
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 <[email protected]>
Cc: Mike Galbraith <[email protected]>
Cc: Paul Mackerras <[email protected]>
Cc: Arnaldo Carvalho de Melo <[email protected]>
LKML-Reference: <new-submission>
Signed-off-by: Ingo Molnar <[email protected]>
  • Loading branch information
Ingo Molnar committed Jun 6, 2009
1 parent 8953645 commit 39273ee
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tools/perf/builtin-annotate.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 39273ee

Please sign in to comment.