schedule: dp: Set thread name with component ID#10847
Open
jsarha wants to merge 1 commit into
Open
Conversation
Contributor
There was a problem hiding this comment.
Pull request overview
This PR improves debuggability of the Zephyr DP scheduler by assigning human-readable names to DP threads that include the component ID (hex), making them easier to identify in thread listings and debug tooling.
Changes:
- Added a helper to build and set a DP thread name based on the component ID.
- Set the thread name immediately after
k_thread_create()in DP task initialization. - Added an extra header include to support string formatting.
Comment on lines
+414
to
+421
| static void scheduler_dp_thread_name_set(k_tid_t thread_id, struct processing_module *mod) | ||
| { | ||
| char name[CONFIG_THREAD_MAX_NAME_LEN]; | ||
|
|
||
| snprintf(name, sizeof(name), "DP comp id %#x", mod->dev->ipc_config.id); | ||
|
|
||
| k_thread_name_set(thread_id, name); | ||
| } |
lyakh
approved these changes
Jun 5, 2026
| { | ||
| char name[CONFIG_THREAD_MAX_NAME_LEN]; | ||
|
|
||
| snprintf(name, sizeof(name), "DP comp id %#x", mod->dev->ipc_config.id); |
Collaborator
There was a problem hiding this comment.
old-school dislike for spaces in names kicks in ;-) Maybe just something like "DP:%#x"?
Name DP threads using k_thread_name_set() with the component ID in hex. This makes it easier to identify DP threads in debug tools and Zephyr shell thread listings. Signed-off-by: Jyri Sarha <jyri.sarha@linux.intel.com>
5d8a142 to
c9435a6
Compare
kv2019i
approved these changes
Jun 5, 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.
Name DP threads using k_thread_name_set() with the component ID in hex. This makes it easier to identify DP threads in debug tools and Zephyr shell thread listings.