Skip to content
Commit 2a853e11 authored by Liang, Kan's avatar Liang, Kan Committed by Ingo Molnar
Browse files

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: default avatar"Liang, Kan" <kan.liang@intel.com>
Signed-off-by: default avatarPeter 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: default avatarIngo Molnar <mingo@kernel.org>
parent b7b7c782
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment