perf build-id: Move disable_buildid_cache() to util/build-id.c
Also move static variable no_buildid_cache and check it in the perf_session_cache_build_ids(). Signed-off-by: Namhyung Kim <namhyung@kernel.org> Cc: Aravinda Prasad <aravinda@linux.vnet.ibm.com> Cc: Brendan Gregg <brendan.d.gregg@gmail.com> Cc: Hemant Kumar <hemant@linux.vnet.ibm.com> Cc: Ingo Molnar <mingo@kernel.org> Cc: Masami Hiramatsu <masami.hiramatsu.pt@hitachi.com> Cc: Oleg Nesterov <oleg@redhat.com> Cc: Pekka Enberg <penberg@iki.fi> Cc: Peter Zijlstra <peterz@infradead.org> Cc: Srikar Dronamraju <srikar@linux.vnet.ibm.com> Cc: Vasant Hegde <hegdevasant@linux.vnet.ibm.com> Cc: systemtap@sourceware.org Link: http://lkml.kernel.org/r/1415368677-3794-1-git-send-email-namhyung@kernel.org Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
This commit is contained in:
committed by
Arnaldo Carvalho de Melo
parent
2565711fb7
commit
73c5d224b4
@@ -24,8 +24,6 @@
|
||||
#include "build-id.h"
|
||||
#include "data.h"
|
||||
|
||||
static bool no_buildid_cache = false;
|
||||
|
||||
static u32 header_argc;
|
||||
static const char **header_argv;
|
||||
|
||||
@@ -191,8 +189,7 @@ static int write_build_id(int fd, struct perf_header *h,
|
||||
pr_debug("failed to write buildid table\n");
|
||||
return err;
|
||||
}
|
||||
if (!no_buildid_cache)
|
||||
perf_session__cache_build_ids(session);
|
||||
perf_session__cache_build_ids(session);
|
||||
|
||||
return 0;
|
||||
}
|
||||
@@ -2791,8 +2788,3 @@ int perf_event__process_build_id(struct perf_tool *tool __maybe_unused,
|
||||
session);
|
||||
return 0;
|
||||
}
|
||||
|
||||
void disable_buildid_cache(void)
|
||||
{
|
||||
no_buildid_cache = true;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user