Home
last modified time | relevance | path

Searched refs:control_block (Results 1 – 9 of 9) sorted by relevance

/Zephyr-latest/include/zephyr/logging/
Dlog_output.h98 struct log_output_control_block *control_block; member
131 .control_block = &_name##_control_block, \
217 log_output_write(output->func, output->buf, output->control_block->offset, in log_output_flush()
218 output->control_block->ctx); in log_output_flush()
219 output->control_block->offset = 0; in log_output_flush()
230 output->control_block->ctx = ctx; in log_output_ctx_set()
241 output->control_block->hostname = hostname; in log_output_hostname_set()
/Zephyr-latest/subsys/logging/
Dlog_output_dict.c32 (void *)output->control_block->ctx); in log_dict_output_msg_process()
38 log_output_write(output->func, data, len, (void *)output->control_block->ctx); in log_dict_output_msg_process()
43 log_output_write(output->func, data, len, (void *)output->control_block->ctx); in log_dict_output_msg_process()
57 (void *)output->control_block->ctx); in log_dict_output_dropped_process()
Dlog_output.c103 out_ctx->func((uint8_t *)&x, 1, out_ctx->control_block->ctx); in out_func()
107 if (out_ctx->control_block->offset == out_ctx->size) { in out_func()
111 idx = atomic_inc(&out_ctx->control_block->offset); in out_func()
114 __ASSERT_NO_MSG(out_ctx->control_block->offset <= out_ctx->size); in out_func()
457 output->control_block->hostname ? in syslog_print()
458 output->control_block->hostname : in syslog_print()
715 log_output_write(outf, (uint8_t *)prefix, sizeof(prefix) - 1, output->control_block->ctx); in log_output_dropped_process()
716 log_output_write(outf, buf, len, output->control_block->ctx); in log_output_dropped_process()
717 log_output_write(outf, (uint8_t *)postfix, sizeof(postfix) - 1, output->control_block->ctx); in log_output_dropped_process()
Dlog_output_syst.c42 out_ctx->buf[out_ctx->control_block->offset] = (uint8_t)c; in out_func()
43 out_ctx->control_block->offset++; in out_func()
45 __ASSERT_NO_MSG(out_ctx->control_block->offset <= out_ctx->size); in out_func()
47 if (out_ctx->control_block->offset == out_ctx->size) { in out_func()
Dlog_cmds.c62 (sh->log_backend->control_block->state == SHELL_LOG_BACKEND_UNINIT)) { in shell_state_precheck()
/Zephyr-latest/subsys/shell/
Dshell_log_backend.c45 backend->control_block->dropped_cnt = 0; in z_shell_log_backend_enable()
46 backend->control_block->state = SHELL_LOG_BACKEND_ENABLED; in z_shell_log_backend_enable()
53 backend->control_block->state = SHELL_LOG_BACKEND_DISABLED; in z_shell_log_backend_disable()
64 dropped = atomic_set(&backend->control_block->dropped_cnt, 0); in z_shell_log_backend_process()
95 sh->log_backend->control_block->state = in panic()
123 atomic_add(&log_backend->control_block->dropped_cnt, cnt); in dropped()
236 switch (sh->log_backend->control_block->state) { in process()
/Zephyr-latest/include/zephyr/shell/
Dshell_log_backend.h39 struct shell_log_backend_control_block *control_block; member
88 .control_block = &_name##_control_block, \
/Zephyr-latest/subsys/logging/backends/
Dlog_backend_ws.c179 struct log_backend_ws_ctx *ctx = log_output_ws.control_block->ctx; in log_backend_ws_register()
188 struct log_backend_ws_ctx *ctx = log_output_ws.control_block->ctx; in log_backend_ws_unregister()
Dlog_backend_net.c233 struct log_backend_net_ctx *ctx = log_output_net.control_block->ctx; in check_net_init_done()