aboutsummaryrefslogtreecommitdiffstats
path: root/kernel/trace/trace_output.h
diff options
context:
space:
mode:
authorLai Jiangshan <laijs@cn.fujitsu.com>2009-01-15 05:05:40 -0500
committerIngo Molnar <mingo@elte.hu>2009-01-16 06:15:20 -0500
commit6c1a99afbda99cd8d8c69d756387041567a13d87 (patch)
tree8f8c9d5cb072bb6d9f83f82c81cf81c123579863 /kernel/trace/trace_output.h
parent55922173f1f63903b6de03711ab8ff980cbe58d2 (diff)
ftrace: fix trace_output
Impact: fix bug for handling partial line trace_seq_printf(), seq_print_userip_objs(), ... return 0 -- partial line was written other(>0) -- success duplicate output is also removed in trace_print_raw(). Signed-off-by: Lai Jiangshan <laijs@cn.fujitsu.com> Signed-off-by: Steven Rostedt <srostedt@redhat.com> Signed-off-by: Ingo Molnar <mingo@elte.hu>
Diffstat (limited to 'kernel/trace/trace_output.h')
-rw-r--r--kernel/trace/trace_output.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/kernel/trace/trace_output.h b/kernel/trace/trace_output.h
index ecab4ea4a4fd..b2c14615e0cd 100644
--- a/kernel/trace/trace_output.h
+++ b/kernel/trace/trace_output.h
@@ -45,14 +45,14 @@ trace_nop_print(struct trace_seq *s, struct trace_entry *entry, int flags);
45#define SEQ_PUT_FIELD_RET(s, x) \ 45#define SEQ_PUT_FIELD_RET(s, x) \
46do { \ 46do { \
47 if (!trace_seq_putmem(s, &(x), sizeof(x))) \ 47 if (!trace_seq_putmem(s, &(x), sizeof(x))) \
48 return 0; \ 48 return TRACE_TYPE_PARTIAL_LINE; \
49} while (0) 49} while (0)
50 50
51#define SEQ_PUT_HEX_FIELD_RET(s, x) \ 51#define SEQ_PUT_HEX_FIELD_RET(s, x) \
52do { \ 52do { \
53 BUILD_BUG_ON(sizeof(x) > MAX_MEMHEX_BYTES); \ 53 BUILD_BUG_ON(sizeof(x) > MAX_MEMHEX_BYTES); \
54 if (!trace_seq_putmem_hex(s, &(x), sizeof(x))) \ 54 if (!trace_seq_putmem_hex(s, &(x), sizeof(x))) \
55 return 0; \ 55 return TRACE_TYPE_PARTIAL_LINE; \
56} while (0) 56} while (0)
57 57
58#endif 58#endif