perf probe: Use cache entry if possible
authorMasami Hiramatsu <masami.hiramatsu.pt@hitachi.com>
Fri, 1 Jul 2016 08:03:12 +0000 (17:03 +0900)
committerArnaldo Carvalho de Melo <acme@redhat.com>
Fri, 1 Jul 2016 14:34:57 +0000 (11:34 -0300)
commitbc0622302f344551050995491b7d14176f39c628
treeaca2555b791c87c7615bcc15711af7a283fb554d
parentdc29bb47a34130459fadd58f05e2acd051a6327d
perf probe: Use cache entry if possible

Before analyzing debuginfo, try to find a corresponding entry from probe
cache always. This does not depend on --cache, the --cache enables to
store/update cache, but looking up the cache is always enabled.

Signed-off-by: Masami Hiramatsu <mhiramat@kernel.org>
Signed-off-by: Masami Hiramatsu <masami.hiramatsu.pt@hitachi.com>
Cc: Ananth N Mavinakayanahalli <ananth@linux.vnet.ibm.com>
Cc: Brendan Gregg <brendan.d.gregg@gmail.com>
Cc: Hemant Kumar <hemant@linux.vnet.ibm.com>
Cc: Namhyung Kim <namhyung@kernel.org>
Cc: Peter Zijlstra <peterz@infradead.org>
Link: http://lkml.kernel.org/r/146736019226.27797.16366402884098398857.stgit@devbox
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
tools/perf/util/probe-event.c
tools/perf/util/probe-file.c
tools/perf/util/probe-file.h