perf probe: Introduce perf_cache interfaces
authorMasami Hiramatsu <mhiramat@kernel.org>
Wed, 15 Jun 2016 03:28:30 +0000 (12:28 +0900)
committerArnaldo Carvalho de Melo <acme@redhat.com>
Wed, 15 Jun 2016 17:34:31 +0000 (14:34 -0300)
commitdd975497adcdd2526ae332d3938bd5d6e1c3731a
tree5d77c4d3f774c3a9c3caae1db06dffabbe9e7ed9
parentda1b0407c866e7a8679cd3b64b35d83825c58a14
perf probe: Introduce perf_cache interfaces

Introduce perf_cache object and interfaces to create, add entries,
commit, and delete the object.

perf_cache represents a file for the cached "perf probe" definitions on
one binary file or vmlinux which has its own build id. The probe cache
file is located under the build-id cache directory of the target binary,
as below;

  <perf-debug-dir>/.build-id/<BU>/<ILDID>/probe

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/20160615032830.31330.84998.stgit@devbox
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
tools/perf/util/probe-file.c
tools/perf/util/probe-file.h