|
K-FSW v1.2.1-59-gcaca356
KFSW: modular flight software on Zephyr, for small satellites
|
#include <resmon.h>
Public Attributes | |
| uint32_t | sweeps |
| uint32_t | alerts |
| uint32_t | worst_used_percent |
| uint32_t | worst_unused_bytes |
| uint32_t | worst_stack_bytes |
| uint32_t | last_used_percent |
| uint32_t | alert_percent |
| uint32_t | tightest_unused_bytes |
| uint32_t | tightest_stack_bytes |
| uint16_t | threads |
| uint16_t | unmeasured |
| char | worst_thread [KFSW_RESMON_NAME_SIZE] |
| char | tightest_thread [KFSW_RESMON_NAME_SIZE] |
| bool | running |
Stack measurements and sweep counters.
| uint32_t kfsw_resmon_status::alert_percent |
A thread at or above this percentage raises an event.
| uint32_t kfsw_resmon_status::alerts |
Times a sweep first found a thread at the alert percentage.
| uint32_t kfsw_resmon_status::last_used_percent |
Highest stack use in the most recent sweep, as a percentage.
| bool kfsw_resmon_status::running |
The periodic sweep is running.
| uint32_t kfsw_resmon_status::sweeps |
Sweeps completed since start; saturates.
| uint16_t kfsw_resmon_status::threads |
Threads the last sweep could read.
| uint32_t kfsw_resmon_status::tightest_stack_bytes |
Stack size of the thread holding tightest_unused_bytes.
| char kfsw_resmon_status::tightest_thread[KFSW_RESMON_NAME_SIZE] |
Name of the thread holding tightest_unused_bytes.
| uint32_t kfsw_resmon_status::tightest_unused_bytes |
Smallest free stack seen on any thread since start, in bytes.
A percentage alone hides which thread is nearest the edge: a 512 byte stack at 70% has less room left than a 4096 byte one at 90%.
| uint16_t kfsw_resmon_status::unmeasured |
Threads the last sweep could not measure.
A stack that cannot be read is not a stack with room: leaving it out of the count without saying so publishes a margin for part of the system as if it were all of it.
| uint32_t kfsw_resmon_status::worst_stack_bytes |
Stack size of that thread.
| char kfsw_resmon_status::worst_thread[KFSW_RESMON_NAME_SIZE] |
Name of the thread holding worst_used_percent.
| uint32_t kfsw_resmon_status::worst_unused_bytes |
Unused bytes on that thread when that percentage was recorded.
| uint32_t kfsw_resmon_status::worst_used_percent |
Highest stack use seen on any thread since start, as a percentage.