perf_counter: Provide a way to enable counters on exec
authorPaul Mackerras <paulus@samba.org>
Tue, 30 Jun 2009 06:07:19 +0000 (16:07 +1000)
committerIngo Molnar <mingo@elte.hu>
Tue, 30 Jun 2009 10:00:16 +0000 (12:00 +0200)
This provides a way to mark a counter to be enabled on the next
exec. This is useful for measuring the total activity of a
program without including overhead from the process that
launches it.

This also changes the perf stat command to use this new
facility.

Signed-off-by: Paul Mackerras <paulus@samba.org>
Cc: Peter Zijlstra <a.p.zijlstra@chello.nl>
LKML-Reference: <19017.43927.838745.689203@cargo.ozlabs.ibm.com>
Signed-off-by: Ingo Molnar <mingo@elte.hu>

No differences found