diff options
-rw-r--r-- | include/linux/tracepoint.h | 13 |
1 files changed, 11 insertions, 2 deletions
diff --git a/include/linux/tracepoint.h b/include/linux/tracepoint.h index 81709854f7ab..0341f2e2698a 100644 --- a/include/linux/tracepoint.h +++ b/include/linux/tracepoint.h | |||
@@ -180,7 +180,15 @@ static inline void tracepoint_synchronize_unregister(void) | |||
180 | } | 180 | } |
181 | 181 | ||
182 | #define PARAMS(args...) args | 182 | #define PARAMS(args...) args |
183 | #endif | 183 | |
184 | #endif /* _LINUX_TRACEPOINT_H */ | ||
185 | |||
186 | /* | ||
187 | * Note: we keep the TRACE_EVENT outside the include file ifdef protection. | ||
188 | * This is due to the way trace events work. If a file includes two | ||
189 | * trace event headers under one "CREATE_TRACE_POINTS" the first include | ||
190 | * will override the TRACE_EVENT and break the second include. | ||
191 | */ | ||
184 | 192 | ||
185 | #ifndef TRACE_EVENT | 193 | #ifndef TRACE_EVENT |
186 | /* | 194 | /* |
@@ -287,4 +295,5 @@ static inline void tracepoint_synchronize_unregister(void) | |||
287 | 295 | ||
288 | #define TRACE_EVENT(name, proto, args, struct, assign, print) \ | 296 | #define TRACE_EVENT(name, proto, args, struct, assign, print) \ |
289 | DECLARE_TRACE(name, PARAMS(proto), PARAMS(args)) | 297 | DECLARE_TRACE(name, PARAMS(proto), PARAMS(args)) |
290 | #endif | 298 | |
299 | #endif /* ifdef TRACE_EVENT (see note above) */ | ||