zephyr/subsys/testsuite/ztest/include
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
..
arch license: cleanup: add SPDX Apache-2.0 license identifier 2019-04-07 08:45:22 -04:00
syscalls logging: Add basic userspace support 2019-08-27 14:29:21 -04:00
kernel_arch_thread.h arch: all: Remove not used struct _caller_saved 2019-04-18 12:24:56 -07:00
offsets.h license: cleanup: add SPDX Apache-2.0 license identifier 2019-04-07 08:45:22 -04:00
syscall_list.h license: cleanup: add SPDX Apache-2.0 license identifier 2019-04-07 08:45:22 -04:00
syscall_macros.h license: cleanup: add SPDX Apache-2.0 license identifier 2019-04-07 08:45:22 -04:00
ztest_assert.h subsys/testsuite: rearrange for standard use of extern "C" 2019-08-19 23:36:59 +02:00
ztest_mock.h subsys/testsuite: rearrange for standard use of extern "C" 2019-08-19 23:36:59 +02:00
ztest_test.h subsys/testsuite: rearrange for standard use of extern "C" 2019-08-19 23:36:59 +02:00
ztest.h subsys/testsuite: rearrange for standard use of extern "C" 2019-08-19 23:36:59 +02:00