perf record: Disable profiling before draining the buffer
authorPeter Zijlstra <a.p.zijlstra@chello.nl>
Thu, 17 Sep 2009 17:59:05 +0000 (19:59 +0200)
committerIngo Molnar <mingo@elte.hu>
Thu, 17 Sep 2009 20:08:27 +0000 (22:08 +0200)
commit8b412664d0a487c2e16ac43f4fcede346df33254
tree75914df712d93dcbf6fc82f80f4f2ecb6ce19e7d
parent2667de81f3256c944b06abdf2c56c2f192fcb724
perf record: Disable profiling before draining the buffer

I noticed that perf-record continues profiling itself after the
child terminated and we're draining the buffer.

This can cause a _lot_ of overhead with --all recording - we keep
and keep recording, which produces new and new events.

Signed-off-by: Peter Zijlstra <a.p.zijlstra@chello.nl>
LKML-Reference: <new-submission>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
tools/perf/builtin-record.c