shell: kernel: also print the thread entry pointer

Sometimes it is hard to tell which instance of a thread is which
in the printed list, based solely on the name (if present) and
the k_thread pointer, so also print the thread entry fn pointer.

Signed-off-by: Pete Skeggs <peter.skeggs@nordicsemi.no>
This commit is contained in:
Pete Skeggs 2021-03-03 14:36:55 -08:00 committed by Carles Cufí
commit 5f2e3998d1

View file

@ -78,7 +78,8 @@ static void shell_tdata_dump(const struct k_thread *cthread, void *user_data)
thread->base.user_options,
thread->base.prio,
thread->base.timeout.dticks);
shell_print(shell, "\tstate: %s", k_thread_state_str(thread));
shell_print(shell, "\tstate: %s, entry: %p", k_thread_state_str(thread),
thread->entry);
#ifdef CONFIG_THREAD_RUNTIME_STATS
ret = 0;