summaryrefslogtreecommitdiff
path: root/Documentation/perf_counter/perf.h
diff options
context:
space:
mode:
authorIngo Molnar <mingo@elte.hu>2009-05-25 09:59:50 +0200
committerIngo Molnar <mingo@elte.hu>2009-05-25 09:59:50 +0200
commit85a9f9200226ddffc2ea50dae6a8df04c033ecd4 (patch)
tree6d6068dda59a6645f278318f67390a8c24464ff4 /Documentation/perf_counter/perf.h
parenta3862d3f814ce7dfca9eed56ac23d29db3aee8d5 (diff)
downloadlwn-85a9f9200226ddffc2ea50dae6a8df04c033ecd4.tar.gz
lwn-85a9f9200226ddffc2ea50dae6a8df04c033ecd4.zip
perf_counter tools: increase limits, fix
NR_CPUS and NR_COUNTERS goes up quadratic ... 1024x4096 was far too ambitious upper limit - go for 256x256 which is still plenty. [ Impact: reduce perf tool memory consumption ] Cc: Peter Zijlstra <a.p.zijlstra@chello.nl> Cc: Paul Mackerras <paulus@samba.org> Cc: Corey Ashford <cjashfor@linux.vnet.ibm.com> Cc: Arnaldo Carvalho de Melo <acme@redhat.com> Cc: John Kacur <jkacur@redhat.com> Cc: Mike Galbraith <efault@gmx.de> LKML-Reference: <new-submission> Signed-off-by: Ingo Molnar <mingo@elte.hu>
Diffstat (limited to 'Documentation/perf_counter/perf.h')
-rw-r--r--Documentation/perf_counter/perf.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/Documentation/perf_counter/perf.h b/Documentation/perf_counter/perf.h
index a517683fc661..5a2520bb7e55 100644
--- a/Documentation/perf_counter/perf.h
+++ b/Documentation/perf_counter/perf.h
@@ -61,8 +61,8 @@ sys_perf_counter_open(struct perf_counter_hw_event *hw_event_uptr,
group_fd, flags);
}
-#define MAX_COUNTERS 1024
-#define MAX_NR_CPUS 4096
+#define MAX_COUNTERS 256
+#define MAX_NR_CPUS 256
#define EID(type, id) (((__u64)(type) << PERF_COUNTER_TYPE_SHIFT) | (id))