Re: [PATCHv2] x86 trace: Fix page fault tracing bug

From: H. Peter Anvin
Date: Fri Feb 28 2014 - 11:13:06 EST


On 02/28/2014 08:05 AM, Jiri Olsa wrote:
> On Fri, Feb 28, 2014 at 04:47:08PM +0100, Peter Zijlstra wrote:
>> On Fri, Feb 28, 2014 at 04:33:40PM +0100, Jiri Olsa wrote:
>>
>> While I like the idea of just pushing up the CR2 read; the below does
>> the read too late still, exception_enter() also has a tracepoint in.
>
> please check v2, thanks

Is there any way something could come in even earlier (perhaps via
__fentry__)?

If so, do we need to hoist the reading of %cr2 all the way into assembly
or something else?

-hpa

--
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/