-
Notifications
You must be signed in to change notification settings - Fork 1.4k
tests: nrf5340_audio: Added high CPU load print #26101
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
base: main
Are you sure you want to change the base?
tests: nrf5340_audio: Added high CPU load print #26101
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pull request overview
This PR adds high CPU load monitoring to the nRF5340 Audio application by integrating Zephyr's CPU load subsystem. When CPU usage exceeds 98%, a callback prints a warning message using printk instead of the logging subsystem to ensure the message is displayed even when high-priority threads monopolize CPU time.
- Added CPU load monitoring with a 98% threshold and callback handler
- Configured CPU load subsystem with periodic logging every 5 seconds
- Updated release notes to document the new high CPU load monitoring feature
Reviewed changes
Copilot reviewed 3 out of 3 changed files in this pull request and generated 2 comments.
| File | Description |
|---|---|
| applications/nrf5340_audio/src/utils/peripherals.c | Implements CPU load callback that prints warning when load exceeds 98% |
| applications/nrf5340_audio/prj.conf | Enables CPU load subsystem and configures periodic logging |
| doc/nrf/releases_and_maturity/releases/release-notes-changelog.rst | Documents the new high CPU load callback feature |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
CI InformationTo view the history of this post, click the 'edited' button above Inputs:Sources:sdk-nrf: PR head: a974eed5bb16cc462d1000cb6eb265bc404d31bb more detailssdk-nrf:
Github labels
List of changed files detected by CI (3)Outputs:ToolchainVersion: 43683a87ea Test Spec & Results: ✅ Success; ❌ Failure; 🟠 Queued; 🟡 Progress; ◻️ Skipped;
|
|
You can find the documentation preview for this PR here. Preview links for modified nRF Connect SDK documents: |
| * Added: | ||
| * High CPU load callback using the Zephyr CPU load subsystem. | ||
| The callback uses a printk, as the logging subsystem will be scheduled out if higher priority threads take all CPU time. | ||
| This will make it easier to debug high CPU load situations in the application. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
| * Added: | |
| * High CPU load callback using the Zephyr CPU load subsystem. | |
| The callback uses a printk, as the logging subsystem will be scheduled out if higher priority threads take all CPU time. | |
| This will make it easier to debug high CPU load situations in the application. | |
| * Added high CPU load callback using the Zephyr CPU load subsystem. | |
| The callback uses a :c:func:`printk` function, as the logging subsystem is scheduled out if higher priority threads take all CPU time. | |
| This makes debugging high CPU load situations easier in the application. |
e71f64e to
e7b8f51
Compare
e7b8f51 to
08fa00d
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pull request overview
Copilot reviewed 3 out of 3 changed files in this pull request and generated 2 comments.
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
doc/nrf/releases_and_maturity/releases/release-notes-changelog.rst
Outdated
Show resolved
Hide resolved
doc/nrf/releases_and_maturity/releases/release-notes-changelog.rst
Outdated
Show resolved
Hide resolved
peknis
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ok after fixing the issues pointed out by Copilot.
Using the high CPU load monitoring feature, print a message using printk when the CPU load exceeds a defined threshold. OCT-3414 Signed-off-by: Kristoffer Skøien <[email protected]>
08fa00d to
a974eed
Compare
Using the high CPU load monitoring feature, print a message using printk when the CPU load exceeds a defined threshold.
OCT-3414