Searched hist:"7 c9b64ade9d1d3c69250ef1684db9c080a7b7092" (Results 1 – 1 of 1) sorted by relevance
/qemu/scripts/oss-fuzz/ |
H A D | reorder_fuzzer_qtest_trace.py | 7c9b64ade9d1d3c69250ef1684db9c080a7b7092 Fri Oct 23 15:07:39 UTC 2020 Alexander Bulekov <alxndr@bu.edu> scripts/oss-fuzz: Add script to reorder a generic-fuzzer trace
The generic-fuzzer uses hooks to fulfill DMA requests just-in-time. This means that if we try to use QTEST_LOG=1 to build a reproducer, the DMA writes will be logged _after_ the in/out/read/write that triggered the DMA read. To work work around this, the generic-fuzzer annotates these just-in time DMA fulfilments with a tag that we can use to discern them. This script simply iterates over a raw qtest trace (including log messages, errors, timestamps etc), filters it and re-orders it so that DMA fulfillments are placed directly _before_ the qtest command that will cause the DMA access.
Signed-off-by: Alexander Bulekov <alxndr@bu.edu> Reviewed-by: Darren Kenny <darren.kenny@oracle.com> Message-Id: <20201023150746.107063-11-alxndr@bu.edu> Signed-off-by: Thomas Huth <thuth@redhat.com>
|