summaryrefslogtreecommitdiffstats
path: root/arch/x86/include/asm/trace/irq_vectors.h
diff options
context:
space:
mode:
authorThomas Gleixner2017-08-28 08:47:21 +0200
committerIngo Molnar2017-08-29 11:42:23 +0200
commit2feb1b316d48004d905278c02a55902cab0be8be (patch)
treee34696f4142dfd9366473a96612398da48bce30d /arch/x86/include/asm/trace/irq_vectors.h
parentx86/boot: Move EISA setup to a separate file (diff)
downloadkernel-qcow2-linux-2feb1b316d48004d905278c02a55902cab0be8be.tar.gz
kernel-qcow2-linux-2feb1b316d48004d905278c02a55902cab0be8be.tar.xz
kernel-qcow2-linux-2feb1b316d48004d905278c02a55902cab0be8be.zip
x86/tracing: Introduce a static key for exception tracing
Switching the IDT just for avoiding tracepoints creates a completely impenetrable macro/inline/ifdef mess. There is no point in avoiding tracepoints for most of the traps/exceptions. For the more expensive tracepoints, like pagefaults, this can be handled with an explicit static key. Preparatory patch to remove the tracing IDT. Signed-off-by: Thomas Gleixner <tglx@linutronix.de> Cc: Andy Lutomirski <luto@kernel.org> Cc: Borislav Petkov <bp@alien8.de> Cc: Linus Torvalds <torvalds@linux-foundation.org> Cc: Peter Zijlstra <peterz@infradead.org> Cc: Steven Rostedt <rostedt@goodmis.org> Link: http://lkml.kernel.org/r/20170828064956.593094539@linutronix.de Signed-off-by: Ingo Molnar <mingo@kernel.org>
Diffstat (limited to 'arch/x86/include/asm/trace/irq_vectors.h')
-rw-r--r--arch/x86/include/asm/trace/irq_vectors.h4
1 files changed, 1 insertions, 3 deletions
diff --git a/arch/x86/include/asm/trace/irq_vectors.h b/arch/x86/include/asm/trace/irq_vectors.h
index 32dd6a9e343c..7825b4426e7e 100644
--- a/arch/x86/include/asm/trace/irq_vectors.h
+++ b/arch/x86/include/asm/trace/irq_vectors.h
@@ -5,9 +5,7 @@
#define _TRACE_IRQ_VECTORS_H
#include <linux/tracepoint.h>
-
-extern int trace_irq_vector_regfunc(void);
-extern void trace_irq_vector_unregfunc(void);
+#include <asm/trace/common.h>
DECLARE_EVENT_CLASS(x86_irq_vector,