diff options
Diffstat (limited to 'include')
| -rw-r--r-- | include/linux/ftrace_event.h | 4 | ||||
| -rw-r--r-- | include/trace/ftrace.h | 9 |
2 files changed, 13 insertions, 0 deletions
diff --git a/include/linux/ftrace_event.h b/include/linux/ftrace_event.h index d36f68b08acc..c674ee8f7fca 100644 --- a/include/linux/ftrace_event.h +++ b/include/linux/ftrace_event.h | |||
| @@ -44,6 +44,10 @@ const char *ftrace_print_bitmask_seq(struct trace_seq *p, void *bitmask_ptr, | |||
| 44 | const char *ftrace_print_hex_seq(struct trace_seq *p, | 44 | const char *ftrace_print_hex_seq(struct trace_seq *p, |
| 45 | const unsigned char *buf, int len); | 45 | const unsigned char *buf, int len); |
| 46 | 46 | ||
| 47 | const char *ftrace_print_array_seq(struct trace_seq *p, | ||
| 48 | const void *buf, int buf_len, | ||
| 49 | size_t el_size); | ||
| 50 | |||
| 47 | struct trace_iterator; | 51 | struct trace_iterator; |
| 48 | struct trace_event; | 52 | struct trace_event; |
| 49 | 53 | ||
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) |
