物联网操作系统AliOS Things 3.3 |
宏定义 | |
| #define | printk aos_debug_printf |
函数 | |
| void | aos_debug_backtrace_now (int32_t(*print_func)(const char *fmt,...)) |
| void | aos_debug_backtrace_task (char *taskname, int32_t(*print_func)(const char *fmt,...)) |
| void | aos_debug_mm_overview (int32_t(*print_func)(const char *fmt,...)) |
| void | aos_debug_task_overview (int32_t(*print_func)(const char *fmt,...)) |
| void | aos_debug_buf_queue_overview (int32_t(*print_func)(const char *fmt,...)) |
| void | aos_debug_queue_overview (int32_t(*print_func)(const char *fmt,...)) |
| void | aos_debug_sem_overview (int32_t(*print_func)(const char *fmt,...)) |
| void | aos_debug_mutex_overview (int32_t(*print_func)(const char *fmt,...)) |
| void | aos_debug_overview (int32_t(*print_func)(const char *fmt,...)) |
| void | aos_debug_task_cpu_usage_stats (void) |
| int32_t | aos_debug_task_cpu_usage_get (char *taskname) |
| uint32_t | aos_debug_total_cpu_usage_get (uint32_t cpuid) |
| void | aos_debug_total_cpu_usage_show (void) |
| void | aos_debug_fatal_error (kstat_t err, char *file, int32_t line) |
| int32_t | aos_debug_printf (const char *fmt,...) |
| void | aos_debug_init (void) |
| #define printk aos_debug_printf |
| void aos_debug_backtrace_now | ( | int32_t(*)(const char *fmt,...) | print_func | ) |
Show current contex backtrace
| [in] | print_func | function to output information, NULL for "printf" |
@retrun NULL
| void aos_debug_backtrace_task | ( | char * | taskname, |
| int32_t(*)(const char *fmt,...) | print_func | ||
| ) |
Show task backtrace
| [in] | taskname | the task name which is need to be got |
| [in] | print_func | function to output information, NULL for "printf" |
@retrun NULL
| void aos_debug_buf_queue_overview | ( | int32_t(*)(const char *fmt,...) | print_func | ) |
Show the overview of buf_queue
| [in] | print_func | function to output information, NULL for "printf" |
@retrun NULL
| void aos_debug_fatal_error | ( | kstat_t | err, |
| char * | file, | ||
| int32_t | line | ||
| ) |
system assert, called by k_err_proc
| [in] | err | the kernel err status |
| [in] | file | same as FILE |
| [in] | file | same as line |
| void aos_debug_init | ( | void | ) |
This function init debug module
| void aos_debug_mm_overview | ( | int32_t(*)(const char *fmt,...) | print_func | ) |
Show the overview of memory(heap and pool)
| [in] | print_func | function to output information, NULL for "printf" |
@retrun NULL
| void aos_debug_mutex_overview | ( | int32_t(*)(const char *fmt,...) | print_func | ) |
Show the overview of mutex
| [in] | print_func | function to output information, NULL for "printf" |
@retrun NULL
| void aos_debug_overview | ( | int32_t(*)(const char *fmt,...) | print_func | ) |
Show the overview of all(task/memory/bufqueue/queue/sem)
| [in] | print_func | function to output information, NULL for "printf" |
@retrun NULL
| int32_t aos_debug_printf | ( | const char * | fmt, |
| ... | |||
| ) |
This function support debug print same as printf
| void aos_debug_queue_overview | ( | int32_t(*)(const char *fmt,...) | print_func | ) |
Show the overview of queue
| [in] | print_func | function to output information, NULL for "printf" |
@retrun NULL
| void aos_debug_sem_overview | ( | int32_t(*)(const char *fmt,...) | print_func | ) |
Show the overview of sem
| [in] | print_func | function to output information, NULL for "printf" |
@retrun NULL
| int32_t aos_debug_task_cpu_usage_get | ( | char * | taskname | ) |
This function will get the cpuusage for the specified task
| [in] | taskname | the task name which is need to be got |
| void aos_debug_task_cpu_usage_stats | ( | void | ) |
This function will statistics the task run time in the previous statistics cycle
| void aos_debug_task_overview | ( | int32_t(*)(const char *fmt,...) | print_func | ) |
Show the overview of tasks
| [in] | print_func | function to output information, NULL for "printf" |
@retrun NULL
| uint32_t aos_debug_total_cpu_usage_get | ( | uint32_t | cpuid | ) |
This function will get the cpuusage for the specified CPU
| [in] | cpuid | the cpu id to obtain CPU utilization |
| void aos_debug_total_cpu_usage_show | ( | void | ) |
This function will show the statistics for CPU utilization