feat(ctrace): output DWT and PMU event counters - #2591
Merged
Conversation
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #2591 +/- ##
==========================================
+ Coverage 72.40% 72.54% +0.14%
==========================================
Files 185 185
Lines 30399 30559 +160
Branches 17928 17992 +64
==========================================
+ Hits 22011 22170 +159
- Misses 6079 6080 +1
Partials 2309 2309
Flags with carried forward coverage won't be shown. Click here to find out more.
🚀 New features to boost your workflow:
|
Test Results 4 files 4 suites 2s ⏱️ Results for commit 12af5c0. |
JonatanAntoni
approved these changes
Sep 3, 2026
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.
Summary
Add CSV, CTF, and Trace Compass output for architectural DWT event counters and PMU trace-on-overflow packets.
Changes
CPICNTEXCCNTSLEEPCNTLSUCNTFOLDCNTCYCCNTEvent0throughEvent7.SLEEPCNT, synchronization, and an overflow boundary.Output semantics
CSV retains one row per hardware packet and stores the original mask in
value.CTF expands the mask into one event per set bit. The event field contains the bit index (
0..5for DWT and0..7for PMU), allowing Trace Compass to provide named counter lanes.PMU event names remain generic until the programmable counter assignments can be resolved from trace-run configuration.
Validation
CtraceUnitTests: passedCtraceIntegTests: passedxmllintgit diff --check: cleanChecklist