perf sched: Determine the number of CPUs automatically
authorIngo Molnar <mingo@elte.hu>
Thu, 17 Sep 2009 16:24:55 +0000 (18:24 +0200)
committerIngo Molnar <mingo@elte.hu>
Thu, 17 Sep 2009 20:09:19 +0000 (22:09 +0200)
commit40749d0ff49f99c3661b336fe5e5625207bd925a
tree29856d175cd23b90b67e2efaa7146ddf0f4c7612
parent8b412664d0a487c2e16ac43f4fcede346df33254
perf sched: Determine the number of CPUs automatically

For 'perf sched map' output, determine max_cpu automatically,
instead of the static default of 15.

[ v2: use sysconf() pointed out by Arjan van de Ven <arjan@infradead.org> ]

Cc: Peter Zijlstra <a.p.zijlstra@chello.nl>
Cc: Mike Galbraith <efault@gmx.de>
Cc: Paul Mackerras <paulus@samba.org>
Cc: Arnaldo Carvalho de Melo <acme@redhat.com>
Cc: Frederic Weisbecker <fweisbec@gmail.com>
LKML-Reference: <new-submission>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
tools/perf/builtin-sched.c