diff options
Diffstat (limited to 'kernel/trace/trace.h')
-rw-r--r-- | kernel/trace/trace.h | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/kernel/trace/trace.h b/kernel/trace/trace.h index d88cd9bb72f4..a62b678731e3 100644 --- a/kernel/trace/trace.h +++ b/kernel/trace/trace.h | |||
@@ -1827,6 +1827,21 @@ static inline int tracing_alloc_snapshot_instance(struct trace_array *tr) | |||
1827 | } | 1827 | } |
1828 | #endif | 1828 | #endif |
1829 | 1829 | ||
1830 | #ifdef CONFIG_PREEMPT_TRACER | ||
1831 | void tracer_preempt_on(unsigned long a0, unsigned long a1); | ||
1832 | void tracer_preempt_off(unsigned long a0, unsigned long a1); | ||
1833 | #else | ||
1834 | static inline void tracer_preempt_on(unsigned long a0, unsigned long a1) { } | ||
1835 | static inline void tracer_preempt_off(unsigned long a0, unsigned long a1) { } | ||
1836 | #endif | ||
1837 | #ifdef CONFIG_IRQSOFF_TRACER | ||
1838 | void tracer_hardirqs_on(unsigned long a0, unsigned long a1); | ||
1839 | void tracer_hardirqs_off(unsigned long a0, unsigned long a1); | ||
1840 | #else | ||
1841 | static inline void tracer_hardirqs_on(unsigned long a0, unsigned long a1) { } | ||
1842 | static inline void tracer_hardirqs_off(unsigned long a0, unsigned long a1) { } | ||
1843 | #endif | ||
1844 | |||
1830 | extern struct trace_iterator *tracepoint_print_iter; | 1845 | extern struct trace_iterator *tracepoint_print_iter; |
1831 | 1846 | ||
1832 | #endif /* _LINUX_KERNEL_TRACE_H */ | 1847 | #endif /* _LINUX_KERNEL_TRACE_H */ |