Files
linux/kernel
Peter Zijlstra faf69f312c perf: Tighten (and fix) the grouping condition
The fix from 9fc81d8742 ("perf: Fix events installation during
moving group") was incomplete in that it failed to recognise that
creating a group with events for different CPUs is semantically
broken -- they cannot be co-scheduled.

Furthermore, it leads to real breakage where, when we create an event
for CPU Y and then migrate it to form a group on CPU X, the code gets
confused where the counter is programmed -- triggered in practice
as well by me via the perf fuzzer.

Fix this by tightening the rules for creating groups. Only allow
grouping of counters that can be co-scheduled in the same context.
This means for the same task and/or the same cpu.

Fixes: 9fc81d8742 ("perf: Fix events installation during moving group")
Change-Id: I79de43e2f5fda983d20b4b78382e3bdbc8aaa7d8
Signed-off-by: Peter Zijlstra (Intel) <peterz@infradead.org>
Cc: Arnaldo Carvalho de Melo <acme@kernel.org>
Cc: Jiri Olsa <jolsa@redhat.com>
Cc: Linus Torvalds <torvalds@linux-foundation.org>
Link: http://lkml.kernel.org/r/20150123125834.090683288@infradead.org
Signed-off-by: Ingo Molnar <mingo@kernel.org>
2018-11-02 10:58:20 +09:00
..
2013-11-13 12:09:34 +09:00
2014-06-30 20:11:58 -07:00
2014-11-21 09:23:01 -08:00
2012-05-31 17:49:27 -07:00
2014-10-09 12:21:28 -07:00
2012-03-28 18:30:03 +01:00
2014-10-05 14:52:20 -07:00
2014-03-19 10:38:27 -07:00
2013-12-04 14:09:46 +10:30
2013-12-18 19:04:50 -08:00
2015-01-12 16:49:26 -08:00
2015-06-11 23:47:33 -07:00
2013-09-11 15:58:27 -07:00
2014-06-07 10:28:09 -07:00