]> git.baikalelectronics.ru Git - kernel.git/commit
Revert "perf: Do not allow optimized switch for non-cloned events"
authorJiri Olsa <jolsa@redhat.com>
Fri, 12 Sep 2014 11:18:28 +0000 (13:18 +0200)
committerIngo Molnar <mingo@kernel.org>
Wed, 24 Sep 2014 12:48:13 +0000 (14:48 +0200)
commitb410d4e95c979faaca669dd1e771ddc21972b1be
tree9cc29310d921d14eff91fbf86c652f28a5a37372
parentf982828de91eb4ba9b8734f197f39c8217174fdd
Revert "perf: Do not allow optimized switch for non-cloned events"

This reverts commit e676d120f3ae4e1c7a20f294707f7a03676fa668.

With the fix of the initial state for the cloned event we now correctly
handle the error described in:

  e676d120f3ae perf: Do not allow optimized switch for non-cloned events

so we can revert it.

I made an automated test for this, but its not suitable for automated
perf tests framework. It needs to be customized for each machine (the
more cpu the higher numbers for GROUPS/WORKERS/BYTES) and it could take
longer time to hit the issue.

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/20140910143535.GD2409@krava.brq.redhat.com
Signed-off-by: Ingo Molnar <mingo@kernel.org>
kernel/events/core.c