diff options
author | 2016-06-08 18:29:30 +0900 | |
---|---|---|
committer | 2016-06-14 09:29:54 -0300 | |
commit | 4698b8b7572ff74d9d17fdb02d5957b7148c64fe (patch) | |
tree | 291472bcfa0ee6adc18d50ed4826caf984fb5c1d /tools/perf/util/build-id.h | |
parent | perf probe: Fix to add NULL check for strndup (diff) | |
download | linux-4698b8b7572ff74d9d17fdb02d5957b7148c64fe.tar.gz linux-4698b8b7572ff74d9d17fdb02d5957b7148c64fe.tar.bz2 linux-4698b8b7572ff74d9d17fdb02d5957b7148c64fe.zip |
perf buildid: Rename and export build_id_cache__cachedir()
Rename and export build_id_cache__cachedir() for retrieving use of the
path of cache directory for given build_id.
Signed-off-by: Masami Hiramatsu <mhiramat@kernel.org>
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/20160608092930.3116.67575.stgit@devbox
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
Diffstat (limited to 'tools/perf/util/build-id.h')
-rw-r--r-- | tools/perf/util/build-id.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/tools/perf/util/build-id.h b/tools/perf/util/build-id.h index e5435f46e48e..d8c7f2fc6a87 100644 --- a/tools/perf/util/build-id.h +++ b/tools/perf/util/build-id.h @@ -30,6 +30,8 @@ bool perf_session__read_build_ids(struct perf_session *session, bool with_hits); int perf_session__write_buildid_table(struct perf_session *session, int fd); int perf_session__cache_build_ids(struct perf_session *session); +char *build_id_cache__cachedir(const char *sbuild_id, const char *name, + bool is_kallsyms, bool is_vdso); int build_id_cache__list_build_ids(const char *pathname, struct strlist **result); bool build_id_cache__cached(const char *sbuild_id); |