Zephyr API Documentation
2.7.0-rc2
A Scalable Open Source RTOS
|
Log message API. More...
Data Structures | |
struct | log_msg2_desc |
struct | log_msg2_trace_hdr |
union | log_msg2_source |
struct | log_msg2_hdr |
struct | log_msg2_trace |
struct | log_msg2_trace_ptr |
struct | log_msg2 |
struct | log_msg2_generic_hdr |
union | log_msg2_generic |
Macros | |
#define | LOG_MSG2_GENERIC_HDR |
Functions | |
static uint32_t | log_msg2_get_total_wlen (const struct log_msg2_desc desc) |
Get total length (in 32 bit words) of a log message. More... | |
static uint32_t | log_msg2_generic_get_wlen (union mpsc_pbuf_generic *item) |
Get length of the log item. More... | |
static uint8_t | log_msg2_get_domain (struct log_msg2 *msg) |
Get log message domain ID. More... | |
static uint8_t | log_msg2_get_level (struct log_msg2 *msg) |
Get log message level. More... | |
static const void * | log_msg2_get_source (struct log_msg2 *msg) |
Get message source data. More... | |
static log_timestamp_t | log_msg2_get_timestamp (struct log_msg2 *msg) |
Get timestamp. More... | |
static uint8_t * | log_msg2_get_data (struct log_msg2 *msg, size_t *len) |
Get data buffer. More... | |
static uint8_t * | log_msg2_get_package (struct log_msg2 *msg, size_t *len) |
Get string package. More... | |
Log message API.
#define LOG_MSG2_GENERIC_HDR |
#include <include/logging/log_msg2.h>
|
inlinestatic |
#include <include/logging/log_msg2.h>
Get length of the log item.
item | Item. |
#include <include/logging/log_msg2.h>
Get data buffer.
msg | log message. |
len | location where data length is written. |
#include <include/logging/log_msg2.h>
Get log message domain ID.
msg | Log message. |
#include <include/logging/log_msg2.h>
Get log message level.
msg | Log message. |
#include <include/logging/log_msg2.h>
Get string package.
msg | log message. |
len | location where string package length is written. |
#include <include/logging/log_msg2.h>
Get message source data.
msg | Log message. |
|
inlinestatic |
|
inlinestatic |
#include <include/logging/log_msg2.h>
Get total length (in 32 bit words) of a log message.
desc | Log message descriptor. |