zephyr/include/zephyr/logging
Christoph Winklhofer 8c7aded4c1 logging: Assign module data to memory partition 'k_log_partition'
The logging module data is assigned to the memory partition
'k_log_partition' so that a user mode thread can access this data (see
k_mem_domain_add_thread()). The 'k_log_partition' is created when:
- CONFIG_USERSPACE=y
- CONFIG_LOG_ALWAYS_RUNTIME=y

The option CONFIG_NO_OPTIMIZATIONS=y forces the logging module to use
the runtime message creation CONFIG_LOG_ALWAYS_RUNTIME=y. This raises a
MPU violation when logging is used in a user mode thread since this
thread is not allowed to access the module data (e.g. __log_level,
__log_current_const_data).

Note that the user mode thread may also require access to the partition
'z_libc_partition'.

Signed-off-by: Christoph Winklhofer <cj.winklhofer@gmail.com>
2025-04-23 02:15:25 +02:00
..
log_backend_adsp_hda.h
log_backend_adsp_mtrace.h
log_backend_ble.h Bluetooth: Rename BLE to Bluetooth (LE) where applicable 2025-02-12 12:24:18 +01:00
log_backend_net.h
log_backend_std.h
log_backend_ws.h
log_backend.h logging: log_cmds: init uninitialized backend on log_go() 2025-02-04 15:00:58 +01:00
log_core.h everywhere: Use correct macro for gcc-specific warnings 2025-03-20 21:57:47 +01:00
log_ctrl.h logging: Add a log flush operation 2025-01-15 09:33:28 +01:00
log_frontend_stmesp_demux.h doc: stmesp: move to logging group 2025-04-18 17:46:50 +02:00
log_frontend_stmesp.h logging: frontend_stmesp: Fix string addresses from remote core 2025-04-01 16:26:50 +02:00
log_frontend.h
log_instance.h
log_internal.h
log_link.h
log_msg.h sys: cbprintf: logging: Fix opaque struct pointer warning 2025-03-25 11:00:42 +01:00
log_multidomain_helper.h
log_output_custom.h
log_output_dict.h
log_output.h
log.h logging: Assign module data to memory partition 'k_log_partition' 2025-04-23 02:15:25 +02:00