|
Paparazzi UAS v7.1_unstable
Paparazzi is a free software Unmanned Aircraft System.
|
Go to the source code of this file.
Data Structures | |
| struct | rtos_mon_cpu_window |
Functions | |
| static uint16_t | get_stack_free (const thread_t *tp) |
| static rttime_t | get_thread_delta (const thread_t *tp, rttime_t current_time) |
| static uint16_t | get_thread_load_x10 (rttime_t thread_ticks, rttime_t total_ticks) |
| static uint8_t | get_cpu_load_percent (rttime_t idle_ticks, rttime_t total_ticks) |
| void | rtos_mon_init_arch (void) |
| void | rtos_mon_periodic_arch (void) |
Variables | |
| static struct rtos_mon_cpu_window | cpu_window |
Definition in file rtos_mon_arch.c.
| struct rtos_mon_cpu_window |
Definition at line 36 of file rtos_mon_arch.c.
| Data Fields | ||
|---|---|---|
| rttime_t | prev_isr_time | Previous cumulative ISR counter. |
| uint8_t | prev_stats_valid | True after the first full sampling pass. |
| uint8_t | prev_thread_count | Number of valid entries in previous arrays. |
| thread_t * | prev_thread_ref[RTOS_MON_MAX_THREADS] | Previous thread identities for delta lookup. |
| rttime_t | prev_thread_time[RTOS_MON_MAX_THREADS] | Previous cumulative thread counters. |
| thread_t * | thread_ref[RTOS_MON_MAX_THREADS] | Current thread identities for matching samples. |
| rttime_t | thread_time[RTOS_MON_MAX_THREADS] | Current cumulative thread counters. |
|
static |
Definition at line 294 of file rtos_mon_arch.c.
Referenced by rtos_mon_periodic_arch().
|
static |
Definition at line 254 of file rtos_mon_arch.c.
Referenced by rtos_mon_periodic_arch().
|
static |
Definition at line 266 of file rtos_mon_arch.c.
References cpu_window.
Referenced by rtos_mon_periodic_arch().
|
static |
Definition at line 283 of file rtos_mon_arch.c.
Referenced by rtos_mon_periodic_arch().
| void rtos_mon_init_arch | ( | void | ) |
Definition at line 175 of file rtos_mon_arch.c.
References shell_add_entry().
Referenced by init_sysmon().
| void rtos_mon_periodic_arch | ( | void | ) |
Definition at line 184 of file rtos_mon_arch.c.
References cpu_window, get_cpu_load_percent(), get_stack_free(), get_thread_delta(), get_thread_load_x10(), rtos_mon, RTOS_MON_MAX_THREADS, and RTOS_MON_NAME_LEN.
Referenced by periodic_report_sysmon().
|
static |
Definition at line 46 of file rtos_mon_arch.c.
Referenced by get_thread_delta(), and rtos_mon_periodic_arch().