Skip to content

schedule: dp: Set thread name with component ID#10847

Merged
lgirdwood merged 1 commit into
thesofproject:mainfrom
jsarha:set_dp_thread_name
Jun 8, 2026
Merged

schedule: dp: Set thread name with component ID#10847
lgirdwood merged 1 commit into
thesofproject:mainfrom
jsarha:set_dp_thread_name

Conversation

@jsarha

@jsarha jsarha commented Jun 4, 2026

Copy link
Copy Markdown
Contributor

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.

Copilot AI review requested due to automatic review settings June 4, 2026 22:16

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

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 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 thread src/schedule/zephyr_dp_schedule_application.c
{
char name[CONFIG_THREAD_MAX_NAME_LEN];

snprintf(name, sizeof(name), "DP comp id %#x", mod->dev->ipc_config.id);

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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>
@jsarha jsarha force-pushed the set_dp_thread_name branch from 5d8a142 to c9435a6 Compare June 5, 2026 09:21
@lgirdwood lgirdwood merged commit 0f9fa75 into thesofproject:main Jun 8, 2026
45 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants