/Zephyr-Core-3.6.0/include/zephyr/logging/ |
D | log_backend.h | 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, 137 static inline void log_backend_init(const struct log_backend *const backend) in log_backend_init() argument 139 __ASSERT_NO_MSG(backend != NULL); in log_backend_init() 140 if (backend->api->init) { in log_backend_init() [all …]
|
/Zephyr-Core-3.6.0/subsys/modem/backends/ |
D | modem_backend_uart_isr.c | 14 static void modem_backend_uart_isr_flush(struct modem_backend_uart *backend) in modem_backend_uart_isr_flush() argument 18 while (uart_fifo_read(backend->uart, &c, 1) > 0) { in modem_backend_uart_isr_flush() 23 static void modem_backend_uart_isr_irq_handler_receive_ready(struct modem_backend_uart *backend) in modem_backend_uart_isr_irq_handler_receive_ready() argument 30 receive_rb = &backend->isr.receive_rdb[backend->isr.receive_rdb_used]; in modem_backend_uart_isr_irq_handler_receive_ready() 39 ret = uart_fifo_read(backend->uart, buffer, size); in modem_backend_uart_isr_irq_handler_receive_ready() 47 k_work_submit(&backend->receive_ready_work); in modem_backend_uart_isr_irq_handler_receive_ready() 51 static void modem_backend_uart_isr_irq_handler_transmit_ready(struct modem_backend_uart *backend) in modem_backend_uart_isr_irq_handler_transmit_ready() argument 57 if (ring_buf_is_empty(&backend->isr.transmit_rb) == true) { in modem_backend_uart_isr_irq_handler_transmit_ready() 58 uart_irq_tx_disable(backend->uart); in modem_backend_uart_isr_irq_handler_transmit_ready() 59 k_work_submit(&backend->transmit_idle_work); in modem_backend_uart_isr_irq_handler_transmit_ready() [all …]
|
D | modem_backend_uart_async.c | 20 static bool modem_backend_uart_async_is_closed(struct modem_backend_uart *backend) in modem_backend_uart_async_is_closed() argument 22 if (!atomic_test_bit(&backend->async.state, in modem_backend_uart_async_is_closed() 24 !atomic_test_bit(&backend->async.state, in modem_backend_uart_async_is_closed() 26 !atomic_test_bit(&backend->async.state, in modem_backend_uart_async_is_closed() 28 !atomic_test_bit(&backend->async.state, in modem_backend_uart_async_is_closed() 39 struct modem_backend_uart *backend = (struct modem_backend_uart *) user_data; in modem_backend_uart_async_event_handler() local 45 atomic_clear_bit(&backend->async.state, in modem_backend_uart_async_event_handler() 47 k_work_submit(&backend->transmit_idle_work); in modem_backend_uart_async_event_handler() 53 atomic_clear_bit(&backend->async.state, in modem_backend_uart_async_event_handler() 55 k_work_submit(&backend->transmit_idle_work); in modem_backend_uart_async_event_handler() [all …]
|
D | modem_backend_tty.c | 25 struct modem_backend_tty *backend = (struct modem_backend_tty *)p1; in modem_backend_tty_routine() local 31 pd.fd = backend->tty_fd; in modem_backend_tty_routine() 35 while (atomic_test_bit(&backend->state, MODEM_BACKEND_TTY_STATE_RUN_BIT)) { in modem_backend_tty_routine() 45 modem_pipe_notify_receive_ready(&backend->pipe); in modem_backend_tty_routine() 54 struct modem_backend_tty *backend = (struct modem_backend_tty *)data; in modem_backend_tty_open() local 56 if (atomic_test_and_set_bit(&backend->state, MODEM_BACKEND_TTY_STATE_RUN_BIT)) { in modem_backend_tty_open() 60 backend->tty_fd = open(backend->tty_path, (O_RDWR | O_NONBLOCK), 0644); in modem_backend_tty_open() 61 if (backend->tty_fd < 0) { in modem_backend_tty_open() 65 k_thread_create(&backend->thread, backend->stack, backend->stack_size, in modem_backend_tty_open() 66 modem_backend_tty_routine, backend, NULL, NULL, in modem_backend_tty_open() [all …]
|
D | modem_backend_uart.c | 19 struct modem_backend_uart *backend = in modem_backend_uart_receive_ready_handler() local 22 modem_pipe_notify_receive_ready(&backend->pipe); in modem_backend_uart_receive_ready_handler() 27 struct modem_backend_uart *backend = in modem_backend_uart_transmit_idle_handler() local 30 modem_pipe_notify_transmit_idle(&backend->pipe); in modem_backend_uart_transmit_idle_handler() 33 struct modem_pipe *modem_backend_uart_init(struct modem_backend_uart *backend, in modem_backend_uart_init() argument 43 memset(backend, 0x00, sizeof(*backend)); in modem_backend_uart_init() 44 backend->uart = config->uart; in modem_backend_uart_init() 45 k_work_init(&backend->receive_ready_work, modem_backend_uart_receive_ready_handler); in modem_backend_uart_init() 46 k_work_init(&backend->transmit_idle_work, modem_backend_uart_transmit_idle_handler); in modem_backend_uart_init() 49 if (modem_backend_uart_async_is_supported(backend)) { in modem_backend_uart_init() [all …]
|
/Zephyr-Core-3.6.0/subsys/ipc/ipc_service/ |
D | ipc_service.c | 19 const struct ipc_service_backend *backend; in ipc_service_open_instance() local 26 backend = (const struct ipc_service_backend *) instance->api; in ipc_service_open_instance() 28 if (!backend) { in ipc_service_open_instance() 33 if (!backend->open_instance) { in ipc_service_open_instance() 38 return backend->open_instance(instance); in ipc_service_open_instance() 43 const struct ipc_service_backend *backend; in ipc_service_close_instance() local 50 backend = (const struct ipc_service_backend *) instance->api; in ipc_service_close_instance() 52 if (!backend) { in ipc_service_close_instance() 57 if (!backend->close_instance) { in ipc_service_close_instance() 62 return backend->close_instance(instance); in ipc_service_close_instance() [all …]
|
/Zephyr-Core-3.6.0/subsys/tracing/include/ |
D | tracing_backend.h | 32 void (*output)(const struct tracing_backend *backend, 62 const struct tracing_backend *backend) in tracing_backend_init() argument 64 if (backend && backend->api && backend->api->init) { in tracing_backend_init() 65 backend->api->init(); in tracing_backend_init() 77 const struct tracing_backend *backend, in tracing_backend_output() argument 80 if (backend && backend->api) { in tracing_backend_output() 81 backend->api->output(backend, data, length); in tracing_backend_output() 95 STRUCT_SECTION_FOREACH(tracing_backend, backend) { in tracing_backend_get() 96 if (strcmp(backend->name, name) == 0) { in tracing_backend_get() 97 return backend; in tracing_backend_get()
|
/Zephyr-Core-3.6.0/tests/subsys/logging/log_switch_format/src/ |
D | main.c | 45 const struct log_backend *backend; in test_log_switch_format_success_case() local 57 backend = log_format_set_all_active_backends(log_type); in test_log_switch_format_success_case() 59 zassert_is_null(backend, "Unexpected failure in switching log format"); in test_log_switch_format_success_case() 66 backend = log_format_set_all_active_backends(log_type); in test_log_switch_format_success_case() 68 zassert_is_null(backend, "Unexpected failure in switching log format"); in test_log_switch_format_success_case() 75 backend = log_format_set_all_active_backends(log_type); in test_log_switch_format_success_case() 77 zassert_is_null(backend, "Unexpected failure in switching log format"); in test_log_switch_format_success_case() 86 const struct log_backend *backend; in test_log_switch_format_set() local 93 backend = log_backend_get_by_name(backend_name); in test_log_switch_format_set() 94 zassert_is_null(backend, "Backend unexpectedly found"); in test_log_switch_format_set() [all …]
|
/Zephyr-Core-3.6.0/tests/subsys/modem/modem_pipe/src/ |
D | main.c | 49 struct modem_backend_fake *backend = in modem_backend_fake_opened_handler() local 52 modem_pipe_notify_opened(&backend->pipe); in modem_backend_fake_opened_handler() 57 struct modem_backend_fake *backend = data; in modem_backend_fake_open() local 59 backend->open_called = true; in modem_backend_fake_open() 61 if (backend->synchronous) { in modem_backend_fake_open() 62 modem_pipe_notify_opened(&backend->pipe); in modem_backend_fake_open() 64 k_work_schedule(&backend->opened_dwork, TEST_MODEM_PIPE_NOTIFY_TIMEOUT); in modem_backend_fake_open() 73 struct modem_backend_fake *backend = in modem_backend_fake_transmit_idle_handler() local 76 modem_pipe_notify_transmit_idle(&backend->pipe); in modem_backend_fake_transmit_idle_handler() 81 struct modem_backend_fake *backend = data; in modem_backend_fake_transmit() local [all …]
|
/Zephyr-Core-3.6.0/subsys/logging/ |
D | log_cmds.c | 18 const struct log_backend *backend, 50 STRUCT_SECTION_FOREACH(log_backend, backend) { in backend_find() 51 if (strncmp(name, backend->name, slen) == 0) { in backend_find() 52 return backend; in backend_find() 90 const struct log_backend *backend = backend_find(name); in shell_backend_cmd_execute() local 92 if (backend != NULL) { in shell_backend_cmd_execute() 93 func(sh, backend, argc, argv); in shell_backend_cmd_execute() 104 const struct log_backend *backend, in log_status() argument 111 if (backend && !log_backend_is_active(backend)) { in log_status() 121 if (IS_ENABLED(CONFIG_LOG_FRONTEND) && !backend) { in log_status() [all …]
|
D | Kconfig.template.log_format_config | 4 choice "LOG_BACKEND_$(backend)_OUTPUT" 6 default LOG_BACKEND_$(backend)_OUTPUT_TEXT 8 config LOG_BACKEND_$(backend)_OUTPUT_TEXT 13 config LOG_BACKEND_$(backend)_OUTPUT_SYST 17 When enabled backend is used to output syst format logs. 19 config LOG_BACKEND_$(backend)_OUTPUT_DICTIONARY 27 config LOG_BACKEND_$(backend)_OUTPUT_CUSTOM 39 config LOG_BACKEND_$(backend)_OUTPUT_DEFAULT 41 default 0 if LOG_BACKEND_$(backend)_OUTPUT_TEXT 42 default 1 if LOG_BACKEND_$(backend)_OUTPUT_SYST [all …]
|
D | log_mgmt.c | 468 uint32_t z_impl_log_filter_set(struct log_backend const *const backend, in z_impl_log_filter_set() argument 472 int id = (backend == NULL) ? -1 : log_backend_id_get(backend); in z_impl_log_filter_set() 483 uint32_t z_vrfy_log_filter_set(struct log_backend const *const backend, in z_vrfy_log_filter_set() argument 488 K_OOPS(K_SYSCALL_VERIFY_MSG(backend == NULL, in z_vrfy_log_filter_set() 504 struct log_backend const *const backend, in link_filter_set() argument 514 log_filter_set(backend, d, s, level); in link_filter_set() 519 static void backend_filter_set(struct log_backend const *const backend, in backend_filter_set() argument 527 log_filter_set(backend, 0, s, level); in backend_filter_set() 536 link_filter_set(link, backend, level); in backend_filter_set() 542 STRUCT_SECTION_FOREACH(log_backend, backend) { in log_backend_get_by_name() [all …]
|
/Zephyr-Core-3.6.0/subsys/shell/ |
D | shell_log_backend.c | 21 static void fifo_reset(const struct shell_log_backend *backend) in fifo_reset() argument 23 mpsc_pbuf_init(backend->mpsc_buffer, backend->mpsc_buffer_config); in fifo_reset() 26 void z_shell_log_backend_enable(const struct shell_log_backend *backend, in z_shell_log_backend_enable() argument 42 fifo_reset(backend); in z_shell_log_backend_enable() 43 log_backend_enable(backend->backend, ctx, init_log_level); in z_shell_log_backend_enable() 44 log_output_ctx_set(backend->log_output, ctx); in z_shell_log_backend_enable() 45 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() 50 void z_shell_log_backend_disable(const struct shell_log_backend *backend) in z_shell_log_backend_disable() argument 52 log_backend_disable(backend->backend); in z_shell_log_backend_disable() [all …]
|
/Zephyr-Core-3.6.0/tests/subsys/logging/log_api/src/ |
D | mock_backend.c | 11 void mock_log_backend_reset(const struct log_backend *backend) in mock_log_backend_reset() argument 13 struct mock_log_backend *mock = backend->cb->ctx; in mock_log_backend_reset() 23 void mock_log_backend_check_enable(const struct log_backend *backend) in mock_log_backend_check_enable() argument 25 struct mock_log_backend *mock = backend->cb->ctx; in mock_log_backend_check_enable() 30 void mock_log_backend_check_disable(const struct log_backend *backend) in mock_log_backend_check_disable() argument 32 struct mock_log_backend *mock = backend->cb->ctx; 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() argument 39 struct mock_log_backend *mock = backend->cb->ctx; 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() argument 50 struct mock_log_backend *mock = backend->cb->ctx; in mock_log_backend_drop_record() [all …]
|
D | mock_backend.h | 44 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() argument 68 mock_log_backend_generic_record(backend, source_id, domain_id, level, in mock_log_backend_record() 72 void mock_log_backend_validate(const struct log_backend *backend, bool panic);
|
/Zephyr-Core-3.6.0/tests/subsys/logging/log_syst/src/ |
D | main.c | 134 const struct log_backend *backend; in before() local 137 backend = log_backend_get(i); in before() 138 if (backend == &log_backend_mock) { in before() 139 log_backend_enable(backend, NULL, 4); in before() 141 log_backend_disable(backend); in before() 148 const struct log_backend *backend; in after() local 151 backend = log_backend_get(i); in after() 152 if (backend == &log_backend_mock) { in after() 153 log_backend_disable(backend); in after() 155 log_backend_enable(backend, backend->cb->ctx, 4); in after()
|
/Zephyr-Core-3.6.0/subsys/logging/backends/ |
D | log_backend_efi_console.c | 41 static void process(const struct log_backend *const backend, in process() argument 55 static int format_set(const struct log_backend *const backend, uint32_t log_type) in format_set() argument 61 static void log_backend_efi_init(struct log_backend const *const backend) in log_backend_efi_init() argument 63 ARG_UNUSED(backend); in log_backend_efi_init() 67 static void panic(struct log_backend const *const backend) in panic() argument 73 static void dropped(const struct log_backend *const backend, uint32_t cnt) in dropped() argument 75 ARG_UNUSED(backend); in dropped()
|
D | log_backend_spinel.c | 32 static void process(const struct log_backend *const backend, in process() argument 43 static int format_set(const struct log_backend *const backend, uint32_t log_type) in format_set() argument 49 static void log_backend_spinel_init(struct log_backend const *const backend) in log_backend_spinel_init() argument 54 static void panic(struct log_backend const *const backend) in panic() argument 56 ARG_UNUSED(backend); in panic() 60 static void dropped(const struct log_backend *const backend, uint32_t cnt) in dropped() argument 62 ARG_UNUSED(backend); in dropped()
|
D | Kconfig.uart | 5 bool "UART backend" 10 When enabled backend is using UART to output logs. 25 RAM before log_output_flush is automatically called on the UART backend. The buffer 32 bool "Automatically start UART backend" 35 When enabled automatically start the UART logging backend on 37 the backend manually using log_backend_enable(). 39 backend = UART 40 backend-str = uart 57 Dictionary-based logging output in hexadecimal. Supported only for UART backend.
|
D | Kconfig.native_posix | 5 bool "Native backend" 10 Enable backend in native_posix 14 backend = NATIVE_POSIX 15 backend-str = native_posix
|
D | log_backend_ble.c | 150 static void process(const struct log_backend *const backend, union log_msg_generic *msg) in process() argument 152 ARG_UNUSED(backend); in process() 164 static int format_set(const struct log_backend *const backend, uint32_t log_type) in format_set() argument 166 ARG_UNUSED(backend); in format_set() 171 static void init_ble(struct log_backend const *const backend) in init_ble() argument 173 ARG_UNUSED(backend); in init_ble() 177 static void panic(struct log_backend const *const backend) in panic() argument 179 ARG_UNUSED(backend); in panic() 191 static int backend_ready(const struct log_backend *const backend) in backend_ready() argument 193 ARG_UNUSED(backend); in backend_ready()
|
/Zephyr-Core-3.6.0/subsys/ipc/ipc_service/backends/ |
D | Kconfig | 5 int "Initialization priority of modules registering IPC backend" 8 The backend must be registered before the endpoint register. 11 bool "OpenAMP RPMSG backend with static VRINGs" 20 bool "ICMSG backend with SPSC packet buffer" 26 Chosing this backend results in single endpoint implementation based 30 bool "ICMSG backend with multi-endpoint support in initiator role" 36 Chosing this backend results in multi endpoint implementation based 41 bool "ICMSG backend with multi-endpoint support in follower role" 47 Chosing this backend results in multi endpoint implementation based
|
/Zephyr-Core-3.6.0/tests/subsys/logging/log_switch_format/ |
D | Kconfig | 5 bool "MOCK backend" 8 When enabled MOCK backend is used for logging. It is 14 backend = MOCK 15 backend-str = mock 21 string "DEFAULT backend" 24 Default value for the name of the backend enabled.
|
/Zephyr-Core-3.6.0/samples/net/syslog_net/src/ |
D | main.c | 37 const struct log_backend *backend = log_backend_net_get(); in main() local 39 if (!log_backend_is_active(backend)) { in main() 50 log_backend_init(backend); in main() 51 log_backend_enable(backend, backend->cb->ctx, CONFIG_LOG_MAX_LEVEL); in main()
|
/Zephyr-Core-3.6.0/tests/subsys/logging/log_backend_init/src/ |
D | main.c | 38 static void backend_process(const struct log_backend *const backend, in backend_process() argument 43 struct backend_context *context = (struct backend_context *)backend->cb->ctx; in backend_process() 58 static void panic(const struct log_backend *const backend) in panic() argument 60 ARG_UNUSED(backend); in panic() 71 static void backend_init(const struct log_backend *const backend) in backend_init() argument 73 struct backend_context *context = (struct backend_context *)backend->cb->ctx; in backend_init() 80 static int backend_is_ready(const struct log_backend *const backend) in backend_is_ready() argument 82 struct backend_context *context = (struct backend_context *)backend->cb->ctx; in backend_is_ready()
|