shell: modules: kernel: print cpu_mask when available
Dump the `cpu_mask` of threads when available. Signed-off-by: Yong Cong Sin <ycsin@meta.com> Signed-off-by: Yong Cong Sin <yongcong.sin@gmail.com>
This commit is contained in:
parent
2e95ac8fbe
commit
143b14bb4f
1 changed files with 4 additions and 0 deletions
|
@ -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;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue