K-FSW v1.2.1-59-gcaca356
KFSW: modular flight software on Zephyr, for small satellites
Loading...
Searching...
No Matches
kfsw_resmon_status Struct Reference

#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
 

Detailed Description

Stack measurements and sweep counters.

Member Data Documentation

◆ alert_percent

uint32_t kfsw_resmon_status::alert_percent

A thread at or above this percentage raises an event.

◆ alerts

uint32_t kfsw_resmon_status::alerts

Times a sweep first found a thread at the alert percentage.

◆ last_used_percent

uint32_t kfsw_resmon_status::last_used_percent

Highest stack use in the most recent sweep, as a percentage.

◆ running

bool kfsw_resmon_status::running

The periodic sweep is running.

◆ sweeps

uint32_t kfsw_resmon_status::sweeps

Sweeps completed since start; saturates.

◆ threads

uint16_t kfsw_resmon_status::threads

Threads the last sweep could read.

◆ tightest_stack_bytes

uint32_t kfsw_resmon_status::tightest_stack_bytes

Stack size of the thread holding tightest_unused_bytes.

◆ tightest_thread

char kfsw_resmon_status::tightest_thread[KFSW_RESMON_NAME_SIZE]

Name of the thread holding tightest_unused_bytes.

◆ 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%.

◆ unmeasured

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.

◆ worst_stack_bytes

uint32_t kfsw_resmon_status::worst_stack_bytes

Stack size of that thread.

◆ worst_thread

char kfsw_resmon_status::worst_thread[KFSW_RESMON_NAME_SIZE]

Name of the thread holding worst_used_percent.

◆ worst_unused_bytes

uint32_t kfsw_resmon_status::worst_unused_bytes

Unused bytes on that thread when that percentage was recorded.

◆ worst_used_percent

uint32_t kfsw_resmon_status::worst_used_percent

Highest stack use seen on any thread since start, as a percentage.


The documentation for this struct was generated from the following file: