From 861f2a741f4dbace3f296b03c1974d4194af1cfb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Torbj=C3=B6rn=20Leksell?= Date: Fri, 5 Nov 2021 07:33:35 +0100 Subject: [PATCH] Tracing: Added missing k_thread_heap_assign trace hook MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Added missing k_thread_heap_assign trace hook call which all trace systems have defined but which was never called by the system. Signed-off-by: Torbjörn Leksell --- include/kernel.h | 1 + include/tracing/tracing.h | 7 +++++++ 2 files changed, 8 insertions(+) diff --git a/include/kernel.h b/include/kernel.h index 01acc85635c..04f488c0419 100644 --- a/include/kernel.h +++ b/include/kernel.h @@ -359,6 +359,7 @@ static inline void k_thread_heap_assign(struct k_thread *thread, struct k_heap *heap) { thread->resource_pool = heap; + SYS_PORT_TRACING_FUNC(k_thread, heap_assign, thread, heap); } #if defined(CONFIG_INIT_STACKS) && defined(CONFIG_THREAD_STACK_INFO) diff --git a/include/tracing/tracing.h b/include/tracing/tracing.h index 6384505cda8..586b43b747c 100644 --- a/include/tracing/tracing.h +++ b/include/tracing/tracing.h @@ -326,6 +326,13 @@ void sys_trace_idle(void); */ #define sys_port_trace_k_thread_sched_suspend(thread) +/** + * @brief Trace thread heap assignment + * @param thread Thread object + * @param heap Heap object + */ +#define sys_port_trace_k_thread_heap_assign(thread, heap) + /** @}c*/ /* end of subsys_tracing_apis_thread */ /**