tests/intel/xe_eudebug_online: Fix attention double-counting - #16
Open
smithab-intc wants to merge 1 commit into
Open
tests/intel/xe_eudebug_online: Fix attention double-counting#16smithab-intc wants to merge 1 commit into
smithab-intc wants to merge 1 commit into
Conversation
Fixes inflated EU thread stop counts caused by level-triggered attention events re-reporting already-stopped threads across consecutive events. - Add eu_attention_bitmask_is_subset helper to check if one attention bitmask is fully contained within another - Track the previous attention event (prev_ea) during the session check loop - Count only newly set bits (via XOR) when a consecutive attention event for the same context is a superset of the previous, avoiding double-counting re-reported threads - Fall back to counting all bits when the new event is not a superset, treating it as a distinct stop set Suggested-by: Maciej Patelczyk maciej.patelczyk@intel.com Signed-off-by: Jakub Legowski jakub.legowski@intel.com Signed-off-by: Smitha Balasubramanyam <smitha.balasubramanyam@intel.com>
This file contains hidden or 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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Fixes inflated EU thread stop counts caused by level-triggered attention events re-reporting already-stopped threads across consecutive events.
Suggested-by: Maciej Patelczyk maciej.patelczyk@intel.com
Signed-off-by: Jakub Legowski jakub.legowski@intel.com