-
Notifications
You must be signed in to change notification settings - Fork 566
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
i#6466: Fix raw2trace missing encoding error for filtered traces (#6465)
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 encoding for 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
- Loading branch information
1 parent
63c701b
commit 40e2edb
Showing
2 changed files
with
162 additions
and
16 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters