diff options
author | Steven Rostedt <srostedt@redhat.com> | 2010-06-18 15:45:00 -0400 |
---|---|---|
committer | Steven Rostedt <rostedt@goodmis.org> | 2010-06-18 15:45:00 -0400 |
commit | c63d1ad98b9e61ca48d58eba442eaa645859249c (patch) | |
tree | fc4b08c00526e85b1a59764c81496d0b026cec81 | |
parent | 5e5823cbc8268f57908fba5b15b34568f19a058e (diff) |
trace-cmd: Fix split record size with large events
Large events store the size in the array[0] portion of the header
of the record. This size is the actual size and not a division.
Signed-off-by: Steven Rostedt <rostedt@goodmis.org>
-rw-r--r-- | trace-split.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/trace-split.c b/trace-split.c index 917cddf..d137255 100644 --- a/trace-split.c +++ b/trace-split.c | |||
@@ -138,8 +138,7 @@ static int write_record(struct tracecmd_input *handle, | |||
138 | index = 4; | 138 | index = 4; |
139 | 139 | ||
140 | if (!len) { | 140 | if (!len) { |
141 | len = record->size / 4; | 141 | len = record->size + 4; |
142 | len += 4; | ||
143 | *(unsigned *)ptr = __data2host4(pevent, len); | 142 | *(unsigned *)ptr = __data2host4(pevent, len); |
144 | ptr += 4; | 143 | ptr += 4; |
145 | index += 4; | 144 | index += 4; |