When running record_filter without any filter, the resulting trace file has some trace_entry_t records flipped, while we expect them to be the same.
Specifically, TRACE_TYPE_ENCODING and TRACE_TYPE_MARKER.TRACE_MARKER_TYPE_BRANCH_TARGET are flipped in the output trace.
To reproduce, run the record_filter without any filter:
When running record_filter without any filter, the resulting trace file has some trace_entry_t records flipped, while we expect them to be the same. Specifically, TRACE_TYPE_ENCODING and TRACE_TYPE_MARKER.TRACE_MARKER_TYPE_BRANCH_TARGET are flipped in the output trace.
To reproduce, run the record_filter without any filter:
Then, convert the input trace and output trace to human-readable format (https://dynamorio.org/page_debug_memtrace.html#autotoc_md136):
And inspect the
hex_trace.txt
files by generating a diff.