Zephyr API 3.6.99
Loading...
Searching...
No Matches
thread_analyzer.h File Reference
#include <stddef.h>
#include <zephyr/kernel/thread.h>

Go to the source code of this file.

Data Structures

struct  thread_analyzer_info
 

Macros

#define THREAD_ANALYZE_STACK_SAFETY_NO_ISSUES   0
 Stack safety issue codes.
 
#define THREAD_ANALYZE_STACK_SAFETY_THRESHOLD_EXCEEDED   1
 
#define THREAD_ANALYZE_STACK_SAFETY_AT_LIMIT   2
 
#define THREAD_ANALYZE_STACK_SAFETY_OVERFLOW   3
 

Typedefs

typedef void(* thread_analyzer_stack_safety_handler) (struct k_thread *thread, size_t unused_space, uint32_t *stack_issue)
 Thread analyzer stack safety callback function.
 
typedef void(* thread_analyzer_cb) (struct thread_analyzer_info *info)
 Thread analyzer stack size callback function.
 

Functions

void thread_analyzer_stack_safety_handler_set (thread_analyzer_stack_safety_handler handler)
 Change the thread analyzer stack safety callback function.
 
void thread_analyzer_run (thread_analyzer_cb cb, unsigned int cpu)
 Run the thread analyzer and provide information to the callback.
 
void thread_analyzer_print (unsigned int cpu)
 Run the thread analyzer and print stack size statistics.