Revert "perf record: Intercept all events"
authorHitoshi Mitake <mitake@dcl.info.waseda.ac.jp>
Sat, 30 Jan 2010 11:55:41 +0000 (20:55 +0900)
committerIngo Molnar <mingo@elte.hu>
Sun, 31 Jan 2010 07:27:52 +0000 (08:27 +0100)
commita8e6f734ce9a79d44ebb296f2a341f435227b34e
tree4fc66912214ff92b387d079b3d7eac6a2495b4a7
parent6a1b751fb89b61ef7240f2e3ed65a2e2776e7cfd
Revert "perf record: Intercept all events"

This reverts commit f5a2c3dce03621b55f84496f58adc2d1a87ca16f.

This patch is required for making "perf lock rec" work.
The commit f5a2c3dce0 changes write_event() of builtin-record.c
. And changed write_event() sometimes doesn't stop with perf
lock rec.

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>
[ that commit also causes perf record to not be Ctrl-C-able,
  and it's concetually wrong to parse the data at record time
  (unconditionally - even when not needed), as we eventually
  want to be able to do zero-copy recording, at least for
  non-archive recordings.  ]
Signed-off-by: Ingo Molnar <mingo@elte.hu>
tools/perf/builtin-record.c