OCEOS/oceos logging
Revision as of 12:56, 25 March 2022 by Okhoruzhyy (talk | contribs) (Created page with "=<span style="color:#0000ff">'''OCEOS Logging'''</span>= This contains time stamped records of anomalies detected during execution. It is structured as a circular buffer. Syst...")
OCEOS Logging
This contains time stamped records of anomalies detected during execution. It is structured as a circular buffer. System calls are provided to initialize the log, set its maximum size, and return the number of entries.
OCEOS does not change the log entries after reset. Only call to oceos_log_reset() can be used to reset all log entries if desired.
OCEOS will call a user defined function when the log is approximately 75% full.
Logging Introduction
Logging Configuration
API Functions
Directive | Description | main | task | IRQ handler |
---|---|---|---|---|
oceos_log_add_entry() | Add a log entry | * | * | * |
oceos_log_remove_entry() | Read and remove the oldest unread log entry | * | * | * |
oceos_log_get_indexed_entry() | Read the log entry at the given index | * | * | * |
oceos_log_reset() | Clear all log entries and reset to empty | * | * | * |
oceos_log_get_size() | Get the number of log entries | * | * | * |