x86, trace: Register exception handler to trace IDT
authorSeiji Aguchi <seiji.aguchi@hds.com>
Wed, 30 Oct 2013 20:37:00 +0000 (16:37 -0400)
committerH. Peter Anvin <hpa@linux.intel.com>
Fri, 8 Nov 2013 22:15:45 +0000 (14:15 -0800)
commit25c74b10bacead867478480170083f69cfc0db48
tree750066787398c55825485341988e19af9776b562
parent959c071f0974cda7702d7574647de7ad9259eb57
x86, trace: Register exception handler to trace IDT

This patch registers exception handlers for tracing to a trace IDT.

To implemented it in set_intr_gate(), this patch does followings.
 - Register the exception handlers to
   the trace IDT by prepending "trace_" to the handler's names.
 - Also, newly introduce trace_page_fault() to add tracepoints
   in a subsequent patch.

Signed-off-by: Seiji Aguchi <seiji.aguchi@hds.com>
Link: http://lkml.kernel.org/r/52716DEC.5050204@hds.com
Signed-off-by: H. Peter Anvin <hpa@linux.intel.com>
arch/x86/include/asm/desc.h
arch/x86/include/asm/hw_irq.h
arch/x86/include/asm/segment.h
arch/x86/include/asm/traps.h
arch/x86/kernel/entry_32.S
arch/x86/kernel/entry_64.S
arch/x86/kernel/head64.c
arch/x86/kernel/kvm.c
arch/x86/kernel/traps.c
arch/x86/mm/fault.c