diff options
author | Lai Jiangshan <laijs@cn.fujitsu.com> | 2009-01-15 18:05:40 +0800 |
---|---|---|
committer | Ingo Molnar <mingo@elte.hu> | 2009-01-16 12:15:20 +0100 |
commit | 6c1a99afbda99cd8d8c69d756387041567a13d87 (patch) | |
tree | 8f8c9d5cb072bb6d9f83f82c81cf81c123579863 /kernel/trace/trace_output.h | |
parent | 55922173f1f63903b6de03711ab8ff980cbe58d2 (diff) | |
download | lwn-6c1a99afbda99cd8d8c69d756387041567a13d87.tar.gz lwn-6c1a99afbda99cd8d8c69d756387041567a13d87.zip |
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.h | 4 |
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); #define SEQ_PUT_FIELD_RET(s, x) \ do { \ if (!trace_seq_putmem(s, &(x), sizeof(x))) \ - return 0; \ + return TRACE_TYPE_PARTIAL_LINE; \ } while (0) #define SEQ_PUT_HEX_FIELD_RET(s, x) \ do { \ BUILD_BUG_ON(sizeof(x) > MAX_MEMHEX_BYTES); \ if (!trace_seq_putmem_hex(s, &(x), sizeof(x))) \ - return 0; \ + return TRACE_TYPE_PARTIAL_LINE; \ } while (0) #endif |