diff options
Diffstat (limited to 'include/trace')
-rw-r--r-- | include/trace/events/module.h | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/include/trace/events/module.h b/include/trace/events/module.h index c7bb2f0482fe..c6bae36547e5 100644 --- a/include/trace/events/module.h +++ b/include/trace/events/module.h | |||
@@ -1,5 +1,15 @@ | |||
1 | /* | ||
2 | * Because linux/module.h has tracepoints in the header, and ftrace.h | ||
3 | * eventually includes this file, define_trace.h includes linux/module.h | ||
4 | * But we do not want the module.h to override the TRACE_SYSTEM macro | ||
5 | * variable that define_trace.h is processing, so we only set it | ||
6 | * when module events are being processed, which would happen when | ||
7 | * CREATE_TRACE_POINTS is defined. | ||
8 | */ | ||
9 | #ifdef CREATE_TRACE_POINTS | ||
1 | #undef TRACE_SYSTEM | 10 | #undef TRACE_SYSTEM |
2 | #define TRACE_SYSTEM module | 11 | #define TRACE_SYSTEM module |
12 | #endif | ||
3 | 13 | ||
4 | #if !defined(_TRACE_MODULE_H) || defined(TRACE_HEADER_MULTI_READ) | 14 | #if !defined(_TRACE_MODULE_H) || defined(TRACE_HEADER_MULTI_READ) |
5 | #define _TRACE_MODULE_H | 15 | #define _TRACE_MODULE_H |