diff options
Diffstat (limited to 'include/linux/tracepoint.h')
-rw-r--r-- | include/linux/tracepoint.h | 12 |
1 files changed, 10 insertions, 2 deletions
diff --git a/include/linux/tracepoint.h b/include/linux/tracepoint.h index 846a4ae501e..63a3f7a8058 100644 --- a/include/linux/tracepoint.h +++ b/include/linux/tracepoint.h | |||
@@ -165,6 +165,15 @@ static inline void tracepoint_synchronize_unregister(void) | |||
165 | 165 | ||
166 | #define PARAMS(args...) args | 166 | #define PARAMS(args...) args |
167 | 167 | ||
168 | #endif /* _LINUX_TRACEPOINT_H */ | ||
169 | |||
170 | /* | ||
171 | * Note: we keep the TRACE_EVENT outside the include file ifdef protection. | ||
172 | * This is due to the way trace events work. If a file includes two | ||
173 | * trace event headers under one "CREATE_TRACE_POINTS" the first include | ||
174 | * will override the TRACE_EVENT and break the second include. | ||
175 | */ | ||
176 | |||
168 | #ifndef TRACE_EVENT | 177 | #ifndef TRACE_EVENT |
169 | /* | 178 | /* |
170 | * For use with the TRACE_EVENT macro: | 179 | * For use with the TRACE_EVENT macro: |
@@ -276,6 +285,5 @@ static inline void tracepoint_synchronize_unregister(void) | |||
276 | #define TRACE_EVENT_FN(name, proto, args, struct, \ | 285 | #define TRACE_EVENT_FN(name, proto, args, struct, \ |
277 | assign, print, reg, unreg) \ | 286 | assign, print, reg, unreg) \ |
278 | DECLARE_TRACE(name, PARAMS(proto), PARAMS(args)) | 287 | DECLARE_TRACE(name, PARAMS(proto), PARAMS(args)) |
279 | #endif | ||
280 | 288 | ||
281 | #endif | 289 | #endif /* ifdef TRACE_EVENT (see note above) */ |