Paparazzi UAS
v5.14.0_stable-0-g3f680d1
Paparazzi is a free software Unmanned Aircraft System.
|
System monitoring for RTOS targets return cpu load, average exec time, ... More...
#include "core/sys_mon.h"
Go to the source code of this file.
Data Structures | |
struct | rtos_monitoring |
Macros | |
#define | RTOS_MON_MAX_THREADS 20 |
#define | RTOS_MON_NAME_LEN 5 |
#define | RTOS_MON_THREAD_NAMES (RTOS_MON_MAX_THREADS * RTOS_MON_NAME_LEN) |
Functions | |
void | rtos_mon_init_arch (void) |
void | rtos_mon_periodic_arch (void) |
Variables | |
struct rtos_monitoring | rtos_mon |
System monitoring for RTOS targets return cpu load, average exec time, ...
Definition in file sys_mon_rtos.h.
struct rtos_monitoring |
Definition at line 46 of file sys_mon_rtos.h.
Data Fields | ||
---|---|---|
uint32_t | core_free_memory | core free memory in bytes |
uint8_t | cpu_load | global CPU/MCU load in % |
float | cpu_time | |
uint32_t | heap_fragments | Number of fragments in the heap. |
uint32_t | heap_free_memory | Total fragmented free memory in the heap. |
uint32_t | heap_largest | Largest free block in the heap. |
uint8_t | thread_counter | number of threads |
uint16_t | thread_free_stack[RTOS_MON_MAX_THREADS] | individual thread free stack in bytes |
uint16_t | thread_load[RTOS_MON_MAX_THREADS] | individual thread load in centi-percent (10*%) |
uint8_t | thread_name_idx | length of the string in thread_names buffer |
char | thread_names[RTOS_MON_THREAD_NAMES+1] | string of thread names / identifiers |
#define RTOS_MON_MAX_THREADS 20 |
Definition at line 36 of file sys_mon_rtos.h.
Referenced by rtos_mon_periodic_arch().
#define RTOS_MON_NAME_LEN 5 |
Definition at line 40 of file sys_mon_rtos.h.
Referenced by rtos_mon_periodic_arch().
#define RTOS_MON_THREAD_NAMES (RTOS_MON_MAX_THREADS * RTOS_MON_NAME_LEN) |
Definition at line 43 of file sys_mon_rtos.h.
void rtos_mon_init_arch | ( | void | ) |
Definition at line 39 of file rtos_mon_arch.c.
References idle_counter, and last_idle_counter.
Referenced by init_sysmon().
void rtos_mon_periodic_arch | ( | void | ) |
Definition at line 46 of file rtos_mon_arch.c.
References CH_CFG_ST_FREQUENCY, rtos_monitoring::core_free_memory, rtos_monitoring::cpu_load, get_stack_free(), rtos_monitoring::heap_fragments, rtos_monitoring::heap_free_memory, rtos_monitoring::heap_largest, idle_counter, last_idle_counter, rtos_mon, RTOS_MON_MAX_THREADS, RTOS_MON_NAME_LEN, rtos_monitoring::thread_counter, rtos_monitoring::thread_free_stack, rtos_monitoring::thread_load, rtos_monitoring::thread_name_idx, rtos_monitoring::thread_names, and thread_p_time.
Referenced by periodic_report_sysmon().
struct rtos_monitoring rtos_mon |
Definition at line 30 of file rtos_mon.c.
Referenced by init_sysmon(), periodic_report_sysmon(), and rtos_mon_periodic_arch().