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

i#6940: Do not always load binaries in view tool #6941

Merged
merged 2 commits into from
Aug 27, 2024

Conversation

derekbruening
Copy link
Contributor

@derekbruening derekbruening commented Aug 27, 2024

The view tool was blindly loading binaries even for traces that have
encodings. This leads to fatal errors when binaries have changed, even
when the change has no impact on viewing a trace. We fix that here by
reading the filtype at init time.

Work around the #6942 crash by always setting the disasm syntax to DR style
for REGDEPS traces.

This change actually sets the disasm syntax to AT&T by default if no module
path is passed in; which is what it is supposed to do: but it was not doing
that and this breaks 3 tests comparing DR-style output. We put in a quick
fix to request DR style for those tests.

Tested locally where the view tool asserts without this fix.

Issue: #6940, #6942
Fixes #6940

The view tool was blindly loading binaries even for traces that have
encodings.  This leads to fatal errors when binaries have changed,
even when the change has no impact on viewing a trace.  We fix that
here by reading the filtype at init time.

Tested locally where the view tool asserts without this fix.

Fixes #6940
style for REGDEPS traces.

This change actually sets the disasm syntax to AT&T by default if no
module path is passed in; which is what it is supposed to do: but it
was not doing that and this breaks 3 tests comparing DR-style output.
We put in a quick fix to request DR style for those tests.

Issue: #6942
@derekbruening
Copy link
Contributor Author

Hit the sim.invariants #6733 on a64; re-running

clients/drcachesim/tools/view.cpp Show resolved Hide resolved
@derekbruening derekbruening merged commit 2fe13f2 into master Aug 27, 2024
17 checks passed
@derekbruening derekbruening deleted the i6940-view-no-binaries branch August 27, 2024 21:30
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

Successfully merging this pull request may close these issues.

ASSERT in drmemtrace view tool when drmemtrace lib changed
2 participants