Skip to content

Commit

Permalink
shell: modules: kernel: print cpu_mask when available
Browse files Browse the repository at this point in the history
Dump the `cpu_mask` of threads when available.

Signed-off-by: Yong Cong Sin <[email protected]>
Signed-off-by: Yong Cong Sin <[email protected]>
  • Loading branch information
ycsin authored and fabiobaltieri committed Aug 23, 2024
1 parent 2e95ac8 commit 143b14b
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions subsys/shell/modules/kernel_service.c
Original file line number Diff line number Diff line change
Expand Up @@ -127,6 +127,10 @@ static void shell_tdata_dump(const struct k_thread *cthread, void *user_data)
k_thread_state_str(thread, state_str, sizeof(state_str)),
thread->entry.pEntry);

#ifdef CONFIG_SCHED_CPU_MASK
shell_print(sh, "\tcpu_mask: 0x%x", thread->base.cpu_mask);
#endif /* CONFIG_SCHED_CPU_MASK */

#ifdef CONFIG_THREAD_RUNTIME_STATS
ret = 0;

Expand Down

0 comments on commit 143b14b

Please sign in to comment.