perf evlist: Adopt the pollfd array
authorArnaldo Carvalho de Melo <acme@redhat.com>
Wed, 12 Jan 2011 00:30:02 +0000 (22:30 -0200)
committerArnaldo Carvalho de Melo <acme@redhat.com>
Sat, 22 Jan 2011 21:56:28 +0000 (19:56 -0200)
commit5c581041cf97aa7980b442de81ddea8273d6dcde
treeceb2f13de102215d151adf7aaab975bd0db6076b
parent361c99a661a78ed22264649440e87fe4fe8da1f2
perf evlist: Adopt the pollfd array

Allocating just the space needed for nr_cpus * nr_threads * nr_evsels,
not the MAX_NR_CPUS and counters.

LKML-Reference: <new-submission>
Cc: Frederic Weisbecker <fweisbec@gmail.com>
Cc: Ingo Molnar <mingo@elte.hu>
Cc: Mike Galbraith <efault@gmx.de>
Cc: Paul Mackerras <paulus@samba.org>
Cc: Peter Zijlstra <peterz@infradead.org>
Cc: Stephane Eranian <eranian@google.com>
Cc: Tom Zanussi <tzanussi@gmail.com>
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
tools/perf/builtin-record.c
tools/perf/builtin-top.c
tools/perf/util/evlist.c
tools/perf/util/evlist.h