|
Zephyr Project API
3.3.0
A Scalable Open Source RTOS
|
#include <zephyr/logging/log_instance.h>#include <zephyr/sys/mpsc_packet.h>#include <zephyr/sys/cbprintf.h>#include <zephyr/sys/atomic.h>#include <zephyr/sys/util.h>#include <string.h>#include <zephyr/toolchain.h>#include <alloca.h>#include <syscalls/log_msg.h>Go to the source code of this file.
Data Structures | |
| struct | log_msg_desc |
| union | log_msg_source |
| struct | log_msg_hdr |
| struct | log_msg |
| struct | log_msg_generic_hdr |
| union | log_msg_generic |
Macros | |
| #define | LOG_MSG2_DEBUG 0 |
| #define | LOG_MSG2_DBG(...) IF_ENABLED(LOG_MSG2_DEBUG, (printk(__VA_ARGS__))) |
| #define | LOG_MSG2_GENERIC_HDR |
Typedefs | |
| typedef uint32_t | log_timestamp_t |
Functions | |
| static uint32_t | log_msg_get_total_wlen (const struct log_msg_desc desc) |
| Get total length (in 32 bit words) of a log message. More... | |
| static uint32_t | log_msg_generic_get_wlen (const union mpsc_pbuf_generic *item) |
| Get length of the log item. More... | |
| static uint8_t | log_msg_get_domain (struct log_msg *msg) |
| Get log message domain ID. More... | |
| static uint8_t | log_msg_get_level (struct log_msg *msg) |
| Get log message level. More... | |
| static const void * | log_msg_get_source (struct log_msg *msg) |
| Get message source data. More... | |
| static log_timestamp_t | log_msg_get_timestamp (struct log_msg *msg) |
| Get timestamp. More... | |
| static uint8_t * | log_msg_get_data (struct log_msg *msg, size_t *len) |
| Get data buffer. More... | |
| static uint8_t * | log_msg_get_package (struct log_msg *msg, size_t *len) |
| Get string package. More... | |
| #define LOG_MSG2_DBG | ( | ... | ) | IF_ENABLED(LOG_MSG2_DEBUG, (printk(__VA_ARGS__))) |
| #define LOG_MSG2_DEBUG 0 |
| typedef uint32_t log_timestamp_t |