diff options
Diffstat (limited to 'kernel/trace/trace_output.h')
-rw-r--r-- | kernel/trace/trace_output.h | 16 |
1 files changed, 5 insertions, 11 deletions
diff --git a/kernel/trace/trace_output.h b/kernel/trace/trace_output.h index 80b25b585a70..8ef2c40efb3c 100644 --- a/kernel/trace/trace_output.h +++ b/kernel/trace/trace_output.h | |||
@@ -35,17 +35,11 @@ trace_print_lat_fmt(struct trace_seq *s, struct trace_entry *entry); | |||
35 | extern int __unregister_ftrace_event(struct trace_event *event); | 35 | extern int __unregister_ftrace_event(struct trace_event *event); |
36 | extern struct rw_semaphore trace_event_sem; | 36 | extern struct rw_semaphore trace_event_sem; |
37 | 37 | ||
38 | #define SEQ_PUT_FIELD_RET(s, x) \ | 38 | #define SEQ_PUT_FIELD(s, x) \ |
39 | do { \ | 39 | trace_seq_putmem(s, &(x), sizeof(x)) |
40 | if (!trace_seq_putmem(s, &(x), sizeof(x))) \ | 40 | |
41 | return TRACE_TYPE_PARTIAL_LINE; \ | 41 | #define SEQ_PUT_HEX_FIELD(s, x) \ |
42 | } while (0) | 42 | trace_seq_putmem_hex(s, &(x), sizeof(x)) |
43 | |||
44 | #define SEQ_PUT_HEX_FIELD_RET(s, x) \ | ||
45 | do { \ | ||
46 | if (!trace_seq_putmem_hex(s, &(x), sizeof(x))) \ | ||
47 | return TRACE_TYPE_PARTIAL_LINE; \ | ||
48 | } while (0) | ||
49 | 43 | ||
50 | #endif | 44 | #endif |
51 | 45 | ||