1 #if !defined(LTTNG_TRACE_IRQ_VECTORS_H) || defined(TRACE_HEADER_MULTI_READ)
2 #define LTTNG_TRACE_IRQ_VECTORS_H
4 #include "../../../../../probes/lttng-tracepoint-event.h"
5 #include <linux/version.h>
8 #define TRACE_SYSTEM x86_irq_vectors
10 LTTNG_TRACEPOINT_EVENT_CLASS(x86_irq_vectors_vector_class
,
15 ctf_integer(int, vector
, vector
)
19 #define LTTNG_IRQ_VECTOR_TRACEPOINT_EVENT_INSTANCE_MAP(name, map) \
20 LTTNG_TRACEPOINT_EVENT_INSTANCE_MAP(x86_irq_vectors_vector_class, \
23 TP_PROTO(int vector), \
26 LTTNG_TRACEPOINT_EVENT_INSTANCE_MAP(x86_irq_vectors_vector_class, \
29 TP_PROTO(int vector), \
34 * local_timer - called when entering/exiting a local timer interrupt
37 LTTNG_IRQ_VECTOR_TRACEPOINT_EVENT_INSTANCE_MAP(local_timer
,
38 x86_irq_vectors_local_timer
)
41 * reschedule - called when entering/exiting a reschedule vector handler
43 LTTNG_IRQ_VECTOR_TRACEPOINT_EVENT_INSTANCE_MAP(reschedule
,
44 x86_irq_vectors_reschedule
)
47 * spurious_apic - called when entering/exiting a spurious apic vector handler
49 LTTNG_IRQ_VECTOR_TRACEPOINT_EVENT_INSTANCE_MAP(spurious_apic
,
50 x86_irq_vectors_spurious_apic
)
53 * error_apic - called when entering/exiting an error apic vector handler
55 LTTNG_IRQ_VECTOR_TRACEPOINT_EVENT_INSTANCE_MAP(error_apic
,
56 x86_irq_vectors_error_apic
)
59 * x86_platform_ipi - called when entering/exiting a x86 platform ipi interrupt
62 LTTNG_IRQ_VECTOR_TRACEPOINT_EVENT_INSTANCE_MAP(x86_platform_ipi
,
66 * irq_work - called when entering/exiting a irq work interrupt
69 LTTNG_IRQ_VECTOR_TRACEPOINT_EVENT_INSTANCE_MAP(irq_work
,
70 x86_irq_vectors_irq_work
)
73 * call_function - called when entering/exiting a call function interrupt
76 LTTNG_IRQ_VECTOR_TRACEPOINT_EVENT_INSTANCE_MAP(call_function
,
77 x86_irq_vectors_call_function
)
80 * call_function_single - called when entering/exiting a call function
81 * single interrupt vector handler
83 LTTNG_IRQ_VECTOR_TRACEPOINT_EVENT_INSTANCE_MAP(call_function_single
,
84 x86_irq_vectors_call_function_single
)
87 * threshold_apic - called when entering/exiting a threshold apic interrupt
90 LTTNG_IRQ_VECTOR_TRACEPOINT_EVENT_INSTANCE_MAP(threshold_apic
,
91 x86_irq_vectors_threshold_apic
)
94 * deferred_error_apic - called when entering/exiting a deferred apic interrupt
97 LTTNG_IRQ_VECTOR_TRACEPOINT_EVENT_INSTANCE_MAP(deferred_error_apic
,
98 x86_irq_vectors_deferred_error_apic
)
101 * thermal_apic - called when entering/exiting a thermal apic interrupt
104 LTTNG_IRQ_VECTOR_TRACEPOINT_EVENT_INSTANCE_MAP(thermal_apic
,
105 x86_irq_vectors_thermal_apic
)
107 #endif /* LTTNG_TRACE_IRQ_VECTORS_H */
109 #undef TRACE_INCLUDE_PATH
110 #define TRACE_INCLUDE_PATH ../instrumentation/events/lttng-module/arch/x86
111 #undef TRACE_INCLUDE_FILE
112 #define TRACE_INCLUDE_FILE irq_vectors
114 /* This part must be outside protection */
115 #include "../../../../../probes/define_trace.h"