Tracing: k_free tracing hook heap reference added

Added heap reference parameter to k_free tracing
hook to allow tracing of the pointer which was
passed as a parameter to a k_free call.
As part of this update the defines
(for this hook) in the various tracing formats
was also updated.

Signed-off-by: Torbjörn Leksell <torbjorn.leksell@percepio.com>
This commit is contained in:
Torbjörn Leksell 2021-11-08 09:09:46 +01:00 committed by Anas Nashif
commit 86d8b36955
7 changed files with 20 additions and 16 deletions

View file

@ -1731,14 +1731,16 @@ void sys_trace_idle(void);
/**
* @brief Trace System Heap free entry
* @param heap Heap object
* @param heap_ref Heap reference
*/
#define sys_port_trace_k_heap_sys_k_free_enter(heap)
#define sys_port_trace_k_heap_sys_k_free_enter(heap, heap_ref)
/**
* @brief Trace System Heap free exit
* @param heap Heap object
* @param heap_ref Heap reference
*/
#define sys_port_trace_k_heap_sys_k_free_exit(heap)
#define sys_port_trace_k_heap_sys_k_free_exit(heap, heap_ref)
/**
* @brief Trace System heap calloc enter