Zephyr API Documentation 4.0.0-rc3
A Scalable Open Source RTOS
Loading...
Searching...
No Matches
log_frontend_stmesp.h File Reference
#include <errno.h>
#include <zephyr/types.h>

Go to the source code of this file.

Functions

int log_frontend_stmesp_etr_ready (void)
 Notify frontend that ETR/STM is ready.
 
void log_frontend_stmesp_pre_sleep (void)
 Hook to be called before going to sleep.
 
void log_frontend_stmesp_dummy_write (void)
 Perform a dummy write to STMESP.
 
static void log_frontend_stmesp_tp (uint16_t x)
 Trace point.
 
static void log_frontend_stmesp_tp_d32 (uint16_t x, uint32_t d)
 Trace point with 32 bit data.
 

Function Documentation

◆ log_frontend_stmesp_dummy_write()

void log_frontend_stmesp_dummy_write ( void )

Perform a dummy write to STMESP.

It can be used to force flushing STM data.

◆ log_frontend_stmesp_etr_ready()

int log_frontend_stmesp_etr_ready ( void )

Notify frontend that ETR/STM is ready.

Log frontend optionally dumps buffered data and start to write to the STM stimulus port.

Note
Function is applicable only for the domain that performs initial ETR/STM setup.
Return values
0on success.
-EIOif there was an internal failure.

◆ log_frontend_stmesp_pre_sleep()

void log_frontend_stmesp_pre_sleep ( void )

Hook to be called before going to sleep.

Hook writes dummy data to the STM Stimulus Port to ensure that all logging data is flushed.

◆ log_frontend_stmesp_tp()

static void log_frontend_stmesp_tp ( uint16_t x)
inlinestatic

Trace point.

Write a trace point information using STM. Number of unique trace points is limited to 65536 - CONFIG_LOG_FRONTEND_STMESP_TP_CHAN_BASE per core.

Parameters
xTrace point ID.

◆ log_frontend_stmesp_tp_d32()

static void log_frontend_stmesp_tp_d32 ( uint16_t x,
uint32_t d )
inlinestatic

Trace point with 32 bit data.

Write a trace point information using STM. Number of unique trace points is limited to 65536 - CONFIG_LOG_FRONTEND_STMESP_TP_CHAN_BASE per core.

Parameters
xTrace point ID.
dData. 32 bit word.