Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

record_filter flips trace_entry_t records #6798

Open
edeiana opened this issue May 6, 2024 · 0 comments
Open

record_filter flips trace_entry_t records #6798

edeiana opened this issue May 6, 2024 · 0 comments

Comments

@edeiana
Copy link
Contributor

edeiana commented May 6, 2024

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:

drrun -t drcachesim -simulator_type record_filter -indir trace_in -outdir trace_out

Then, convert the input trace and output trace to human-readable format (https://dynamorio.org/page_debug_memtrace.html#autotoc_md136):

zcat path/to/trace.memtrace.zip | od -A x -t x2 -w12 | awk '{printf "%s | %s %s %s%s%s%s\n", $1, $2, $3, $7, $6, $5, $4}' &> hex_trace.txt

And inspect the hex_trace.txt files by generating a diff.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant