diff options
author | Jordan Niethe <jniethe5@gmail.com> | 2019-04-02 10:43:16 +1100 |
---|---|---|
committer | Stewart Smith <stewart@linux.ibm.com> | 2019-05-20 14:20:29 +1000 |
commit | d56b151d7f87d18f7b6333d8ec4d5c5cf04b538c (patch) | |
tree | 368904443c9be1a1e59ae1afada628e63db883e9 /core/trace.c | |
parent | 000f9331a6ebcca38df689995ef0d9b70249c707 (diff) | |
download | skiboot-d56b151d7f87d18f7b6333d8ec4d5c5cf04b538c.zip skiboot-d56b151d7f87d18f7b6333d8ec4d5c5cf04b538c.tar.gz skiboot-d56b151d7f87d18f7b6333d8ec4d5c5cf04b538c.tar.bz2 |
core/test/run-trace: Stop using indeterminate fields
The parallel_test uses the cpu field of the trace_hdr struct. However it
is expected that some of the trace entries that are gotten will be
trace_overflow structs. This type of entry leaves the cpu field
indeterminate when it is interpreted as a trace_hdr struct. This means
it possible tests will fail when they try to use the cpu field of an
overflow struct, as the cpu field could hold anything.
Move the checks that use the cpu field until after it has been
determined the trace entry is an overflow type.
Signed-off-by: Jordan Niethe <jniethe5@gmail.com>
Signed-off-by: Stewart Smith <stewart@linux.ibm.com>
Diffstat (limited to 'core/trace.c')
0 files changed, 0 insertions, 0 deletions