perf symbols: Add the build id cache to the vmlinux path
authorArnaldo Carvalho de Melo <acme@redhat.com>
Wed, 26 May 2010 16:26:02 +0000 (13:26 -0300)
committerArnaldo Carvalho de Melo <acme@redhat.com>
Wed, 26 May 2010 16:26:02 +0000 (13:26 -0300)
commit5ad90e4ea4a096af9f0a362e34dfae5686a191ef
treef537aae3fd9e04395658c19cc97a401431c972fa
parent62e3436b5f3461662929eae102beefbd12127cb1
perf symbols: Add the build id cache to the vmlinux path

So that if the kernel DSO has a build id because record inserted it in
the perf.data build id table in the header, or a BUILD_ID event was
inserted in the stream, we first look at the build id cache
($HOME/.debug/).

If we find it there, try to use it, allowing offline annotation in
addition to 'perf report'.

Reported-by: Stephane Eranian <eranian@google.com>
Cc: Frédéric Weisbecker <fweisbec@gmail.com>
Cc: Mike Galbraith <efault@gmx.de>
Cc: Paul Mackerras <paulus@samba.org>
Cc: Peter Zijlstra <a.p.zijlstra@chello.nl>
Cc: Stephane Eranian <eranian@google.com>
Cc: Tom Zanussi <tzanussi@gmail.com>
LKML-Reference: <new-submission>
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
tools/perf/builtin-top.c
tools/perf/util/symbol.c
tools/perf/util/symbol.h