kernel: remove object tracing
Remove this intrusive tracing feature in favor of the new object tracing
using the main tracing feature in zephyr. See #33603 for the new tracing
coverage for all objects.
This will allow for support in more tools and less reliance on GDB for
tracing objects.
Signed-off-by: Anas Nashif <anas.nashif@intel.com>
diff --git a/kernel/msg_q.c b/kernel/msg_q.c
index b9899e2..30af2a5 100644
--- a/kernel/msg_q.c
+++ b/kernel/msg_q.c
@@ -12,7 +12,7 @@
#include <kernel.h>
#include <kernel_structs.h>
-#include <debug/object_tracing_common.h>
+
#include <toolchain.h>
#include <linker/sections.h>
#include <string.h>
@@ -25,27 +25,6 @@
#include <kernel_internal.h>
#include <sys/check.h>
-#ifdef CONFIG_OBJECT_TRACING
-
-struct k_msgq *_trace_list_k_msgq;
-
-/*
- * Complete initialization of statically defined message queues.
- */
-static int init_msgq_module(const struct device *dev)
-{
- ARG_UNUSED(dev);
-
- Z_STRUCT_SECTION_FOREACH(k_msgq, msgq) {
- SYS_TRACING_OBJ_INIT(k_msgq, msgq);
- }
- return 0;
-}
-
-SYS_INIT(init_msgq_module, PRE_KERNEL_1, CONFIG_KERNEL_INIT_PRIORITY_OBJECTS);
-
-#endif /* CONFIG_OBJECT_TRACING */
-
#ifdef CONFIG_POLL
static inline void handle_poll_events(struct k_msgq *msgq, uint32_t state)
{
@@ -72,8 +51,6 @@
SYS_PORT_TRACING_OBJ_INIT(k_msgq, msgq);
- SYS_TRACING_OBJ_INIT(k_msgq, msgq);
-
z_object_init(msgq);
}