x86: Add NMI duration tracepoints
authorDave Hansen <dave.hansen@linux.intel.com>
Fri, 21 Jun 2013 15:51:38 +0000 (08:51 -0700)
committerIngo Molnar <mingo@kernel.org>
Sun, 23 Jun 2013 09:52:58 +0000 (11:52 +0200)
commit0c4df02d739fed5ab081b330d67403206dd3967e
tree37296c48ff5adef1537fd5c64977a3c1a0e8cff2
parent14c63f17b1fde5a575a28e96547a22b451c71fb5
x86: Add NMI duration tracepoints

This patch has been invaluable in my adventures finding
issues in the perf NMI handler.  I'm as big a fan of
printk() as anybody is, but using printk() in NMIs is
deadly when they're happening frequently.

Even hacking in trace_printk() ended up eating enough
CPU to throw off some of the measurements I was making.

Signed-off-by: Dave Hansen <dave.hansen@linux.intel.com>
Acked-by: Peter Zijlstra <a.p.zijlstra@chello.nl>
Cc: paulus@samba.org
Cc: acme@ghostprotocols.net
Cc: Dave Hansen <dave@sr71.net>
Signed-off-by: Ingo Molnar <mingo@kernel.org>
Documentation/trace/events-nmi.txt [new file with mode: 0644]
arch/x86/kernel/nmi.c
include/trace/events/nmi.h [new file with mode: 0644]