aboutsummaryrefslogtreecommitdiffstats
path: root/include/trace
diff options
context:
space:
mode:
authorLinus Torvalds <torvalds@linux-foundation.org>2013-07-02 19:31:49 -0400
committerLinus Torvalds <torvalds@linux-foundation.org>2013-07-02 19:31:49 -0400
commit96a3d998fb92c28b9862297fcf93a24d8a0eac1d (patch)
tree7fe1a799a3a84d276e7dcf8b0afa5b4ceb56659f /include/trace
parent3045f94a20cc54e3e5b20a843701eeab86f57163 (diff)
parent5236eb968ec21c693d463d0494e39b00c1bc174d (diff)
Merge branch 'x86-tracing-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip
Pull x86 tracing updates from Ingo Molnar: "This tree adds IRQ vector tracepoints that are named after the handler and which output the vector #, based on a zero-overhead approach that relies on changing the IDT entries, by Seiji Aguchi. The new tracepoints look like this: # perf list | grep -i irq_vector irq_vectors:local_timer_entry [Tracepoint event] irq_vectors:local_timer_exit [Tracepoint event] irq_vectors:reschedule_entry [Tracepoint event] irq_vectors:reschedule_exit [Tracepoint event] irq_vectors:spurious_apic_entry [Tracepoint event] irq_vectors:spurious_apic_exit [Tracepoint event] irq_vectors:error_apic_entry [Tracepoint event] irq_vectors:error_apic_exit [Tracepoint event] [...]" * 'x86-tracing-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip: x86/tracing: Add config option checking to the definitions of mce handlers trace,x86: Do not call local_irq_save() in load_current_idt() trace,x86: Move creation of irq tracepoints from apic.c to irq.c x86, trace: Add irq vector tracepoints x86: Rename variables for debugging x86, trace: Introduce entering/exiting_irq() tracing: Add DEFINE_EVENT_FN() macro
Diffstat (limited to 'include/trace')
-rw-r--r--include/trace/define_trace.h5
-rw-r--r--include/trace/ftrace.h4
2 files changed, 9 insertions, 0 deletions
diff --git a/include/trace/define_trace.h b/include/trace/define_trace.h
index 1905ca8dd399..02e1003568a4 100644
--- a/include/trace/define_trace.h
+++ b/include/trace/define_trace.h
@@ -44,6 +44,10 @@
44#define DEFINE_EVENT(template, name, proto, args) \ 44#define DEFINE_EVENT(template, name, proto, args) \
45 DEFINE_TRACE(name) 45 DEFINE_TRACE(name)
46 46
47#undef DEFINE_EVENT_FN
48#define DEFINE_EVENT_FN(template, name, proto, args, reg, unreg) \
49 DEFINE_TRACE_FN(name, reg, unreg)
50
47#undef DEFINE_EVENT_PRINT 51#undef DEFINE_EVENT_PRINT
48#define DEFINE_EVENT_PRINT(template, name, proto, args, print) \ 52#define DEFINE_EVENT_PRINT(template, name, proto, args, print) \
49 DEFINE_TRACE(name) 53 DEFINE_TRACE(name)
@@ -91,6 +95,7 @@
91#undef TRACE_EVENT_CONDITION 95#undef TRACE_EVENT_CONDITION
92#undef DECLARE_EVENT_CLASS 96#undef DECLARE_EVENT_CLASS
93#undef DEFINE_EVENT 97#undef DEFINE_EVENT
98#undef DEFINE_EVENT_FN
94#undef DEFINE_EVENT_PRINT 99#undef DEFINE_EVENT_PRINT
95#undef DEFINE_EVENT_CONDITION 100#undef DEFINE_EVENT_CONDITION
96#undef TRACE_HEADER_MULTI_READ 101#undef TRACE_HEADER_MULTI_READ
diff --git a/include/trace/ftrace.h b/include/trace/ftrace.h
index 19edd7facaa1..d615f78cc6b6 100644
--- a/include/trace/ftrace.h
+++ b/include/trace/ftrace.h
@@ -71,6 +71,10 @@
71 static struct ftrace_event_call __used \ 71 static struct ftrace_event_call __used \
72 __attribute__((__aligned__(4))) event_##name 72 __attribute__((__aligned__(4))) event_##name
73 73
74#undef DEFINE_EVENT_FN
75#define DEFINE_EVENT_FN(template, name, proto, args, reg, unreg) \
76 DEFINE_EVENT(template, name, PARAMS(proto), PARAMS(args))
77
74#undef DEFINE_EVENT_PRINT 78#undef DEFINE_EVENT_PRINT
75#define DEFINE_EVENT_PRINT(template, name, proto, args, print) \ 79#define DEFINE_EVENT_PRINT(template, name, proto, args, print) \
76 DEFINE_EVENT(template, name, PARAMS(proto), PARAMS(args)) 80 DEFINE_EVENT(template, name, PARAMS(proto), PARAMS(args))