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#6466: Fix raw2trace missing encoding error for filtered traces #6465

Merged
merged 9 commits into from
Nov 20, 2023

Conversation

abhinav92003
Copy link
Contributor

@abhinav92003 abhinav92003 commented Nov 19, 2023

Fixes a corner case for filtered traces in the raw2trace delayed branch logic
that affects how encodings are written.

Adds an increment missing for zero sized pc entries for the ordinal into the
decode_pcs array. This caused the wrong decode_pc to be recorded as
emitted, which caused the "missing encoding" error when that decode_pc
was not really emitted later.

This affects CTI that read memory and may generate in some cases only a
zero-sized PC entry (if the instr is i-filtered out but its memref isn't).

Adds a raw2trace_unit_test for filtered traces that fails without this fix.

Fixes: #6466

Fixes a corner case for filtered traces in the raw2trace delayed branch
logic that affected how encodings were written. Adds a missing increment
of the ordinal into the decode_pcs array for zero sized instr entries,
since the decode_pcs include such instrs too.

Adds a raw2trace_unit_test for filtered traces.
@abhinav92003 abhinav92003 changed the title Fix raw2trace missing encoding error for filtered traces i#6466: Fix raw2trace missing encoding error for filtered traces Nov 19, 2023
@abhinav92003
Copy link
Contributor Author

x86-32 failures are #6417.

@abhinav92003
Copy link
Contributor Author

x86-32 failures are #6417.

@abhinav92003 abhinav92003 merged commit 40e2edb into master Nov 20, 2023
14 of 15 checks passed
@abhinav92003 abhinav92003 deleted the iX-raw2trace-ifiltered branch November 20, 2023 15:12
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.

raw2trace failing with "missing encoding" on filtered traces
2 participants