Zephyr Project API 4.4.99
A Scalable Open Source RTOS
Loading...
Searching...
No Matches

Header file for log messages. More...

#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/iterable_sections.h>
#include <zephyr/sys/util.h>
#include <string.h>
#include <zephyr/toolchain.h>
#include <alloca.h>
#include <zephyr/syscalls/log_msg.h>

Go to the source code of this file.

Typedefs

typedef uint32_t log_timestamp_t
 Timestamp value associated with a log message.

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.
static uint32_t log_msg_generic_get_wlen (const union mpsc_pbuf_generic *item)
 Get length of the log item.
static uint8_t log_msg_get_domain (struct log_msg *msg)
 Get log message domain ID.
static uint8_t log_msg_get_level (struct log_msg *msg)
 Get log message level.
static const void * log_msg_get_source (struct log_msg *msg)
 Get message source data.
int16_t log_msg_get_source_id (struct log_msg *msg)
 Get log message source ID.
static log_timestamp_t log_msg_get_timestamp (struct log_msg *msg)
 Get timestamp.
static void * log_msg_get_tid (struct log_msg *msg)
 Get Thread ID.
static uint8_t log_msg_get_core_id (struct log_msg *msg)
 Get Core ID.
static uint8_tlog_msg_get_data (struct log_msg *msg, size_t *len)
 Get data buffer.
static uint8_tlog_msg_get_package (struct log_msg *msg, size_t *len)
 Get string package.

Detailed Description

Header file for log messages.