]> git.karo-electronics.de Git - linux-beck.git/commit
perf evlist: Always do automatic allocation of pollfd and mmap structures
authorArnaldo Carvalho de Melo <acme@redhat.com>
Tue, 29 Nov 2011 10:05:52 +0000 (08:05 -0200)
committerArnaldo Carvalho de Melo <acme@redhat.com>
Tue, 29 Nov 2011 10:05:52 +0000 (08:05 -0200)
commit806fb63007447622dd61d9767b4403919737e120
treeaa24bf21469afe000a95a4c5a6f810151166be9f
parentee29be625bd7b115d45eba4b0526ff3e24bf3ca0
perf evlist: Always do automatic allocation of pollfd and mmap structures

At first tools were required to do that, but while writing the python
bindings to simplify the API I made them auto-allocate when needed.

This just makes record, stat and top use that auto allocation,
simplifying them a bit.

Cc: David Ahern <dsahern@gmail.com>
Cc: Frederic Weisbecker <fweisbec@gmail.com>
Cc: Mike Galbraith <efault@gmx.de>
Cc: Paul Mackerras <paulus@samba.org>
Cc: Peter Zijlstra <peterz@infradead.org>
Cc: Stephane Eranian <eranian@google.com>
Link: http://lkml.kernel.org/n/tip-iokhcvkzzijr3keioubx8hlq@git.kernel.org
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
tools/perf/builtin-record.c
tools/perf/builtin-stat.c
tools/perf/builtin-top.c
tools/perf/util/evlist.c
tools/perf/util/evlist.h