OSDN Git Service

perf: Restructure perf syscall point of no return
authorPeter Zijlstra <peterz@infradead.org>
Wed, 9 Sep 2015 17:06:33 +0000 (19:06 +0200)
committerIngo Molnar <mingo@kernel.org>
Fri, 18 Sep 2015 07:20:24 +0000 (09:20 +0200)
commitf55fc2a57cc9ca3b1bb4fb8eb25b6e1989e5b993
tree213efb8002bf5e0d2cc5f97d9a394f56521f5e6c
parentdfe1f3cb312624928052413928d88b0ee3492216
perf: Restructure perf syscall point of no return

The exclusive_event_installable() stuff only works because its
exclusive with the grouping bits.

Rework the code such that there is a sane place to error out before we
go do things we cannot undo.

Signed-off-by: Peter Zijlstra (Intel) <peterz@infradead.org>
Cc: Alexander Shishkin <alexander.shishkin@linux.intel.com>
Cc: Linus Torvalds <torvalds@linux-foundation.org>
Cc: Peter Zijlstra <peterz@infradead.org>
Cc: Thomas Gleixner <tglx@linutronix.de>
Cc: linux-kernel@vger.kernel.org
Signed-off-by: Ingo Molnar <mingo@kernel.org>
kernel/events/core.c