Zephyr API Documentation 4.0.0-rc2
A Scalable Open Source RTOS
|
Module for analyzing threads More...
Data Structures | |
struct | thread_analyzer_info |
Typedefs | |
typedef void(* | thread_analyzer_cb) (struct thread_analyzer_info *info) |
Thread analyzer stack size callback function. | |
Functions | |
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. | |
Module for analyzing threads
This module implements functions and the configuration that simplifies thread analysis.
typedef void(* thread_analyzer_cb) (struct thread_analyzer_info *info) |
#include <zephyr/debug/thread_analyzer.h>
Thread analyzer stack size callback function.
Callback function with thread analysis information.
info | Thread analysis information. |
void thread_analyzer_print | ( | unsigned int | cpu | ) |
#include <zephyr/debug/thread_analyzer.h>
Run the thread analyzer and print stack size statistics.
This function runs the thread analyzer and prints the output in standard form. In the special case when Kconfig option THREAD_ANALYZER_AUTO_SEPARATE_CORES is set, the function analyzes only the threads running on the specified cpu.
cpu | cpu to analyze, ignored if THREAD_ANALYZER_AUTO_SEPARATE_CORES=n |
void thread_analyzer_run | ( | thread_analyzer_cb | cb, |
unsigned int | cpu ) |
#include <zephyr/debug/thread_analyzer.h>
Run the thread analyzer and provide information to the callback.
This function analyzes the current state for all threads and calls a given callback on every thread found. In the special case when Kconfig option THREAD_ANALYZER_AUTO_SEPARATE_CORES is set, the function analyzes only the threads running on the specified cpu.
cb | The callback function handler |
cpu | cpu to analyze, ignored if THREAD_ANALYZER_AUTO_SEPARATE_CORES=n |