diff options
Diffstat (limited to 'include/trace')
| -rw-r--r-- | include/trace/ftrace.h | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/include/trace/ftrace.h b/include/trace/ftrace.h index 27609dfcce25..41bf65f04dd9 100644 --- a/include/trace/ftrace.h +++ b/include/trace/ftrace.h | |||
| @@ -263,6 +263,14 @@ | |||
| 263 | #undef __print_hex | 263 | #undef __print_hex |
| 264 | #define __print_hex(buf, buf_len) ftrace_print_hex_seq(p, buf, buf_len) | 264 | #define __print_hex(buf, buf_len) ftrace_print_hex_seq(p, buf, buf_len) |
| 265 | 265 | ||
| 266 | #undef __print_array | ||
| 267 | #define __print_array(array, count, el_size) \ | ||
| 268 | ({ \ | ||
| 269 | BUILD_BUG_ON(el_size != 1 && el_size != 2 && \ | ||
| 270 | el_size != 4 && el_size != 8); \ | ||
| 271 | ftrace_print_array_seq(p, array, count, el_size); \ | ||
| 272 | }) | ||
| 273 | |||
| 266 | #undef DECLARE_EVENT_CLASS | 274 | #undef DECLARE_EVENT_CLASS |
| 267 | #define DECLARE_EVENT_CLASS(call, proto, args, tstruct, assign, print) \ | 275 | #define DECLARE_EVENT_CLASS(call, proto, args, tstruct, assign, print) \ |
| 268 | static notrace enum print_line_t \ | 276 | static notrace enum print_line_t \ |
| @@ -674,6 +682,7 @@ static inline void ftrace_test_probe_##call(void) \ | |||
| 674 | #undef __get_dynamic_array_len | 682 | #undef __get_dynamic_array_len |
| 675 | #undef __get_str | 683 | #undef __get_str |
| 676 | #undef __get_bitmask | 684 | #undef __get_bitmask |
| 685 | #undef __print_array | ||
| 677 | 686 | ||
| 678 | #undef TP_printk | 687 | #undef TP_printk |
| 679 | #define TP_printk(fmt, args...) "\"" fmt "\", " __stringify(args) | 688 | #define TP_printk(fmt, args...) "\"" fmt "\", " __stringify(args) |
