Skip to content

Commit 0a73ea0

Browse files
committed
kernel: remove deprecate k_call_stacks_analyze
This API was deperecated and is not being used in the tree anymore, so remove it. Signed-off-by: Anas Nashif <[email protected]>
1 parent 02e9f9c commit 0a73ea0

File tree

2 files changed

+0
-38
lines changed

2 files changed

+0
-38
lines changed

include/kernel.h

Lines changed: 0 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -603,26 +603,6 @@ enum execution_context_types {
603603
typedef void (*k_thread_user_cb_t)(const struct k_thread *thread,
604604
void *user_data);
605605

606-
/**
607-
* @brief Analyze the main, idle, interrupt and system workqueue call stacks
608-
*
609-
* This routine calls @ref STACK_ANALYZE on the 4 call stacks declared and
610-
* maintained by the kernel. The sizes of those 4 call stacks are defined by:
611-
*
612-
* CONFIG_MAIN_STACK_SIZE
613-
* CONFIG_IDLE_STACK_SIZE
614-
* CONFIG_ISR_STACK_SIZE
615-
* CONFIG_SYSTEM_WORKQUEUE_STACK_SIZE
616-
*
617-
* @note CONFIG_INIT_STACKS and CONFIG_PRINTK must be set for this function to
618-
* produce output.
619-
*
620-
* @return N/A
621-
*
622-
* @deprecated This API is deprecated. Use k_thread_foreach().
623-
*/
624-
__deprecated extern void k_call_stacks_analyze(void);
625-
626606
/**
627607
* @brief Iterate over all the threads in the system.
628608
*

kernel/init.c

Lines changed: 0 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -130,24 +130,6 @@ K_THREAD_STACK_DEFINE(_interrupt_stack3, CONFIG_ISR_STACK_SIZE);
130130

131131
extern void idle(void *unused1, void *unused2, void *unused3);
132132

133-
/* LCOV_EXCL_START */
134-
#if defined(CONFIG_INIT_STACKS) && defined(CONFIG_PRINTK)
135-
extern K_THREAD_STACK_DEFINE(sys_work_q_stack,
136-
CONFIG_SYSTEM_WORKQUEUE_STACK_SIZE);
137-
138-
139-
void k_call_stacks_analyze(void)
140-
{
141-
printk("Kernel stacks:\n");
142-
STACK_ANALYZE("main ", _main_stack);
143-
STACK_ANALYZE("idle ", _idle_stack);
144-
STACK_ANALYZE("interrupt", _interrupt_stack);
145-
STACK_ANALYZE("workqueue", sys_work_q_stack);
146-
}
147-
#else
148-
void k_call_stacks_analyze(void) { }
149-
#endif
150-
/* LCOV_EXCL_STOP */
151133

152134
/**
153135
*

0 commit comments

Comments
 (0)