diff options
Diffstat (limited to 'include/trace/ftrace.h')
-rw-r--r-- | include/trace/ftrace.h | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/include/trace/ftrace.h b/include/trace/ftrace.h index 1e681142f1da..edb02bc9f8ff 100644 --- a/include/trace/ftrace.h +++ b/include/trace/ftrace.h | |||
@@ -225,7 +225,7 @@ ftrace_format_##call(struct trace_seq *s) \ | |||
225 | #define __field(type, item) \ | 225 | #define __field(type, item) \ |
226 | ret = trace_define_field(event_call, #type, #item, \ | 226 | ret = trace_define_field(event_call, #type, #item, \ |
227 | offsetof(typeof(field), item), \ | 227 | offsetof(typeof(field), item), \ |
228 | sizeof(field.item)); \ | 228 | sizeof(field.item), is_signed_type(type)); \ |
229 | if (ret) \ | 229 | if (ret) \ |
230 | return ret; | 230 | return ret; |
231 | 231 | ||
@@ -234,7 +234,7 @@ ftrace_format_##call(struct trace_seq *s) \ | |||
234 | BUILD_BUG_ON(len > MAX_FILTER_STR_VAL); \ | 234 | BUILD_BUG_ON(len > MAX_FILTER_STR_VAL); \ |
235 | ret = trace_define_field(event_call, #type "[" #len "]", #item, \ | 235 | ret = trace_define_field(event_call, #type "[" #len "]", #item, \ |
236 | offsetof(typeof(field), item), \ | 236 | offsetof(typeof(field), item), \ |
237 | sizeof(field.item)); \ | 237 | sizeof(field.item), 0); \ |
238 | if (ret) \ | 238 | if (ret) \ |
239 | return ret; | 239 | return ret; |
240 | 240 | ||
@@ -242,7 +242,7 @@ ftrace_format_##call(struct trace_seq *s) \ | |||
242 | #define __string(item, src) \ | 242 | #define __string(item, src) \ |
243 | ret = trace_define_field(event_call, "__str_loc", #item, \ | 243 | ret = trace_define_field(event_call, "__str_loc", #item, \ |
244 | offsetof(typeof(field), __str_loc_##item), \ | 244 | offsetof(typeof(field), __str_loc_##item), \ |
245 | sizeof(field.__str_loc_##item)); | 245 | sizeof(field.__str_loc_##item), 0); |
246 | 246 | ||
247 | #undef TRACE_EVENT | 247 | #undef TRACE_EVENT |
248 | #define TRACE_EVENT(call, proto, args, tstruct, func, print) \ | 248 | #define TRACE_EVENT(call, proto, args, tstruct, func, print) \ |
@@ -253,11 +253,11 @@ ftrace_define_fields_##call(void) \ | |||
253 | struct ftrace_event_call *event_call = &event_##call; \ | 253 | struct ftrace_event_call *event_call = &event_##call; \ |
254 | int ret; \ | 254 | int ret; \ |
255 | \ | 255 | \ |
256 | __common_field(int, type); \ | 256 | __common_field(int, type, 1); \ |
257 | __common_field(unsigned char, flags); \ | 257 | __common_field(unsigned char, flags, 0); \ |
258 | __common_field(unsigned char, preempt_count); \ | 258 | __common_field(unsigned char, preempt_count, 0); \ |
259 | __common_field(int, pid); \ | 259 | __common_field(int, pid, 1); \ |
260 | __common_field(int, tgid); \ | 260 | __common_field(int, tgid, 1); \ |
261 | \ | 261 | \ |
262 | tstruct; \ | 262 | tstruct; \ |
263 | \ | 263 | \ |