[PATCH v2] perf, x86-mm: declare page-faults tracepoints like irq-vectors ones

From: Alexis Berlemont
Date: Thu Oct 27 2016 - 19:35:48 EST


So, would you be OK with the following patch ?

There is a symmetry just like irq_vectors tracepoints:

# perf list | grep -E "exception|irq_vectors"
exceptions:page_fault_kernel_entry [Tracepoint event]
exceptions:page_fault_kernel_exit [Tracepoint event]
exceptions:page_fault_user_entry [Tracepoint event]
exceptions:page_fault_user_exit [Tracepoint event]
irq_vectors:call_function_entry [Tracepoint event]
irq_vectors:call_function_exit [Tracepoint event]
...

Maybe 2 tracepoints (instead of 4) should have been enough; however,
there were already 1 tracepoint per mode before.

Alexis.

Alexis Berlemont (1):
perf, x86-mm: declare page-faults tracepoints like irq-vectors ones

arch/x86/include/asm/trace/exceptions.h | 17 ++++++++++++++++-
arch/x86/mm/fault.c | 17 ++++++++++++++---
2 files changed, 30 insertions(+), 4 deletions(-)

--
2.10.1