Zephyr Project API
3.7.0
A Scalable Open Source RTOS
Loading...
Searching...
No Matches
log_output_dict.h
Go to the documentation of this file.
1
/*
2
* Copyright (c) 2018 Nordic Semiconductor ASA
3
* Copyright (c) 2021 Intel Corporation
4
*
5
* SPDX-License-Identifier: Apache-2.0
6
*/
7
#ifndef ZEPHYR_INCLUDE_LOGGING_LOG_OUTPUT_DICT_H_
8
#define ZEPHYR_INCLUDE_LOGGING_LOG_OUTPUT_DICT_H_
9
10
#include <
zephyr/logging/log_output.h
>
11
#include <
zephyr/logging/log_msg.h
>
12
#include <stdarg.h>
13
#include <
zephyr/toolchain.h
>
14
#include <
zephyr/sys/util.h
>
15
16
#ifdef __cplusplus
17
extern
"C"
{
18
#endif
19
23
enum
log_dict_output_msg_type
{
24
MSG_NORMAL
= 0,
25
MSG_DROPPED_MSG
= 1,
26
};
27
31
struct
log_dict_output_normal_msg_hdr_t
{
32
uint8_t
type
;
33
uint32_t
domain
:4;
34
uint32_t
level
:4;
35
uint32_t
package_len
:16;
36
uint32_t
data_len
:16;
37
uintptr_t
source
;
38
log_timestamp_t
timestamp
;
39
} __packed;
40
45
struct
log_dict_output_dropped_msg_t
{
46
uint8_t
type
;
47
uint16_t
num_dropped_messages
;
48
} __packed;
49
59
void
log_dict_output_msg_process
(
const
struct
log_output
*
log_output
,
60
struct
log_msg
*
msg
,
uint32_t
flags
);
61
69
void
log_dict_output_dropped_process
(
const
struct
log_output
*output,
uint32_t
cnt);
70
71
#ifdef __cplusplus
72
}
73
#endif
74
75
#endif
/* ZEPHYR_INCLUDE_LOGGING_LOG_OUTPUT_DICT_H_ */
log_msg.h
log_timestamp_t
uint32_t log_timestamp_t
Definition
log_msg.h:36
log_output.h
log_dict_output_dropped_process
void log_dict_output_dropped_process(const struct log_output *output, uint32_t cnt)
Process dropped messages indication for dictionary-based logging.
log_dict_output_msg_process
void log_dict_output_msg_process(const struct log_output *log_output, struct log_msg *msg, uint32_t flags)
Process log messages v2 for dictionary-based logging.
log_dict_output_msg_type
log_dict_output_msg_type
Log message type.
Definition
log_output_dict.h:23
MSG_NORMAL
@ MSG_NORMAL
Definition
log_output_dict.h:24
MSG_DROPPED_MSG
@ MSG_DROPPED_MSG
Definition
log_output_dict.h:25
flags
flags
Definition
parser.h:96
uint32_t
__UINT32_TYPE__ uint32_t
Definition
stdint.h:90
uint8_t
__UINT8_TYPE__ uint8_t
Definition
stdint.h:88
uintptr_t
__UINTPTR_TYPE__ uintptr_t
Definition
stdint.h:105
uint16_t
__UINT16_TYPE__ uint16_t
Definition
stdint.h:89
log_dict_output_dropped_msg_t
Output for one dictionary based log message about dropped messages.
Definition
log_output_dict.h:45
log_dict_output_dropped_msg_t::type
uint8_t type
Definition
log_output_dict.h:46
log_dict_output_dropped_msg_t::num_dropped_messages
uint16_t num_dropped_messages
Definition
log_output_dict.h:47
log_dict_output_normal_msg_hdr_t
Output header for one dictionary based log message.
Definition
log_output_dict.h:31
log_dict_output_normal_msg_hdr_t::package_len
uint32_t package_len
Definition
log_output_dict.h:35
log_dict_output_normal_msg_hdr_t::level
uint32_t level
Definition
log_output_dict.h:34
log_dict_output_normal_msg_hdr_t::type
uint8_t type
Definition
log_output_dict.h:32
log_dict_output_normal_msg_hdr_t::source
uintptr_t source
Definition
log_output_dict.h:37
log_dict_output_normal_msg_hdr_t::data_len
uint32_t data_len
Definition
log_output_dict.h:36
log_dict_output_normal_msg_hdr_t::domain
uint32_t domain
Definition
log_output_dict.h:33
log_dict_output_normal_msg_hdr_t::timestamp
log_timestamp_t timestamp
Definition
log_output_dict.h:38
log_msg
Definition
log_msg.h:94
log_output
Log_output instance structure.
Definition
log_output.h:96
msg
static void msg(uint64_t c64)
Definition
main.c:17
toolchain.h
Macros to abstract toolchain specific capabilities.
util.h
Misc utilities.
include
zephyr
logging
log_output_dict.h
Generated on Sun Sep 15 2024 17:01:30 for Zephyr Project API by
1.9.8