zephyr/subsys/logging
Piotr Zięcik 892ab4e356 logging: Add basic userspace support
This commit adds basic userspace support to the logging subsystem.
With this change, the following API could be called from user mode:
- LOG_*()
- LOG_INST_*(),
- LOG_HEXDUMP_*(),
- LOG_HEXDUMP_INST_*(),
- LOG_PANIC(), LOG_PROCESS(),
- log_printk(), log_generic(), log_buffrered_cnt(),
- log_filter_set(NULL, ...)

With userspace disabled, the logger behavior and performance
is not affected. With userspace enabled, the calls from kernel
space have an additional overhead introduced by _is_user_context().

The logger behavior changes when it is called from the user context.
All strings logged using LOG_*() and LOG_INST_*() API from userspace
are rendered in place for security reasons and then placed in
log_strdup() memory pool, which should be large enough to hold bursts
of log messages.

Signed-off-by: Andrew Boie <andrew.p.boie@intel.com>
Signed-off-by: Piotr Zięcik <piotr.ziecik@nordicsemi.no>
2019-08-27 14:29:21 -04:00
..
CMakeLists.txt logging: Add qemu_x86_64 backend 2019-07-18 18:16:39 -04:00
Kconfig logging: Add basic userspace support 2019-08-27 14:29:21 -04:00
Kconfig.template.log_config
log_backend_native_posix.c logging: Clean up log.h dependencies 2019-08-01 14:42:40 +02:00
log_backend_net.c
log_backend_qemu_x86_64.c logging: Add qemu_x86_64 backend 2019-07-18 18:16:39 -04:00
log_backend_rtt.c logging: Removing redundant code from RTT backend 2019-07-18 18:16:39 -04:00
log_backend_std.h logging: Clean up log.h dependencies 2019-08-01 14:42:40 +02:00
log_backend_swo.c logging: log_backend_swo: Get clock frequency from DTS 2019-07-24 15:10:02 +02:00
log_backend_uart.c logging: Removing redundant code from UART backend 2019-07-18 18:16:39 -04:00
log_backend_xtensa_sim.c logging: Removing redundant code from xtensa sim backend 2019-07-18 18:16:39 -04:00
log_cmds.c
log_core.c logging: Add basic userspace support 2019-08-27 14:29:21 -04:00
log_list.c
log_list.h
log_msg.c logging: Add basic userspace support 2019-08-27 14:29:21 -04:00
log_output.c