|
Paparazzi UAS
v5.18.0_stable
Paparazzi is a free software Unmanned Aircraft System.
|
Go to the documentation of this file.
29 #ifndef SYS_MON_RTOS_H
30 #define SYS_MON_RTOS_H
36 #define RTOS_MON_MAX_THREADS 20
40 #define RTOS_MON_NAME_LEN 5
43 #define RTOS_MON_THREAD_NAMES (RTOS_MON_MAX_THREADS * RTOS_MON_NAME_LEN)
uint8_t thread_counter
number of threads
uint16_t thread_load[RTOS_MON_MAX_THREADS]
individual thread load in centi-percent (10*%)
uint32_t heap_largest
Largest free block in the heap.
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_THREAD_NAMES
void rtos_mon_init_arch(void)
uint16_t thread_free_stack[RTOS_MON_MAX_THREADS]
individual thread free stack in bytes
uint32_t heap_free_memory
Total fragmented free memory in the heap.
void rtos_mon_periodic_arch(void)
uint32_t core_free_memory
core free memory in bytes
uint32_t heap_fragments
Number of fragments in the heap.
struct rtos_monitoring rtos_mon
uint8_t cpu_load
global CPU/MCU load in %
#define RTOS_MON_MAX_THREADS