perf/x86: Add sanity checks to x86_schedule_events()
authorPeter Zijlstra <peterz@infradead.org>
Thu, 14 Mar 2019 12:25:02 +0000 (13:25 +0100)
committerIngo Molnar <mingo@kernel.org>
Wed, 3 Apr 2019 07:25:33 +0000 (09:25 +0200)
commitf80deefa41890f9484802d7b67f11daf28055150
tree9ec0bdc7151388d2c479b257ca6d41c9264e1c8f
parent109717de57b95d6dd9582c18a74f154d69fea536
perf/x86: Add sanity checks to x86_schedule_events()

By computing the 'committed' index earlier, we can use it to validate
the cached constraint state.

Signed-off-by: Peter Zijlstra (Intel) <peterz@infradead.org>
Cc: Alexander Shishkin <alexander.shishkin@linux.intel.com>
Cc: Arnaldo Carvalho de Melo <acme@redhat.com>
Cc: Jiri Olsa <jolsa@redhat.com>
Cc: Linus Torvalds <torvalds@linux-foundation.org>
Cc: Peter Zijlstra <peterz@infradead.org>
Cc: Stephane Eranian <eranian@google.com>
Cc: Thomas Gleixner <tglx@linutronix.de>
Cc: Vince Weaver <vincent.weaver@maine.edu>
Signed-off-by: Ingo Molnar <mingo@kernel.org>
arch/x86/events/core.c