diff options
author | Peter Zijlstra | 2017-11-13 14:28:44 +0100 |
---|---|---|
committer | Ingo Molnar | 2018-03-12 15:28:50 +0100 |
commit | 8703a7cfe148f73062c568e9a8549ce692104864 (patch) | |
tree | 074000272c91b34f204800673289d999777d4861 /kernel/module_signing.c | |
parent | perf/core: Simpify perf_event_groups_for_each() (diff) | |
download | kernel-qcow2-linux-8703a7cfe148f73062c568e9a8549ce692104864.tar.gz kernel-qcow2-linux-8703a7cfe148f73062c568e9a8549ce692104864.tar.xz kernel-qcow2-linux-8703a7cfe148f73062c568e9a8549ce692104864.zip |
perf/core: Fix tree based event rotation
Similar to how first programming cpu=-1 and then cpu=# is wrong, so is
rotating both. It was especially wrong when we were still programming
the PMU in this same order, because in that scenario we might never
actually end up running cpu=# events at all.
Cure this by using the active_list to pick the rotation event; since
at programming we already select the left-most event.
Signed-off-by: Peter Zijlstra (Intel) <peterz@infradead.org>
Acked-by: Mark Rutland <mark.rutland@arm.com>
Cc: Alexander Shishkin <alexander.shishkin@linux.intel.com>
Cc: Alexey Budankov <alexey.budankov@linux.intel.com>
Cc: Arnaldo Carvalho de Melo <acme@redhat.com>
Cc: David Carrillo-Cisneros <davidcc@google.com>
Cc: Dmitri Prokhorov <Dmitry.Prohorov@intel.com>
Cc: Jiri Olsa <jolsa@redhat.com>
Cc: Kan Liang <kan.liang@intel.com>
Cc: Linus Torvalds <torvalds@linux-foundation.org>
Cc: Stephane Eranian <eranian@google.com>
Cc: Thomas Gleixner <tglx@linutronix.de>
Cc: Valery Cherepennikov <valery.cherepennikov@intel.com>
Cc: Vince Weaver <vincent.weaver@maine.edu>
Cc: linux-kernel@vger.kernel.org
Signed-off-by: Ingo Molnar <mingo@kernel.org>
Diffstat (limited to 'kernel/module_signing.c')
0 files changed, 0 insertions, 0 deletions