aboutsummaryrefslogtreecommitdiffstats
path: root/include/trace/events/module.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/trace/events/module.h')
-rw-r--r--include/trace/events/module.h15
1 files changed, 12 insertions, 3 deletions
diff --git a/include/trace/events/module.h b/include/trace/events/module.h
index c7bb2f0482fe..21a546d27c0c 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
@@ -98,14 +108,14 @@ TRACE_EVENT(module_request,
98 TP_ARGS(name, wait, ip), 108 TP_ARGS(name, wait, ip),
99 109
100 TP_STRUCT__entry( 110 TP_STRUCT__entry(
101 __field( bool, wait )
102 __field( unsigned long, ip ) 111 __field( unsigned long, ip )
112 __field( bool, wait )
103 __string( name, name ) 113 __string( name, name )
104 ), 114 ),
105 115
106 TP_fast_assign( 116 TP_fast_assign(
107 __entry->wait = wait;
108 __entry->ip = ip; 117 __entry->ip = ip;
118 __entry->wait = wait;
109 __assign_str(name, name); 119 __assign_str(name, name);
110 ), 120 ),
111 121
@@ -119,4 +129,3 @@ TRACE_EVENT(module_request,
119 129
120/* This part must be outside protection */ 130/* This part must be outside protection */
121#include <trace/define_trace.h> 131#include <trace/define_trace.h>
122