diff options
author | Peter Zijlstra <a.p.zijlstra@chello.nl> | 2010-05-21 08:27:58 -0400 |
---|---|---|
committer | Ingo Molnar <mingo@elte.hu> | 2010-06-09 05:12:37 -0400 |
commit | a6e6dea68c18f705957573ee5596097c7e82d0e5 (patch) | |
tree | 2e8d302800fa4c57cc6604d856e6d680d3ee120f /include/linux/perf_event.h | |
parent | b5e58793c7a8ec35e72ea6ec6c353499dd189809 (diff) |
perf: Add perf_event::child_count
Only child counters adding back their values into the parent counter
are responsible for cross-cpu updates to event->count.
So if we pull that out into a new child_count variable, we get an
event->count that is only modified locally.
Signed-off-by: Peter Zijlstra <a.p.zijlstra@chello.nl>
Cc: Arnaldo Carvalho de Melo <acme@redhat.com>
Cc: Frederic Weisbecker <fweisbec@gmail.com>
Cc: Paul Mackerras <paulus@samba.org>
Cc: Mike Galbraith <efault@gmx.de>
Cc: Steven Rostedt <rostedt@goodmis.org>
LKML-Reference: <new-submission>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
Diffstat (limited to 'include/linux/perf_event.h')
-rw-r--r-- | include/linux/perf_event.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/include/linux/perf_event.h b/include/linux/perf_event.h index 441992a9775c..f34dab9b275e 100644 --- a/include/linux/perf_event.h +++ b/include/linux/perf_event.h | |||
@@ -671,6 +671,7 @@ struct perf_event { | |||
671 | enum perf_event_active_state state; | 671 | enum perf_event_active_state state; |
672 | unsigned int attach_state; | 672 | unsigned int attach_state; |
673 | atomic64_t count; | 673 | atomic64_t count; |
674 | atomic64_t child_count; | ||
674 | 675 | ||
675 | /* | 676 | /* |
676 | * These are the total time in nanoseconds that the event | 677 | * These are the total time in nanoseconds that the event |