From 5f2e3998d1558d14be82f7e738b999507572b527 Mon Sep 17 00:00:00 2001 From: Pete Skeggs Date: Wed, 3 Mar 2021 14:36:55 -0800 Subject: [PATCH] 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 --- subsys/shell/modules/kernel_service.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/subsys/shell/modules/kernel_service.c b/subsys/shell/modules/kernel_service.c index 135de597852..8ffc59aea13 100644 --- a/subsys/shell/modules/kernel_service.c +++ b/subsys/shell/modules/kernel_service.c @@ -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;