]> git.baikalelectronics.ru Git - kernel.git/commit
perf: Fix child event initial state setup
authorJiri Olsa <jolsa@redhat.com>
Fri, 12 Sep 2014 11:18:27 +0000 (13:18 +0200)
committerIngo Molnar <mingo@kernel.org>
Wed, 24 Sep 2014 12:48:12 +0000 (14:48 +0200)
commitf982828de91eb4ba9b8734f197f39c8217174fdd
treeb564aab4275cbf01768860718f83691f05bf9af9
parentb4b3d0b95ebef5374db333cbfb3c6b98b521f8f2
perf: Fix child event initial state setup

Currently we initialize the child event based on the original
parent state. This is wrong, because the original parent event
(and its state) is not related to current fork and also could
be already gone.

We need to initialize the child state based on the immediate
parent event state.

Signed-off-by: Jiri Olsa <jolsa@kernel.org>
Signed-off-by: Peter Zijlstra (Intel) <peterz@infradead.org>
Cc: Frederic Weisbecker <fweisbec@gmail.com>
Cc: Stephane Eranian <eranian@google.com>
Cc: Jiri Olsa <jolsa@redhat.com>
Cc: Arnaldo Carvalho de Melo <acme@kernel.org>
Cc: Linus Torvalds <torvalds@linux-foundation.org>
Link: http://lkml.kernel.org/r/1410520708-19275-2-git-send-email-jolsa@kernel.org
Signed-off-by: Ingo Molnar <mingo@kernel.org>
kernel/events/core.c