aboutsummaryrefslogtreecommitdiffstats
path: root/tools/perf/util/header.c
diff options
context:
space:
mode:
Diffstat (limited to 'tools/perf/util/header.c')
-rw-r--r--tools/perf/util/header.c10
1 files changed, 1 insertions, 9 deletions
diff --git a/tools/perf/util/header.c b/tools/perf/util/header.c
index 05fab7a188dc..b20e40c74468 100644
--- a/tools/perf/util/header.c
+++ b/tools/perf/util/header.c
@@ -24,8 +24,6 @@
24#include "build-id.h" 24#include "build-id.h"
25#include "data.h" 25#include "data.h"
26 26
27static bool no_buildid_cache = false;
28
29static u32 header_argc; 27static u32 header_argc;
30static const char **header_argv; 28static const char **header_argv;
31 29
@@ -191,8 +189,7 @@ static int write_build_id(int fd, struct perf_header *h,
191 pr_debug("failed to write buildid table\n"); 189 pr_debug("failed to write buildid table\n");
192 return err; 190 return err;
193 } 191 }
194 if (!no_buildid_cache) 192 perf_session__cache_build_ids(session);
195 perf_session__cache_build_ids(session);
196 193
197 return 0; 194 return 0;
198} 195}
@@ -2791,8 +2788,3 @@ int perf_event__process_build_id(struct perf_tool *tool __maybe_unused,
2791 session); 2788 session);
2792 return 0; 2789 return 0;
2793} 2790}
2794
2795void disable_buildid_cache(void)
2796{
2797 no_buildid_cache = true;
2798}