Paparazzi UAS  v5.10_stable-5-g83a0da5-dirty
Paparazzi is a free software Unmanned Aircraft System.
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Modules Pages
sys_mon_rtos.h File Reference

System monitoring for RTOS targets return cpu load, average exec time, ... More...

#include "core/sys_mon.h"
+ Include dependency graph for sys_mon_rtos.h:
+ This graph shows which files directly or indirectly include this file:

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
 

Detailed Description

System monitoring for RTOS targets return cpu load, average exec time, ...

Definition in file sys_mon_rtos.h.


Data Structure Documentation

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_free_memory heap free memory in bytes
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

Macro Definition Documentation

#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.

Function Documentation

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().

+ Here is the caller graph for this function:

Variable Documentation

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().