perf: Add perf_event::child_count
authorPeter Zijlstra <a.p.zijlstra@chello.nl>
Fri, 21 May 2010 12:27:58 +0000 (14:27 +0200)
committerIngo Molnar <mingo@elte.hu>
Wed, 9 Jun 2010 09:12:37 +0000 (11:12 +0200)
commita6e6dea68c18f705957573ee5596097c7e82d0e5
tree2e8d302800fa4c57cc6604d856e6d680d3ee120f
parentb5e58793c7a8ec35e72ea6ec6c353499dd189809
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>
include/linux/perf_event.h
kernel/perf_event.c