Commit Message

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>
(cherry picked from commit 9ed7e1b85cd55dc46cb9410a23086bdaa2ff3eb9 from
git://git.kernel.org/pub/scm/linux/kernel/git/acme/linux-2.6.git)
---
This is needed to make perf probe useful for users of our Ubuntu
kernels. Otherwise they have to put the source code in a heirarchy under
/build, which nonroot users can't do.
Note that my sign-off is in the middle of the SOB area, and this is
cherry-picked from Arnaldo Carvalho de Melo's tree on it's way to .36.
tools/perf/Documentation/perf-probe.txt | 4 ++
tools/perf/builtin-probe.c | 2 +
tools/perf/util/probe-finder.c | 58 +++++++++++++++++++++++++++++--
tools/perf/util/symbol.h | 1 +
4 files changed, 62 insertions(+), 3 deletions(-)