]> git.proxmox.com Git - mirror_ubuntu-bionic-kernel.git/commit
x86/tracing: Build tracepoints only when they are used
authorThomas Gleixner <tglx@linutronix.de>
Mon, 28 Aug 2017 06:47:36 +0000 (08:47 +0200)
committerIngo Molnar <mingo@kernel.org>
Tue, 29 Aug 2017 10:07:24 +0000 (12:07 +0200)
commit73285527804402befe5d5140aeede21c16544b4c
tree89c2e9c4cfde78f2b8cf406679dffb4182dc98f6
parenta45525b5b47c10c0446eda21227792b39af233dc
x86/tracing: Build tracepoints only when they are used

The tracepoint macro magic emits code for all tracepoints in a event header
file. That code stays around even if the tracepoint is not used at all. The
linker does not discard it.

Build the various irq_vector tracepoints dependent on the appropriate CONFIG
switches.

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/20170828064957.770651777@linutronix.de
Signed-off-by: Ingo Molnar <mingo@kernel.org>
arch/x86/include/asm/trace/irq_vectors.h