aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--include/linux/tracepoint.h7
1 files changed, 6 insertions, 1 deletions
diff --git a/include/linux/tracepoint.h b/include/linux/tracepoint.h
index 1d85f9a6a19..8d5e4f6d96d 100644
--- a/include/linux/tracepoint.h
+++ b/include/linux/tracepoint.h
@@ -137,9 +137,11 @@ static inline void tracepoint_update_probe_range(struct tracepoint *begin,
137 static inline int unregister_trace_##name(void (*probe)(proto)) \ 137 static inline int unregister_trace_##name(void (*probe)(proto)) \
138 { \ 138 { \
139 return tracepoint_probe_unregister(#name, (void *)probe);\ 139 return tracepoint_probe_unregister(#name, (void *)probe);\
140 } \
141 static inline void check_trace_callback_type_##name(void (*cb)(proto)) \
142 { \
140 } 143 }
141 144
142
143#define DEFINE_TRACE_FN(name, reg, unreg) \ 145#define DEFINE_TRACE_FN(name, reg, unreg) \
144 static const char __tpstrtab_##name[] \ 146 static const char __tpstrtab_##name[] \
145 __attribute__((section("__tracepoints_strings"))) = #name; \ 147 __attribute__((section("__tracepoints_strings"))) = #name; \
@@ -168,6 +170,9 @@ static inline void tracepoint_update_probe_range(struct tracepoint *begin,
168 static inline int unregister_trace_##name(void (*probe)(proto)) \ 170 static inline int unregister_trace_##name(void (*probe)(proto)) \
169 { \ 171 { \
170 return -ENOSYS; \ 172 return -ENOSYS; \
173 } \
174 static inline void check_trace_callback_type_##name(void (*cb)(proto)) \
175 { \
171 } 176 }
172 177
173#define DEFINE_TRACE_FN(name, reg, unreg) 178#define DEFINE_TRACE_FN(name, reg, unreg)