Zephyr API Documentation  2.7.0-rc2
A Scalable Open Source RTOS
log_core2.h
Go to the documentation of this file.
1/*
2 * Copyright (c) 2021 Nordic Semiconductor ASA
3 *
4 * SPDX-License-Identifier: Apache-2.0
5 */
6#ifndef ZEPHYR_INCLUDE_LOGGING_LOG_CORE2_H_
7#define ZEPHYR_INCLUDE_LOGGING_LOG_CORE2_H_
8
9#include <logging/log_msg2.h>
10
11#ifdef __cplusplus
12extern "C" {
13#endif
14
15#define Z_TRACING_LOG_TRACE(id) do { \
16 Z_TRACING_LOG_HDR_INIT(_msg, id); \
17 z_log_msg2_put_trace(_msg); \
18} while (0)
19
20#define Z_TRACING_LOG_TRACE_PTR(id, ptr) do { \
21 Z_TRACING_LOG_HDR_INIT(_msg, id); \
22 z_log_msg2_put_trace_ptr(_msg, ptr); \
23} while (0)
24
25void z_log_msg2_put_trace(struct log_msg2_trace trace);
26
27void z_log_msg2_put_trace_ptr(struct log_msg2_trace hdr, void *data);
28
29
31void z_log_msg2_init(void);
32
39struct log_msg2 *z_log_msg2_alloc(uint32_t wlen);
40
45void z_log_msg2_commit(struct log_msg2 *msg);
46
53union log_msg2_generic *z_log_msg2_claim(void);
54
59void z_log_msg2_free(union log_msg2_generic *msg);
60
66bool z_log_msg2_pending(void);
67
68#ifdef __cplusplus
69}
70#endif
71
72#endif /* ZEPHYR_INCLUDE_LOGGING_LOG_CORE2_H_ */
__UINT32_TYPE__ uint32_t
Definition: stdint.h:60
Definition: log_msg2.h:96
Definition: log_msg2.h:105
static fdata_t data[2]
Definition: test_fifo_contexts.c:15
Definition: log_msg2.h:114