perf/x86: Fix USER/KERNEL tagging of samples
authorPeter Zijlstra <[email protected]>
Wed, 20 Jun 2012 09:11:38 +0000 (11:11 +0200)
committerIngo Molnar <[email protected]>
Thu, 5 Jul 2012 18:59:07 +0000 (20:59 +0200)
commitce5c1fe9a9e059b5c58f0a7e2a3e687d0efac815
tree9405386325c5df9189705807c8fea36a55f2ad25
parent9e85a6f9dc231f3ed3c1dc1b12217505d970142a
perf/x86: Fix USER/KERNEL tagging of samples

Several perf interrupt handlers (PEBS,IBS,BTS) re-write regs->ip but
do not update the segment registers. So use an regs->ip based test
instead of an regs->cs/regs->flags based test.

Reported-and-tested-by: Stephane Eranian <[email protected]>
Signed-off-by: Peter Zijlstra <[email protected]>
Cc: Linus Torvalds <[email protected]>
Cc: Andrew Morton <[email protected]>
Cc: Thomas Gleixner <[email protected]>
Cc: Frederic Weisbecker <[email protected]>
Link: http://lkml.kernel.org/n/[email protected]
Signed-off-by: Ingo Molnar <[email protected]>
arch/x86/kernel/cpu/perf_event.c