perf record: Intercept all events
authorArnaldo Carvalho de Melo <acme@redhat.com>
Fri, 15 Jan 2010 20:08:26 +0000 (18:08 -0200)
committerIngo Molnar <mingo@elte.hu>
Sat, 16 Jan 2010 09:58:50 +0000 (10:58 +0100)
commitf5a2c3dce03621b55f84496f58adc2d1a87ca16f
tree6ff6fa2a20372b8b64b6fb14db15fffe37814585
parent2c5851747bcf751908c02e253cb7582d342b4612
perf record: Intercept all events

The event interception we need to do in 'perf record' to create
a list of all DSOs in PERF_RECORD_MMAP events wasn't seeing all
events, make sure that happens by checking size agains
event_t->header.size.

Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
Cc: Frédéric Weisbecker <fweisbec@gmail.com>
Cc: Mike Galbraith <efault@gmx.de>
Cc: Peter Zijlstra <a.p.zijlstra@chello.nl>
Cc: Paul Mackerras <paulus@samba.org>
LKML-Reference: <1263586107-1756-1-git-send-email-acme@infradead.org>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
tools/perf/builtin-record.c