arm: cortex_m: tracing for custom thread abort func

ARM/Cortex-M has a custom implementation for thread abort
(z_impl_k_thread_abort) which lacks the tracing function
calls as in the generic version. So add them.

Signed-off-by: Daniel Leung <daniel.leung@intel.com>
This commit is contained in:
Daniel Leung 2024-03-12 12:40:10 -07:00 committed by David Leach
parent 58ef5fb78e
commit a951f96766

View file

@ -25,6 +25,8 @@
void z_impl_k_thread_abort(k_tid_t thread)
{
SYS_PORT_TRACING_OBJ_FUNC_ENTER(k_thread, abort, thread);
if (_current == thread) {
if (arch_is_in_isr()) {
/* ARM is unlike most arches in that this is true
@ -49,4 +51,6 @@ void z_impl_k_thread_abort(k_tid_t thread)
}
z_thread_abort(thread);
SYS_PORT_TRACING_OBJ_FUNC_EXIT(k_thread, abort, thread);
}