perf probe: Add kernel source path option
authorChase Douglas <chase.douglas@canonical.com>
Mon, 14 Jun 2010 19:26:30 +0000 (15:26 -0400)
committerArnaldo Carvalho de Melo <acme@redhat.com>
Thu, 17 Jun 2010 13:27:57 +0000 (10:27 -0300)
commit9ed7e1b85cd55dc46cb9410a23086bdaa2ff3eb9
tree40690ef063892ff970f3961c33aef500d13c58db
parentcfc21cc641dae17a4ebda29ed093134358449577
perf probe: Add kernel source path option

The probe plugin requires access to the source code for some operations.  The
source code must be in the exact same location as specified by the DWARF tags,
but sometimes the location is an absolute path that cannot be replicated by a
normal user. This change adds the -s|--source option to allow the user to
specify the root of the kernel source tree.

Cc: Ingo Molnar <mingo@elte.hu>
Cc: Paul Mackerras <paulus@samba.org>
Cc: Peter Zijlstra <peterz@infradead.org>
Cc: Masami Hiramatsu <mhiramat@redhat.com>
LKML-Reference: <1276543590-10486-1-git-send-email-chase.douglas@canonical.com>
Signed-off-by: Chase Douglas <chase.douglas@canonical.com>
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
tools/perf/Documentation/perf-probe.txt
tools/perf/builtin-probe.c
tools/perf/util/probe-finder.c
tools/perf/util/symbol.h