aboutsummaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
Diffstat (limited to 'include')
-rw-r--r--include/linux/ftrace.h8
-rw-r--r--include/linux/irqflags.h3
-rw-r--r--include/linux/preempt.h2
3 files changed, 11 insertions, 2 deletions
diff --git a/include/linux/ftrace.h b/include/linux/ftrace.h
index 0a20445dcbcc..740c97dcf9cb 100644
--- a/include/linux/ftrace.h
+++ b/include/linux/ftrace.h
@@ -58,4 +58,12 @@ extern void mcount(void);
58# define time_hardirqs_off(a0, a1) do { } while (0) 58# define time_hardirqs_off(a0, a1) do { } while (0)
59#endif 59#endif
60 60
61#ifdef CONFIG_PREEMPT_TRACER
62 extern void notrace trace_preempt_on(unsigned long a0, unsigned long a1);
63 extern void notrace trace_preempt_off(unsigned long a0, unsigned long a1);
64#else
65# define trace_preempt_on(a0, a1) do { } while (0)
66# define trace_preempt_off(a0, a1) do { } while (0)
67#endif
68
61#endif /* _LINUX_FTRACE_H */ 69#endif /* _LINUX_FTRACE_H */
diff --git a/include/linux/irqflags.h b/include/linux/irqflags.h
index 5b711d4e9fd9..2b1c2e58566e 100644
--- a/include/linux/irqflags.h
+++ b/include/linux/irqflags.h
@@ -41,7 +41,8 @@
41# define INIT_TRACE_IRQFLAGS 41# define INIT_TRACE_IRQFLAGS
42#endif 42#endif
43 43
44#ifdef CONFIG_IRQSOFF_TRACER 44#if defined(CONFIG_IRQSOFF_TRACER) || \
45 defined(CONFIG_PREEMPT_TRACER)
45 extern void stop_critical_timings(void); 46 extern void stop_critical_timings(void);
46 extern void start_critical_timings(void); 47 extern void start_critical_timings(void);
47#else 48#else
diff --git a/include/linux/preempt.h b/include/linux/preempt.h
index 36b03d50bf40..72b1a10a59b6 100644
--- a/include/linux/preempt.h
+++ b/include/linux/preempt.h
@@ -10,7 +10,7 @@
10#include <linux/linkage.h> 10#include <linux/linkage.h>
11#include <linux/list.h> 11#include <linux/list.h>
12 12
13#ifdef CONFIG_DEBUG_PREEMPT 13#if defined(CONFIG_DEBUG_PREEMPT) || defined(CONFIG_PREEMPT_TRACER)
14 extern void add_preempt_count(int val); 14 extern void add_preempt_count(int val);
15 extern void sub_preempt_count(int val); 15 extern void sub_preempt_count(int val);
16#else 16#else