STM32 core 3.0.1-dev
Arduino core for STM32 based boards: API reference
← STM32duino documentation
Loading...
Searching...
No Matches
virtio_log.h File Reference

Write to the OpenAMP trace (log) buffer readable from the Linux host. More...

#include <stdint.h>

Functions

void virtio_log (uint8_t *data, uint32_t size)
 Write data to the OpenAMP trace buffer.
 

Detailed Description

Write to the OpenAMP trace (log) buffer readable from the Linux host.

Function Documentation

◆ virtio_log()

void virtio_log ( uint8_t *  data,
uint32_t  size 
)

Write data to the OpenAMP trace buffer.

Note
By writing OpenAMP trace (log) buffer here, the Linux host can access to the content by the following command: $ cat /sys/kernel/debug/remoteproc/remoteproc0/trace0
When the buffer overflows (2kb by default, configurable.), the buffer is cleaned by a null character. Consider increasing VIRTIO_LOG_BUFFER_SIZE if a larger log buffer is needed.
Parameters
dataData to send.
sizeSize of data, in bytes.