aboutsummaryrefslogtreecommitdiffstats
path: root/kernel/trace/trace_export.c
diff options
context:
space:
mode:
Diffstat (limited to 'kernel/trace/trace_export.c')
-rw-r--r--kernel/trace/trace_export.c8
1 files changed, 5 insertions, 3 deletions
diff --git a/kernel/trace/trace_export.c b/kernel/trace/trace_export.c
index 70875303ae46..029a91f42287 100644
--- a/kernel/trace/trace_export.c
+++ b/kernel/trace/trace_export.c
@@ -158,7 +158,8 @@ __attribute__((section("_ftrace_events"))) event_##call = { \
158#define TRACE_FIELD(type, item, assign) \ 158#define TRACE_FIELD(type, item, assign) \
159 ret = trace_define_field(event_call, #type, #item, \ 159 ret = trace_define_field(event_call, #type, #item, \
160 offsetof(typeof(field), item), \ 160 offsetof(typeof(field), item), \
161 sizeof(field.item), is_signed_type(type)); \ 161 sizeof(field.item), \
162 is_signed_type(type), FILTER_OTHER); \
162 if (ret) \ 163 if (ret) \
163 return ret; 164 return ret;
164 165
@@ -166,7 +167,7 @@ __attribute__((section("_ftrace_events"))) event_##call = { \
166#define TRACE_FIELD_SPECIAL(type, item, len, cmd) \ 167#define TRACE_FIELD_SPECIAL(type, item, len, cmd) \
167 ret = trace_define_field(event_call, #type "[" #len "]", #item, \ 168 ret = trace_define_field(event_call, #type "[" #len "]", #item, \
168 offsetof(typeof(field), item), \ 169 offsetof(typeof(field), item), \
169 sizeof(field.item), 0); \ 170 sizeof(field.item), 0, FILTER_OTHER); \
170 if (ret) \ 171 if (ret) \
171 return ret; 172 return ret;
172 173
@@ -174,7 +175,8 @@ __attribute__((section("_ftrace_events"))) event_##call = { \
174#define TRACE_FIELD_SIGN(type, item, assign, is_signed) \ 175#define TRACE_FIELD_SIGN(type, item, assign, is_signed) \
175 ret = trace_define_field(event_call, #type, #item, \ 176 ret = trace_define_field(event_call, #type, #item, \
176 offsetof(typeof(field), item), \ 177 offsetof(typeof(field), item), \
177 sizeof(field.item), is_signed); \ 178 sizeof(field.item), is_signed, \
179 FILTER_OTHER); \
178 if (ret) \ 180 if (ret) \
179 return ret; 181 return ret;
180 182