zephyr/subsys/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
..
backends logging: backends: xtensa_sim: Drop SoC dependencies 2025-03-27 09:51:17 +01:00
frontends logging: frontends: stmesp: Fix sending string location 2025-04-01 16:26:50 +02:00
mipi_syst
CMakeLists.txt logging: Move frontends to the dedicated directory 2024-09-06 11:31:27 -04:00
Kconfig logging: Move frontends to the dedicated directory 2024-09-06 11:31:27 -04:00
Kconfig.filtering logging: Allow runtime filtering for frontend only case 2024-07-09 14:01:56 +02:00
Kconfig.formatting logging: remove part for when gmtime_r is not available 2024-12-10 08:06:25 +01:00
Kconfig.links
Kconfig.misc logging: Added config to disable vla in statements 2025-03-11 18:55:08 +01:00
Kconfig.mode log: fix log_flush() 2025-03-07 20:20:00 +01:00
Kconfig.processing logging: increase the maximum value of LOG_BUFFER_SIZE 2024-12-12 19:59:51 +01:00
Kconfig.template.log_config
Kconfig.template.log_config_inherit
Kconfig.template.log_format_config logging: Fix LOG_OUTPUT dependency 2024-10-09 18:37:49 +01:00
log_cache.c logging: log_cache: ensure cache contains an entry 2024-05-13 16:05:18 -04:00
log_cache.h
log_cmds.c logging: log_cmds: init uninitialized backend on log_go() 2025-02-04 15:00:58 +01:00
log_core.c logging: Assign module data to memory partition 'k_log_partition' 2025-04-23 02:15:25 +02:00
log_link_ipc_service.c
log_mgmt.c logging: init backend id regardless of autostart 2025-02-04 15:00:58 +01:00
log_minimal.c coding guidelines: comply with MISRA Rule 12.1. 2024-06-03 16:10:33 -04:00
log_msg.c logging: Fix runtime message creation in user-mode thread 2025-04-23 02:15:25 +02:00
log_multidomain_link.c logging: multidomain_link: fix crash caused by drop notification 2024-04-18 11:12:35 +02:00
log_output_custom.c
log_output_dict.c logging: log_output: Move flushing and writing to the header 2024-10-09 18:37:49 +01:00
log_output_syst.c logging: Add log_source_id helper function 2024-10-08 16:57:59 +02:00
log_output.c logging: log_output: move partly unused code 2024-12-10 08:06:25 +01:00