Skip to content
Permalink
Browse files

logging: use os as a domain for low level system debugging

We had both kernel and os as domains covering low level layers, just use
one and fix the issue of the os domain not being registered.

Signed-off-by: Anas Nashif <anas.nashif@intel.com>
  • Loading branch information...
nashif authored and andrewboie committed Jun 4, 2019
1 parent 69c01d1 commit 6d359df59277fd7f4e6f8af08c10c7d9be56cc74
Showing with 3 additions and 3 deletions.
  1. +1 −1 include/misc/stack.h
  2. +1 −1 kernel/init.c
  3. +1 −1 kernel/userspace.c
@@ -64,7 +64,7 @@ static inline void stack_analyze(const char *name, const char *stack,
unsigned int size)
{
if (IS_ENABLED(CONFIG_INIT_STACKS)) {
LOG_MODULE_DECLARE(kernel, CONFIG_KERNEL_LOG_LEVEL);
LOG_MODULE_DECLARE(os, CONFIG_KERNEL_LOG_LEVEL);

unsigned int unused = stack_unused_space_get(stack, size);
unsigned int pcnt = ((size - unused) * 100U) / size;
@@ -38,7 +38,7 @@
#define IDLE_THREAD_NAME "idle"
#define LOG_LEVEL CONFIG_KERNEL_LOG_LEVEL
#include <logging/log.h>
LOG_MODULE_REGISTER(kernel);
LOG_MODULE_REGISTER(os);

/* boot banner items */
#if defined(CONFIG_MULTITHREADING) && defined(CONFIG_BOOT_DELAY) \
@@ -36,7 +36,7 @@ K_APPMEM_PARTITION_DEFINE(k_mbedtls_partition);

#define LOG_LEVEL CONFIG_KERNEL_LOG_LEVEL
#include <logging/log.h>
LOG_MODULE_DECLARE(kernel);
LOG_MODULE_DECLARE(os);

/* The originally synchronization strategy made heavy use of recursive
* irq_locking, which ports poorly to spinlocks which are

0 comments on commit 6d359df

Please sign in to comment.
You can’t perform that action at this time.