diff --git a/tools/perf/perf.h b/tools/perf/perf.h index 21bf7f5a3cf51a1a42e3169daa738c8e7e0a8d83..19d435a9623b542cc6b53411eb91b92276731e3b 100644 --- a/tools/perf/perf.h +++ b/tools/perf/perf.h @@ -26,7 +26,7 @@ static inline unsigned long long rdclock(void) } #ifndef MAX_NR_CPUS -#define MAX_NR_CPUS 1024 +#define MAX_NR_CPUS 2048 #endif extern const char *input_name; diff --git a/tools/perf/util/header.c b/tools/perf/util/header.c index 492ab973d17cf7926ce74eea2c9c3478c2933160..1b690cefc9d91b22148d7d9c8eaa6f8a381bb7f4 100644 --- a/tools/perf/util/header.c +++ b/tools/perf/util/header.c @@ -1173,7 +1173,7 @@ static int build_caches(struct cpu_cache_level caches[], u32 size, u32 *cntp) return 0; } -#define MAX_CACHES 2000 +#define MAX_CACHES (MAX_NR_CPUS * 4) static int write_cache(struct feat_fd *ff, struct perf_evlist *evlist __maybe_unused)