kernel: Deprecate k_call_stacks_analyze() API

Deprecated k_call_stacks_analyze() API as it is only
dumping (printing) the statically defined main, idle,
work and ISR stacks.

Use k_thread_foreach() API which is a generic API
to iterate over threads.

Signed-off-by: Ramakrishna Pallala <ramakrishna.pallala@intel.com>
This commit is contained in:
Ramakrishna Pallala 2018-05-09 00:38:33 +05:30 committed by Anas Nashif
commit 149a3296ab

View file

@ -551,8 +551,10 @@ typedef void (*k_thread_user_cb_t)(const struct k_thread *thread,
* produce output.
*
* @return N/A
*
* @deprecated This API is deprecated. Use k_thread_foreach().
*/
extern void k_call_stacks_analyze(void);
__deprecated extern void k_call_stacks_analyze(void);
/**
* @brief Iterate over all the threads in the system.