Home
last modified time | relevance | path

Searched refs:log_backend (Results 1 – 25 of 55) sorted by relevance

123

/Zephyr-Core-3.5.0/include/zephyr/logging/
Dlog_backend.h28 struct log_backend;
64 void (*process)(const struct log_backend *const backend,
67 void (*dropped)(const struct log_backend *const backend, uint32_t cnt);
68 void (*panic)(const struct log_backend *const backend);
69 void (*init)(const struct log_backend *const backend);
70 int (*is_ready)(const struct log_backend *const backend);
71 int (*format_set)(const struct log_backend *const backend,
74 void (*notify)(const struct log_backend *const backend,
94 struct log_backend { struct
118 static const STRUCT_SECTION_ITERABLE(log_backend, _name) = \ argument
[all …]
Dlog_ctrl.h153 uint32_t log_filter_get(struct log_backend const *const backend,
167 __syscall uint32_t log_filter_set(struct log_backend const *const backend,
179 void log_backend_enable(struct log_backend const *const backend,
189 void log_backend_disable(struct log_backend const *const backend);
198 const struct log_backend *log_backend_get_by_name(const char *backend_name);
206 const struct log_backend *log_format_set_all_active_backends(size_t log_type);
/Zephyr-Core-3.5.0/tests/subsys/logging/log_api/src/
Dmock_backend.h44 void mock_log_backend_reset(const struct log_backend *backend);
45 void mock_log_backend_check_enable(const struct log_backend *backend);
46 void mock_log_backend_check_disable(const struct log_backend *backend);
48 void mock_log_backend_dummy_record(const struct log_backend *backend, int cnt);
50 void mock_log_backend_drop_record(const struct log_backend *backend, int cnt);
52 void mock_log_backend_generic_record(const struct log_backend *backend,
61 static inline void mock_log_backend_record(const struct log_backend *backend, in mock_log_backend_record()
72 void mock_log_backend_validate(const struct log_backend *backend, bool panic);
Dmock_backend.c11 void mock_log_backend_reset(const struct log_backend *backend) in mock_log_backend_reset()
23 void mock_log_backend_check_enable(const struct log_backend *backend) in mock_log_backend_check_enable()
30 void mock_log_backend_check_disable(const struct log_backend *backend) in mock_log_backend_check_disable()
37 void mock_log_backend_dummy_record(const struct log_backend *backend, int cnt) in mock_log_backend_dummy_record()
48 void mock_log_backend_drop_record(const struct log_backend *backend, int cnt) in mock_log_backend_drop_record()
55 void mock_log_backend_generic_record(const struct log_backend *backend, in mock_log_backend_generic_record()
96 void mock_log_backend_validate(const struct log_backend *backend, bool panic) in mock_log_backend_validate()
126 static void process(const struct log_backend *const backend, in process()
190 static void mock_init(struct log_backend const *const backend) in mock_init()
195 static void panic(struct log_backend const *const backend) in panic()
[all …]
/Zephyr-Core-3.5.0/subsys/shell/
Dshell_log_backend.c83 static void panic(const struct log_backend *const backend) in panic()
95 sh->log_backend->control_block->state = in panic()
111 z_shell_log_backend_disable(sh->log_backend); in panic()
115 static void dropped(const struct log_backend *const backend, uint32_t cnt) in dropped()
118 const struct shell_log_backend *log_backend = sh->log_backend; in dropped() local
123 atomic_add(&log_backend->control_block->dropped_cnt, cnt); in dropped()
206 const struct shell_log_backend *log_backend = sh->log_backend; in process_msg_from_buffer() local
207 struct mpsc_pbuf_buffer *mpsc_buffer = log_backend->mpsc_buffer; in process_msg_from_buffer()
208 const struct log_output *log_output = log_backend->log_output; in process_msg_from_buffer()
225 static void process(const struct log_backend *const backend, in process()
[all …]
/Zephyr-Core-3.5.0/subsys/logging/
Dlog_cmds.c15 const struct log_backend *backend,
43 static const struct log_backend *backend_find(char const *name) in backend_find()
47 STRUCT_SECTION_FOREACH(log_backend, backend) { in backend_find()
58 if (sh->log_backend->control_block->state in shell_state_precheck()
79 const struct log_backend *backend = backend_find(name); in shell_backend_cmd_execute()
92 const struct log_backend *backend, in log_status()
130 log_status(sh, sh->log_backend->backend, argc, argv); in cmd_log_self_status()
158 const struct log_backend *backend, in filters_set()
205 const struct log_backend *backend, in log_enable()
230 return log_enable(sh, sh->log_backend->backend, argc, argv); in cmd_log_self_enable()
[all …]
Dlog_mgmt.c415 uint32_t z_impl_log_filter_set(struct log_backend const *const backend, in z_impl_log_filter_set()
429 STRUCT_SECTION_FOREACH(log_backend, iter_backend) { in z_impl_log_filter_set()
447 uint32_t z_vrfy_log_filter_set(struct log_backend const *const backend, in z_vrfy_log_filter_set()
468 struct log_backend const *const backend, in link_filter_set()
483 static void backend_filter_set(struct log_backend const *const backend, in backend_filter_set()
504 const struct log_backend *log_backend_get_by_name(const char *backend_name) in log_backend_get_by_name()
506 STRUCT_SECTION_FOREACH(log_backend, backend) { in log_backend_get_by_name()
515 void log_backend_enable(struct log_backend const *const backend, in log_backend_enable()
532 void log_backend_disable(struct log_backend const *const backend) in log_backend_disable()
541 uint32_t log_filter_get(struct log_backend const *const backend, in log_filter_get()
[all …]
/Zephyr-Core-3.5.0/subsys/logging/backends/
Dlog_backend_efi_console.c41 static void process(const struct log_backend *const backend, in process()
55 static int format_set(const struct log_backend *const backend, uint32_t log_type) in format_set()
61 static void log_backend_efi_init(struct log_backend const *const backend) in log_backend_efi_init()
67 static void panic(struct log_backend const *const backend) in panic()
73 static void dropped(const struct log_backend *const backend, uint32_t cnt) in dropped()
Dlog_backend_spinel.c32 static void process(const struct log_backend *const backend, in process()
43 static int format_set(const struct log_backend *const backend, uint32_t log_type) in format_set()
49 static void log_backend_spinel_init(struct log_backend const *const backend) in log_backend_spinel_init()
54 static void panic(struct log_backend const *const backend) in panic()
60 static void dropped(const struct log_backend *const backend, uint32_t cnt) in dropped()
Dlog_backend_xtensa_sim.c40 static void process(const struct log_backend *const backend, in process()
50 static int format_set(const struct log_backend *const backend, uint32_t log_type) in format_set()
56 static void panic(struct log_backend const *const backend) in panic()
61 static void dropped(const struct log_backend *const backend, uint32_t cnt) in dropped()
Dlog_backend_ble.c25 static const struct log_backend *log_backend_ble_get(void);
150 static void process(const struct log_backend *const backend, union log_msg_generic *msg) in process()
164 static int format_set(const struct log_backend *const backend, uint32_t log_type) in format_set()
171 static void init_ble(struct log_backend const *const backend) in init_ble()
177 static void panic(struct log_backend const *const backend) in panic()
191 static int backend_ready(const struct log_backend *const backend) in backend_ready()
207 const struct log_backend *log_backend_ble_get(void) in log_backend_ble_get()
Dlog_backend_swo.c77 static void log_backend_swo_process(const struct log_backend *const backend, in log_backend_swo_process()
87 static int format_set(const struct log_backend *const backend, uint32_t log_type) in format_set()
93 static void log_backend_swo_init(struct log_backend const *const backend) in log_backend_swo_init()
128 static void log_backend_swo_panic(struct log_backend const *const backend) in log_backend_swo_panic()
132 static void dropped(const struct log_backend *const backend, uint32_t cnt) in dropped()
Dlog_backend_adsp.c58 static void panic(struct log_backend const *const backend) in panic()
67 static inline void dropped(const struct log_backend *const backend, in dropped()
73 static void process(const struct log_backend *const backend, in process()
85 static int format_set(const struct log_backend *const backend, uint32_t log_type) in format_set()
Dlog_backend_native_posix.c61 static void panic(struct log_backend const *const backend) in panic()
66 static void dropped(const struct log_backend *const backend, uint32_t cnt) in dropped()
73 static void process(const struct log_backend *const backend, in process()
83 static int format_set(const struct log_backend *const backend, uint32_t log_type) in format_set()
Dlog_backend_adsp_mtrace.c168 static void panic(struct log_backend const *const backend) in panic()
173 static void dropped(const struct log_backend *const backend, in dropped()
179 static void process(const struct log_backend *const backend, in process()
191 static int format_set(const struct log_backend *const backend, uint32_t log_type) in format_set()
201 static void init(const struct log_backend *const backend) in init()
226 const struct log_backend *log_backend_adsp_mtrace_get(void) in log_backend_adsp_mtrace_get()
Dlog_multidomain_backend.c14 static void process(const struct log_backend *const backend, in process()
164 log_filter_get(backend_remote->log_backend, in log_multidomain_backend_on_recv_cb()
169 log_filter_get(backend_remote->log_backend, in log_multidomain_backend_on_recv_cb()
176 log_filter_set(backend_remote->log_backend, in log_multidomain_backend_on_recv_cb()
193 static void init(struct log_backend const *const backend) in init()
198 backend_remote->log_backend = backend; in init()
208 static int is_ready(struct log_backend const *const backend) in is_ready()
215 static void panic(struct log_backend const *const backend) in panic()
222 static void dropped(const struct log_backend *const backend, uint32_t cnt) in dropped()
Dlog_backend_uart.c109 static void process(const struct log_backend *const backend, in process()
119 static int format_set(const struct log_backend *const backend, uint32_t log_type) in format_set()
125 static void log_backend_uart_init(struct log_backend const *const backend) in log_backend_uart_init()
155 static void panic(struct log_backend const *const backend) in panic()
181 static void dropped(const struct log_backend *const backend, uint32_t cnt) in dropped()
Dlog_backend_net.c40 const struct log_backend *log_backend_net_get(void);
176 static void process(const struct log_backend *const backend, in process()
194 static int format_set(const struct log_backend *const backend, uint32_t log_type) in format_set()
238 static void init_net(struct log_backend const *const backend) in init_net()
253 static void panic(struct log_backend const *const backend) in panic()
271 const struct log_backend *log_backend_net_get(void) in log_backend_net_get()
Dlog_backend_rtt.c264 static void log_backend_rtt_init(struct log_backend const *const backend) in log_backend_rtt_init()
274 static void panic(struct log_backend const *const backend) in panic()
280 static void dropped(const struct log_backend *const backend, uint32_t cnt) in dropped()
287 static void process(const struct log_backend *const backend, in process()
297 static int format_set(const struct log_backend *const backend, uint32_t log_type) in format_set()
/Zephyr-Core-3.5.0/tests/subsys/logging/log_switch_format/src/
Dmock_backend.c49 static void process(const struct log_backend *const backend, in process()
99 static int format_set(const struct log_backend *const backend, uint32_t log_type) in format_set()
105 static void mock_init(struct log_backend const *const backend) in mock_init()
110 static void panic(struct log_backend const *const backend) in panic()
Dmain.c45 const struct log_backend *backend; in test_log_switch_format_success_case()
86 const struct log_backend *backend; in test_log_switch_format_set()
114 const struct log_backend *backend; in test_log_switch_format_set_all_active_backends()
170 const struct log_backend *backend; in ZTEST()
190 const struct log_backend *backend; in ZTEST()
209 const struct log_backend *backend; in ZTEST()
/Zephyr-Core-3.5.0/tests/subsys/logging/log_backend_init/src/
Dmain.c38 static void backend_process(const struct log_backend *const backend, in backend_process()
58 static void panic(const struct log_backend *const backend) in panic()
71 static void backend_init(const struct log_backend *const backend) in backend_init()
80 static int backend_is_ready(const struct log_backend *const backend) in backend_is_ready()
117 STRUCT_SECTION_COUNT(log_backend, &cnt); in ZTEST()
/Zephyr-Core-3.5.0/tests/subsys/logging/log_syst/src/
Dmock_backend.c45 static void process(const struct log_backend *const backend, in process()
109 static int format_set(const struct log_backend *const backend, uint32_t log_type) in format_set()
115 static void mock_init(struct log_backend const *const backend) in mock_init()
120 static void panic(struct log_backend const *const backend) in panic()
/Zephyr-Core-3.5.0/samples/net/syslog_net/src/
Dmain.c23 extern const struct log_backend *log_backend_net_get(void);
37 const struct log_backend *backend = log_backend_net_get(); in main()
/Zephyr-Core-3.5.0/tests/subsys/logging/log_stress/src/
Dmain.c51 static void process(const struct log_backend *const backend, in process()
62 static void mock_init(struct log_backend const *const backend) in mock_init()
67 static void panic(struct log_backend const *const backend) in panic()
72 static void dropped(const struct log_backend *const backend, uint32_t cnt) in dropped()

123