aboutsummaryrefslogtreecommitdiffstats
path: root/kernel/trace/trace_output.c
diff options
context:
space:
mode:
Diffstat (limited to 'kernel/trace/trace_output.c')
-rw-r--r--kernel/trace/trace_output.c15
1 files changed, 15 insertions, 0 deletions
diff --git a/kernel/trace/trace_output.c b/kernel/trace/trace_output.c
index 8e46b3323cdc..7c4a0ca650b5 100644
--- a/kernel/trace/trace_output.c
+++ b/kernel/trace/trace_output.c
@@ -355,6 +355,21 @@ ftrace_print_symbols_seq(struct trace_seq *p, unsigned long val,
355} 355}
356EXPORT_SYMBOL(ftrace_print_symbols_seq); 356EXPORT_SYMBOL(ftrace_print_symbols_seq);
357 357
358const char *
359ftrace_print_hex_seq(struct trace_seq *p, const unsigned char *buf, int buf_len)
360{
361 int i;
362 const char *ret = p->buffer + p->len;
363
364 for (i = 0; i < buf_len; i++)
365 trace_seq_printf(p, "%s%2.2x", i == 0 ? "" : " ", buf[i]);
366
367 trace_seq_putc(p, 0);
368
369 return ret;
370}
371EXPORT_SYMBOL(ftrace_print_hex_seq);
372
358#ifdef CONFIG_KRETPROBES 373#ifdef CONFIG_KRETPROBES
359static inline const char *kretprobed(const char *name) 374static inline const char *kretprobed(const char *name)
360{ 375{