x86, trace: Change user|kernel_page_fault to page_fault_user|kernel
authorH. Peter Anvin <hpa@zytor.com>
Mon, 11 Nov 2013 16:15:40 +0000 (08:15 -0800)
committerH. Peter Anvin <hpa@zytor.com>
Mon, 11 Nov 2013 16:15:40 +0000 (08:15 -0800)
Tracepoints are named hierachially, and it makes more sense to keep a
general flow of information level from general to specific from left
to right, i.e.

x86_exceptions.page_fault_user|kernel

rather than

x86_exceptions.user|kernel_page_fault

Suggested-by: Ingo Molnar <mingo@kernel.org>
Acked-by: Seiji Aguchi <seiji.aguchi@hds.com>
Signed-off-by: H. Peter Anvin <hpa@zytor.com>
Link: http://lkml.kernel.org/r/20131111082955.GB12405@gmail.com
arch/x86/include/asm/trace/exceptions.h
arch/x86/mm/fault.c

index 86540c094ecc95252588d77d27b578bb93d1a918..2fbc66c7885b56d3771c7b143b98252445b9940c 100644 (file)
@@ -40,8 +40,8 @@ DEFINE_EVENT_FN(x86_exceptions, name,                         \
        trace_irq_vector_regfunc,                               \
        trace_irq_vector_unregfunc);
 
-DEFINE_PAGE_FAULT_EVENT(user_page_fault);
-DEFINE_PAGE_FAULT_EVENT(kernel_page_fault);
+DEFINE_PAGE_FAULT_EVENT(page_fault_user);
+DEFINE_PAGE_FAULT_EVENT(page_fault_kernel);
 
 #undef TRACE_INCLUDE_PATH
 #define TRACE_INCLUDE_PATH .
index f2730cbce0b57d7f55bc68463b0d9e26e1feeef4..e532230685d73d13df46dbf57fb1a885541e2e25 100644 (file)
@@ -1239,9 +1239,9 @@ static void trace_page_fault_entries(struct pt_regs *regs,
                                     unsigned long error_code)
 {
        if (user_mode(regs))
-               trace_user_page_fault(read_cr2(), regs, error_code);
+               trace_page_fault_user(read_cr2(), regs, error_code);
        else
-               trace_kernel_page_fault(read_cr2(), regs, error_code);
+               trace_page_fault_kernel(read_cr2(), regs, error_code);
 }
 
 dotraplinkage void __kprobes