Re: [tip:perf/core] perf/x86: Fix USER/KERNEL tagging of samples

From: Linus Torvalds
Date: Fri Jul 06 2012 - 14:17:14 EST


On Fri, Jul 6, 2012 at 11:12 AM, Peter Zijlstra <a.p.zijlstra@xxxxxxxxx> wrote:
>
> PEBS, BTS, LBR don't have CS. PEBS does have eflags.
>
> If we cannot do this I'm not sure what we can do :/

Well, you're passed in a "pt_regs". Which *does* have CS, and has it right.

If some code then changes the values in the pt_regs, it is *that* code
that needs to think twice about what it does. Where is that code?

Linus
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/