Tracing: Added missing k_thread_heap_assign trace hook

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 <torbjorn.leksell@percepio.com>
This commit is contained in:
Torbjörn Leksell 2021-11-05 07:33:35 +01:00 committed by Anas Nashif
commit 861f2a741f
2 changed files with 8 additions and 0 deletions

View file

@ -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)

View file

@ -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 */
/**