perf probe: Add kernel source path option
authorChase Douglas <chase.douglas@canonical.com>
Thu, 17 Jun 2010 21:08:11 +0000 (17:08 -0400)
committerLeann Ogasawara <leann.ogasawara@canonical.com>
Mon, 28 Mar 2011 13:48:48 +0000 (06:48 -0700)
commitacbc187ee070f2112e8adff4e13f7380532fd6ef
tree12be0ea356b7e49ebd80488a77c4ec1d5dbdb5e9
parent234b2bc9a96ddbdd00541e4f1c194124d07c31f1
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>
(cherry picked from commit 9ed7e1b85cd55dc46cb9410a23086bdaa2ff3eb9 from
git://git.kernel.org/pub/scm/linux/kernel/git/acme/linux-2.6.git)
Signed-off-by: Leann Ogasawara <leann.ogasawara@canonical.com>
tools/perf/util/probe-finder.c