debug: move debug features from misc to subsys/debug
Change-Id: I446be0202325cf3cead7ce3024ca2047e3f7660d Signed-off-by: Anas Nashif <anas.nashif@intel.com>
This commit is contained in:
parent
a9e879e273
commit
569f0b4105
32 changed files with 25 additions and 26 deletions
|
@ -23,7 +23,7 @@
|
||||||
#include <kernel_structs.h>
|
#include <kernel_structs.h>
|
||||||
#include <string.h>
|
#include <string.h>
|
||||||
#include <debug/gdb_arch.h>
|
#include <debug/gdb_arch.h>
|
||||||
#include <misc/debug/gdb_server.h>
|
#include <debug/gdb_server.h>
|
||||||
|
|
||||||
#define TRACE_FLAG 0x0100 /* EFLAGS:TF */
|
#define TRACE_FLAG 0x0100 /* EFLAGS:TF */
|
||||||
#define INT_FLAG 0x0200 /* EFLAGS:IF */
|
#define INT_FLAG 0x0200 /* EFLAGS:IF */
|
||||||
|
|
|
@ -22,7 +22,7 @@ extern "C" {
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#include <kernel_structs.h>
|
#include <kernel_structs.h>
|
||||||
#include <misc/debug/gdb_server.h>
|
#include <debug/gdb_server.h>
|
||||||
|
|
||||||
#define GDB_ARCH_HAS_ALL_REGS
|
#define GDB_ARCH_HAS_ALL_REGS
|
||||||
|
|
||||||
|
|
|
@ -21,7 +21,7 @@
|
||||||
#define __RING_BUFFER_H__
|
#define __RING_BUFFER_H__
|
||||||
|
|
||||||
#include <nanokernel.h>
|
#include <nanokernel.h>
|
||||||
#include <misc/debug/object_tracing_common.h>
|
#include <debug/object_tracing_common.h>
|
||||||
#include <misc/util.h>
|
#include <misc/util.h>
|
||||||
#include <errno.h>
|
#include <errno.h>
|
||||||
|
|
||||||
|
|
|
@ -21,7 +21,7 @@
|
||||||
|
|
||||||
#include <kernel.h>
|
#include <kernel.h>
|
||||||
#include <kernel_structs.h>
|
#include <kernel_structs.h>
|
||||||
#include <misc/debug/object_tracing_common.h>
|
#include <debug/object_tracing_common.h>
|
||||||
#include <atomic.h>
|
#include <atomic.h>
|
||||||
#include <init.h>
|
#include <init.h>
|
||||||
#include <toolchain.h>
|
#include <toolchain.h>
|
||||||
|
|
|
@ -23,7 +23,7 @@
|
||||||
|
|
||||||
#include <kernel.h>
|
#include <kernel.h>
|
||||||
#include <kernel_structs.h>
|
#include <kernel_structs.h>
|
||||||
#include <misc/debug/object_tracing_common.h>
|
#include <debug/object_tracing_common.h>
|
||||||
#include <toolchain.h>
|
#include <toolchain.h>
|
||||||
#include <sections.h>
|
#include <sections.h>
|
||||||
#include <wait_q.h>
|
#include <wait_q.h>
|
||||||
|
|
|
@ -21,7 +21,7 @@
|
||||||
|
|
||||||
#include <kernel.h>
|
#include <kernel.h>
|
||||||
#include <kernel_structs.h>
|
#include <kernel_structs.h>
|
||||||
#include <misc/debug/object_tracing_common.h>
|
#include <debug/object_tracing_common.h>
|
||||||
#include <toolchain.h>
|
#include <toolchain.h>
|
||||||
#include <sections.h>
|
#include <sections.h>
|
||||||
#include <wait_q.h>
|
#include <wait_q.h>
|
||||||
|
|
|
@ -20,7 +20,7 @@
|
||||||
|
|
||||||
#include <kernel.h>
|
#include <kernel.h>
|
||||||
#include <kernel_structs.h>
|
#include <kernel_structs.h>
|
||||||
#include <misc/debug/object_tracing_common.h>
|
#include <debug/object_tracing_common.h>
|
||||||
#include <toolchain.h>
|
#include <toolchain.h>
|
||||||
#include <sections.h>
|
#include <sections.h>
|
||||||
#include <string.h>
|
#include <string.h>
|
||||||
|
|
|
@ -20,7 +20,7 @@
|
||||||
|
|
||||||
#include <kernel.h>
|
#include <kernel.h>
|
||||||
#include <kernel_structs.h>
|
#include <kernel_structs.h>
|
||||||
#include <misc/debug/object_tracing_common.h>
|
#include <debug/object_tracing_common.h>
|
||||||
#include <ksched.h>
|
#include <ksched.h>
|
||||||
#include <wait_q.h>
|
#include <wait_q.h>
|
||||||
#include <init.h>
|
#include <init.h>
|
||||||
|
|
|
@ -16,7 +16,7 @@
|
||||||
|
|
||||||
#include <kernel.h>
|
#include <kernel.h>
|
||||||
#include <kernel_structs.h>
|
#include <kernel_structs.h>
|
||||||
#include <misc/debug/object_tracing_common.h>
|
#include <debug/object_tracing_common.h>
|
||||||
#include <toolchain.h>
|
#include <toolchain.h>
|
||||||
#include <sections.h>
|
#include <sections.h>
|
||||||
#include <wait_q.h>
|
#include <wait_q.h>
|
||||||
|
|
|
@ -22,7 +22,7 @@
|
||||||
|
|
||||||
#include <kernel.h>
|
#include <kernel.h>
|
||||||
#include <kernel_structs.h>
|
#include <kernel_structs.h>
|
||||||
#include <misc/debug/object_tracing_common.h>
|
#include <debug/object_tracing_common.h>
|
||||||
#include <toolchain.h>
|
#include <toolchain.h>
|
||||||
#include <sections.h>
|
#include <sections.h>
|
||||||
#include <string.h>
|
#include <string.h>
|
||||||
|
|
|
@ -42,7 +42,7 @@
|
||||||
#include <sections.h>
|
#include <sections.h>
|
||||||
#include <wait_q.h>
|
#include <wait_q.h>
|
||||||
#include <misc/dlist.h>
|
#include <misc/dlist.h>
|
||||||
#include <misc/debug/object_tracing_common.h>
|
#include <debug/object_tracing_common.h>
|
||||||
#include <errno.h>
|
#include <errno.h>
|
||||||
#include <init.h>
|
#include <init.h>
|
||||||
|
|
||||||
|
|
|
@ -22,7 +22,7 @@
|
||||||
|
|
||||||
#include <kernel.h>
|
#include <kernel.h>
|
||||||
#include <kernel_structs.h>
|
#include <kernel_structs.h>
|
||||||
#include <misc/debug/object_tracing_common.h>
|
#include <debug/object_tracing_common.h>
|
||||||
#include <toolchain.h>
|
#include <toolchain.h>
|
||||||
#include <sections.h>
|
#include <sections.h>
|
||||||
#include <wait_q.h>
|
#include <wait_q.h>
|
||||||
|
|
|
@ -28,7 +28,7 @@
|
||||||
|
|
||||||
#include <kernel.h>
|
#include <kernel.h>
|
||||||
#include <kernel_structs.h>
|
#include <kernel_structs.h>
|
||||||
#include <misc/debug/object_tracing_common.h>
|
#include <debug/object_tracing_common.h>
|
||||||
#include <toolchain.h>
|
#include <toolchain.h>
|
||||||
#include <sections.h>
|
#include <sections.h>
|
||||||
#include <wait_q.h>
|
#include <wait_q.h>
|
||||||
|
|
|
@ -20,7 +20,7 @@
|
||||||
|
|
||||||
#include <kernel.h>
|
#include <kernel.h>
|
||||||
#include <kernel_structs.h>
|
#include <kernel_structs.h>
|
||||||
#include <misc/debug/object_tracing_common.h>
|
#include <debug/object_tracing_common.h>
|
||||||
#include <toolchain.h>
|
#include <toolchain.h>
|
||||||
#include <sections.h>
|
#include <sections.h>
|
||||||
#include <ksched.h>
|
#include <ksched.h>
|
||||||
|
|
|
@ -15,7 +15,7 @@
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include <kernel.h>
|
#include <kernel.h>
|
||||||
#include <misc/debug/object_tracing_common.h>
|
#include <debug/object_tracing_common.h>
|
||||||
#include <init.h>
|
#include <init.h>
|
||||||
#include <wait_q.h>
|
#include <wait_q.h>
|
||||||
|
|
||||||
|
|
|
@ -217,8 +217,6 @@ config OMIT_FRAME_POINTER
|
||||||
trace. Recommended only for production builds which do not need to be
|
trace. Recommended only for production builds which do not need to be
|
||||||
debugged.
|
debugged.
|
||||||
|
|
||||||
source "misc/debug/Kconfig"
|
|
||||||
|
|
||||||
endmenu
|
endmenu
|
||||||
|
|
||||||
menu "System Monitoring Options"
|
menu "System Monitoring Options"
|
||||||
|
|
|
@ -9,5 +9,3 @@ obj-$(CONFIG_REBOOT) += reboot.o
|
||||||
obj-$(CONFIG_RING_BUFFER) += ring_buffer.o
|
obj-$(CONFIG_RING_BUFFER) += ring_buffer.o
|
||||||
|
|
||||||
obj-y += generated/
|
obj-y += generated/
|
||||||
|
|
||||||
obj-y += debug/
|
|
||||||
|
|
|
@ -290,7 +290,7 @@ def kernel_main_c_header():
|
||||||
do_not_edit_warning +
|
do_not_edit_warning +
|
||||||
"\n" +
|
"\n" +
|
||||||
"#include <sysgen.h>\n" +
|
"#include <sysgen.h>\n" +
|
||||||
"#include <misc/debug/object_tracing_common.h>\n" +
|
"#include <debug/object_tracing_common.h>\n" +
|
||||||
"#include <kernel.h>\n" +
|
"#include <kernel.h>\n" +
|
||||||
"#include <toolchain.h>\n" +
|
"#include <toolchain.h>\n" +
|
||||||
"#include <sections.h>\n")
|
"#include <sections.h>\n")
|
||||||
|
|
|
@ -24,3 +24,5 @@ source "subsys/bluetooth/Kconfig"
|
||||||
source "subsys/net/Kconfig"
|
source "subsys/net/Kconfig"
|
||||||
|
|
||||||
source "subsys/logging/Kconfig"
|
source "subsys/logging/Kconfig"
|
||||||
|
|
||||||
|
source "subsys/debug/Kconfig"
|
||||||
|
|
|
@ -3,3 +3,4 @@ obj-$(CONFIG_USB) += usb/
|
||||||
obj-$(CONFIG_BLUETOOTH) += bluetooth/
|
obj-$(CONFIG_BLUETOOTH) += bluetooth/
|
||||||
obj-$(CONFIG_NET_BUF) += net/
|
obj-$(CONFIG_NET_BUF) += net/
|
||||||
obj-y += logging/
|
obj-y += logging/
|
||||||
|
obj-y += debug/
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
ccflags-y +=-I$(srctree)/include/misc/debug
|
ccflags-y +=-I$(srctree)/include/debug
|
||||||
CFLAGS_gdb_server.o =-I$(srctree)/include/drivers
|
CFLAGS_gdb_server.o =-I$(srctree)/include/drivers
|
||||||
|
|
||||||
obj-y =
|
obj-y =
|
|
@ -335,7 +335,7 @@
|
||||||
#include <cache.h>
|
#include <cache.h>
|
||||||
#include <init.h>
|
#include <init.h>
|
||||||
#include <debug/gdb_arch.h>
|
#include <debug/gdb_arch.h>
|
||||||
#include <misc/debug/mem_safe.h>
|
#include <debug/mem_safe.h>
|
||||||
#include <gdb_server.h>
|
#include <gdb_server.h>
|
||||||
#include <debug_info.h>
|
#include <debug_info.h>
|
||||||
#ifdef CONFIG_GDB_SERVER_INTERRUPT_DRIVEN
|
#ifdef CONFIG_GDB_SERVER_INTERRUPT_DRIVEN
|
|
@ -27,7 +27,7 @@
|
||||||
#include <toolchain.h>
|
#include <toolchain.h>
|
||||||
#include <linker-defs.h>
|
#include <linker-defs.h>
|
||||||
#include <misc/util.h>
|
#include <misc/util.h>
|
||||||
#include <misc/debug/mem_safe.h>
|
#include <debug/mem_safe.h>
|
||||||
#include <string.h>
|
#include <string.h>
|
||||||
|
|
||||||
#define NUM_REGIONS (CONFIG_MEM_SAFE_NUM_EXTRA_REGIONS + 2)
|
#define NUM_REGIONS (CONFIG_MEM_SAFE_NUM_EXTRA_REGIONS + 2)
|
|
@ -22,7 +22,7 @@
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
#include <misc/util.h>
|
#include <misc/util.h>
|
||||||
#include <linker-defs.h>
|
#include <linker-defs.h>
|
||||||
#include <misc/debug/mem_safe.h>
|
#include <debug/mem_safe.h>
|
||||||
#include <tc_util.h>
|
#include <tc_util.h>
|
||||||
#include <cache.h>
|
#include <cache.h>
|
||||||
|
|
||||||
|
|
|
@ -19,7 +19,7 @@
|
||||||
#include <zephyr.h>
|
#include <zephyr.h>
|
||||||
#include <tc_util.h>
|
#include <tc_util.h>
|
||||||
#include <util_test_common.h>
|
#include <util_test_common.h>
|
||||||
#include <misc/debug/object_tracing.h>
|
#include <debug/object_tracing.h>
|
||||||
#include "phil.h"
|
#include "phil.h"
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
|
@ -19,7 +19,7 @@
|
||||||
#include <zephyr.h>
|
#include <zephyr.h>
|
||||||
#include <tc_util.h>
|
#include <tc_util.h>
|
||||||
#include <util_test_common.h>
|
#include <util_test_common.h>
|
||||||
#include <misc/debug/object_tracing.h>
|
#include <debug/object_tracing.h>
|
||||||
#include "phil.h"
|
#include "phil.h"
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue