aboutsummaryrefslogtreecommitdiffstats
path: root/kernel/trace/trace_output.h
diff options
context:
space:
mode:
Diffstat (limited to 'kernel/trace/trace_output.h')
-rw-r--r--kernel/trace/trace_output.h16
1 files changed, 16 insertions, 0 deletions
diff --git a/kernel/trace/trace_output.h b/kernel/trace/trace_output.h
index 1fcc76e1378e..ecab4ea4a4fd 100644
--- a/kernel/trace/trace_output.h
+++ b/kernel/trace/trace_output.h
@@ -36,8 +36,24 @@ struct trace_event *ftrace_find_event(int type);
36int register_ftrace_event(struct trace_event *event); 36int register_ftrace_event(struct trace_event *event);
37int unregister_ftrace_event(struct trace_event *event); 37int unregister_ftrace_event(struct trace_event *event);
38 38
39int
40trace_nop_print(struct trace_seq *s, struct trace_entry *entry, int flags);
41
39#define MAX_MEMHEX_BYTES 8 42#define MAX_MEMHEX_BYTES 8
40#define HEX_CHARS (MAX_MEMHEX_BYTES*2 + 1) 43#define HEX_CHARS (MAX_MEMHEX_BYTES*2 + 1)
41 44
45#define SEQ_PUT_FIELD_RET(s, x) \
46do { \
47 if (!trace_seq_putmem(s, &(x), sizeof(x))) \
48 return 0; \
49} while (0)
50
51#define SEQ_PUT_HEX_FIELD_RET(s, x) \
52do { \
53 BUILD_BUG_ON(sizeof(x) > MAX_MEMHEX_BYTES); \
54 if (!trace_seq_putmem_hex(s, &(x), sizeof(x))) \
55 return 0; \
56} while (0)
57
42#endif 58#endif
43 59