]> git.karo-electronics.de Git - linux-beck.git/commit
perf/x86/intel/pebs: Fix event disable PEBS buffer drain
authorLiang, Kan <kan.liang@intel.com>
Fri, 3 Jul 2015 20:08:27 +0000 (20:08 +0000)
committerIngo Molnar <mingo@kernel.org>
Tue, 4 Aug 2015 08:17:00 +0000 (10:17 +0200)
commit2a853e1123cbbb43ff74cc47b4ec582ce34df262
treec5fbe4296eb9097e84bd97b9f2c68ce8f26ee3be
parentb7b7c7821d932ba18ef6c8eafc8536066b4c2ef4
perf/x86/intel/pebs: Fix event disable PEBS buffer drain

When disabling a PEBS event, we need to drain the buffer. Doing so
requires a correct cpuc->pebs_active mask.

The current code clears the pebs_active bit before draining the
buffer. Fix that.

Signed-off-by: "Liang, Kan" <kan.liang@intel.com>
Signed-off-by: Peter Zijlstra (Intel) <peterz@infradead.org>
Cc: Linus Torvalds <torvalds@linux-foundation.org>
Cc: Peter Zijlstra <peterz@infradead.org>
Cc: Thomas Gleixner <tglx@linutronix.de>
Cc: Vince Weaver<vincent.weaver@maine.edu>
Link: http://lkml.kernel.org/r/37D7C6CF3E00A74B8858931C1DB2F07701885A65@SHSMSX103.ccr.corp.intel.com
[ Fixed the SOB. ]
Signed-off-by: Ingo Molnar <mingo@kernel.org>
arch/x86/kernel/cpu/perf_event_intel_ds.c