Skip to contentSkip to conversation

perf: Bump max number of cpus to 1024

PATCH In review David Ahern 3 participants 3 messages Mar 24, 2015 – Mar 27, 2015 perf events

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 perf: Bump max number of cpus to 1024

SPARC based systems currently support up to 1024 cpus (e.g. T5-8). Allow perf to work on those systems.

---
 tools/perf/perf.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
tools/perf/perf.h +1 -1
index ee847c8af668..77c8857da123 100644
@@ -29,7 +29,7 @@ static inline unsigned long long rdclock(void)
 	return ts.tv_sec * 1000000000ULL + ts.tv_nsec;
 }
 
-#define MAX_NR_CPUS			256
+#define MAX_NR_CPUS			1024
 
 extern const char *input_name;
 extern bool perf_host, perf_guest;
Signature · 1 line
2.2.1
#1 lore raw

Em Tue, Mar 24, 2015 at 12:10:38PM -0400, David Ahern escreveu:

Quoted 13 lines

SPARC based systems currently support up to 1024 cpus (e.g. T5-8). Allow perf to work on those systems.

---
 tools/perf/perf.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
tools/perf/perf.h +0 -0
index ee847c8af668..77c8857da123 100644

tools/perf/perf.h static inline unsigned long long rdclock(void) · line 32

Quoted 5 lines
tools/perf/perf.h +1 -1
@@ -29,7 +29,7 @@ static inline unsigned long long rdclock(void)
 	return ts.tv_sec * 1000000000ULL + ts.tv_nsec;
 }
 
-#define MAX_NR_CPUS			256
+#define MAX_NR_CPUS			1024

Humm, what do we have that still use this stuff? /me goes to check...

Quoted 4 lines
tools/perf/perf.h +0 -0
 extern const char *input_name;
 extern bool perf_host, perf_guest;
Signature · 1 line
2.2.1
#2 lore raw
In reply to David Ahern
perf: Bump max number of cpus to 1024
Commit-ID:  4d255766d28b1fecec7e00ab4166b2c17bfc37be
Gitweb:     http://git.kernel.org/tip/4d255766d28b1fecec7e00ab4166b2c17bfc37be
Author:     David Ahern <[email protected]>
AuthorDate: Tue, 24 Mar 2015 12:10:38 -0400
Committer:  Arnaldo Carvalho de Melo <[email protected]>
CommitDate: Thu, 26 Mar 2015 10:52:28 -0300

perf: Bump max number of cpus to 1024

SPARC based systems currently support up to 1024 cpus (e.g. T5-8). Allow perf to work on those systems.

---
 tools/perf/perf.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
tools/perf/perf.h +1 -1
index 1caa70a..c38a085 100644
@@ -29,7 +29,7 @@ static inline unsigned long long rdclock(void)
 	return ts.tv_sec * 1000000000ULL + ts.tv_nsec;
 }
 
-#define MAX_NR_CPUS			256
+#define MAX_NR_CPUS			1024
 
 extern const char *input_name;
 extern bool perf_host, perf_guest;