diff options
Diffstat (limited to 'tools/perf')
| -rw-r--r-- | tools/perf/perf.h | 2 | ||||
| -rw-r--r-- | tools/perf/util/header.c | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/tools/perf/perf.h b/tools/perf/perf.h index 711e009381ec..74d0124d38f3 100644 --- a/tools/perf/perf.h +++ b/tools/perf/perf.h | |||
| @@ -26,7 +26,7 @@ static inline unsigned long long rdclock(void) | |||
| 26 | } | 26 | } |
| 27 | 27 | ||
| 28 | #ifndef MAX_NR_CPUS | 28 | #ifndef MAX_NR_CPUS |
| 29 | #define MAX_NR_CPUS 1024 | 29 | #define MAX_NR_CPUS 2048 |
| 30 | #endif | 30 | #endif |
| 31 | 31 | ||
| 32 | extern const char *input_name; | 32 | extern const char *input_name; |
diff --git a/tools/perf/util/header.c b/tools/perf/util/header.c index 06ddb6618ef3..abc9c2145efe 100644 --- a/tools/perf/util/header.c +++ b/tools/perf/util/header.c | |||
| @@ -1121,7 +1121,7 @@ static int build_caches(struct cpu_cache_level caches[], u32 size, u32 *cntp) | |||
| 1121 | return 0; | 1121 | return 0; |
| 1122 | } | 1122 | } |
| 1123 | 1123 | ||
| 1124 | #define MAX_CACHES 2000 | 1124 | #define MAX_CACHES (MAX_NR_CPUS * 4) |
| 1125 | 1125 | ||
| 1126 | static int write_cache(struct feat_fd *ff, | 1126 | static int write_cache(struct feat_fd *ff, |
| 1127 | struct perf_evlist *evlist __maybe_unused) | 1127 | struct perf_evlist *evlist __maybe_unused) |
