]> git.baikalelectronics.ru Git - kernel.git/commit
perf: Do not check PERF_EVENT_STATE_EXIT on syscall read path
authorJiri Olsa <jolsa@redhat.com>
Mon, 8 Sep 2014 14:31:07 +0000 (16:31 +0200)
committerIngo Molnar <mingo@kernel.org>
Tue, 16 Sep 2014 08:30:36 +0000 (10:30 +0200)
commitff406dda490fa31121ce37e1aef997f143d88cd9
tree73fb420bd2e65cda6ef2c25a2e72f30e4399d262
parentf5c5c520c9890e34d07f47f1bb3ecb5b4dcc8f20
perf: Do not check PERF_EVENT_STATE_EXIT on syscall read path

Revert PERF_EVENT_STATE_EXIT check on read syscall path.
It breaks standard way to read counter, which is to open
the counter, wait for the monitored process to die and
read the counter.

Reported-by: Stephane Eranian <eranian@google.com>
Signed-off-by: Jiri Olsa <jolsa@kernel.org>
Acked-by: Stephane Eranian <eranian@google.com>
Acked-by: Peter Zijlstra <a.p.zijlstra@chello.nl>
Cc: Arnaldo Carvalho de Melo <acme@redhat.com>
Cc: Frederic Weisbecker <fweisbec@gmail.com>
Cc: Namhyung Kim <namhyung@kernel.org>
Cc: Paul Mackerras <paulus@samba.org>
Cc: Stephane Eranian <eranian@google.com>
Cc: David Ahern <dsahern@gmail.com>
Link: http://lkml.kernel.org/r/20140908143107.GG17728@krava.brq.redhat.com
Signed-off-by: Ingo Molnar <mingo@kernel.org>
kernel/events/core.c