summaryrefslogtreecommitdiffstats
path: root/firmware/tigon
diff options
context:
space:
mode:
authorJiri Olsa <jolsa@redhat.com>2014-06-24 10:20:25 +0200
committerIngo Molnar <mingo@kernel.org>2014-07-02 08:35:56 +0200
commit1f9a7268c67f0290837aada443d28fd953ddca90 (patch)
tree6847d2864dabb8ec785bc7036842342b2f3fd174 /firmware/tigon
parentb292d7a10487aee6e74b1c18b8d95b92f40d4a4f (diff)
downloadlinux-1f9a7268c67f0290837aada443d28fd953ddca90.tar.gz
linux-1f9a7268c67f0290837aada443d28fd953ddca90.tar.bz2
linux-1f9a7268c67f0290837aada443d28fd953ddca90.zip
perf: Do not allow optimized switch for non-cloned events
The context check in perf_event_context_sched_out allows non-cloned context to be part of the optimized schedule out switch. This could move non-cloned context into another workload child. Once this child exits, the context is closed and leaves all original (parent) events in closed state. Any other new cloned event will have closed state and not measure anything. And probably causing other odd bugs. Signed-off-by: Jiri Olsa <jolsa@kernel.org> Signed-off-by: Peter Zijlstra <peterz@infradead.org> Cc: <stable@vger.kernel.org> Cc: Arnaldo Carvalho de Melo <acme@kernel.org> Cc: Paul Mackerras <paulus@samba.org> Cc: Frederic Weisbecker <fweisbec@gmail.com> Cc: Namhyung Kim <namhyung@kernel.org> Cc: Paul Mackerras <paulus@samba.org> Cc: Corey Ashford <cjashfor@linux.vnet.ibm.com> Cc: David Ahern <dsahern@gmail.com> Cc: Jiri Olsa <jolsa@redhat.com> Cc: Linus Torvalds <torvalds@linux-foundation.org> Link: http://lkml.kernel.org/r/1403598026-2310-2-git-send-email-jolsa@kernel.org Signed-off-by: Ingo Molnar <mingo@kernel.org>
Diffstat (limited to 'firmware/tigon')
0 files changed, 0 insertions, 0 deletions