perf_counter: Add PERF_EVENT_READ
authorPeter Zijlstra <a.p.zijlstra@chello.nl>
Tue, 23 Jun 2009 18:13:11 +0000 (20:13 +0200)
committerIngo Molnar <mingo@elte.hu>
Thu, 25 Jun 2009 19:39:07 +0000 (21:39 +0200)
commit38b200d67636a30cb8dc1508137908e7a649b5c9
tree74f88d57a7f55075d4cd0b46690ff4b319dca642
parent194002b274e9169a04beb1b23dcc132159bb566c
perf_counter: Add PERF_EVENT_READ

Provide a read() like event which can be used to log the
counter value at specific sites such as child->parent
folding on exit.

In order to be useful, we log the counter parent ID, not the
actual counter ID, since userspace can only relate parent
IDs to perf_counter_attr constructs.

Signed-off-by: Peter Zijlstra <a.p.zijlstra@chello.nl>
LKML-Reference: <new-submission>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
include/linux/perf_counter.h
kernel/perf_counter.c