Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1508956

Re: [PATCH 1/2] perf, x86-mm: Add exit-fault tracing

From Peter Zijlstra <peterz@infradead.org>
Newsgroups linux.kernel
Subject Re: [PATCH 1/2] perf, x86-mm: Add exit-fault tracing
Date 2016-10-26 11:00 +0200
Message-ID <swsdY-1ge-35@gated-at.bofh.it> (permalink)
References <swjNn-3Zo-5@gated-at.bofh.it> <swjNn-3Zo-3@gated-at.bofh.it>
Organization linux.* mail to news gateway

Show all headers | View raw


On Wed, Oct 26, 2016 at 01:51:59AM +0200, Alexis Berlemont wrote:

-ENOCHANGELOG

> Signed-off-by: Alexis Berlemont <alexis.berlemont@gmail.com>
> ---

> diff --git a/arch/x86/mm/fault.c b/arch/x86/mm/fault.c
> index 9f72ca3..e31e8ef 100644
> --- a/arch/x86/mm/fault.c
> +++ b/arch/x86/mm/fault.c
> @@ -1488,6 +1488,7 @@ trace_do_page_fault(struct pt_regs *regs, unsigned long error_code)
>  	prev_state = exception_enter();
>  	trace_page_fault_entries(address, regs, error_code);
>  	__do_page_fault(regs, error_code, address);
> +	trace_page_fault_exit(address);

Aside from my general hatred of tracepoint, it bugs me that its not
symmetric like the irq vector ones. But I'll leave that to x86 people.

>  	exception_exit(prev_state);
>  }
>  NOKPROBE_SYMBOL(trace_do_page_fault);
> -- 
> 2.10.1
> 

Back to linux.kernel | Previous | NextPrevious in thread | Next in thread | Find similar | Unroll thread


Thread

[PATCH 1/2] perf, x86-mm: Add exit-fault tracing Alexis Berlemont <alexis.berlemont@gmail.com> - 2016-10-26 02:00 +0200
  Re: [PATCH 1/2] perf, x86-mm: Add exit-fault tracing Peter Zijlstra <peterz@infradead.org> - 2016-10-26 11:00 +0200
    Re: [PATCH 1/2] perf, x86-mm: Add exit-fault tracing Arnaldo Carvalho de Melo <acme@kernel.org> - 2016-10-26 21:00 +0200

csiph-web