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:
Yong Cong Sin 2024-08-23 15:57:38 +08:00 committed by Fabio Baltieri
commit 143b14bb4f

View file

@ -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;