Re: [patch 05/41] x86/tracing: Introduce a static key for exception tracing

From: Steven Rostedt
Date: Fri Aug 25 2017 - 11:24:09 EST


On Fri, 25 Aug 2017 12:31:08 +0200
Thomas Gleixner <tglx@xxxxxxxxxxxxx> wrote:

> Switching the IDT just for avoiding tracepoints creates a complete
> 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@xxxxxxxxxxxxx>
> ---
> arch/x86/include/asm/trace/common.h | 15 +++++++++++++++
> arch/x86/include/asm/trace/exceptions.h | 4 +---
> arch/x86/include/asm/trace/irq_vectors.h | 4 +---
> arch/x86/kernel/tracepoint.c | 9 ++++++++-
> 4 files changed, 25 insertions(+), 7 deletions(-)
>
> --- /dev/null
> +++ b/arch/x86/include/asm/trace/common.h

Reviewed-by: Steven Rostedt (VMware) <rostedt@xxxxxxxxxxx>

-- Steve