ftrace: fix breakage in bin_fmt results
authorEric Anholt <eric@anholt.net>
Sun, 26 Oct 2008 22:26:57 +0000 (15:26 -0700)
committerIngo Molnar <mingo@elte.hu>
Wed, 5 Nov 2008 09:22:42 +0000 (10:22 +0100)
In 777e208d40d0953efc6fb4ab58590da3f7d8f02d we changed from outputting
field->cpu (a char) to iter->cpu (unsigned int), increasing the resulting
structure size by 3 bytes.

Signed-off-by: Eric Anholt <eric@anholt.net>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
kernel/trace/trace.c

index 9f3b478..974973e 100644 (file)
@@ -1755,7 +1755,7 @@ static enum print_line_t print_bin_fmt(struct trace_iterator *iter)
                return TRACE_TYPE_HANDLED;
 
        SEQ_PUT_FIELD_RET(s, entry->pid);
-       SEQ_PUT_FIELD_RET(s, iter->cpu);
+       SEQ_PUT_FIELD_RET(s, entry->cpu);
        SEQ_PUT_FIELD_RET(s, iter->ts);
 
        switch (entry->type) {