Skip to content

Commit d354d2e

Browse files
committed
mips: tracing: add switched_out trace point
add missing switched_out trace point. Partially fixes #76057 Signed-off-by: Anas Nashif <[email protected]>
1 parent 6f937c9 commit d354d2e

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

arch/mips/core/isr.S

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -70,6 +70,7 @@ GTEXT(_Fault)
7070

7171
GTEXT(_k_neg_eagain)
7272
GTEXT(z_thread_mark_switched_in)
73+
GTEXT(z_thread_mark_switched_out)
7374

7475
/* exports */
7576
GTEXT(__isr_vec)
@@ -209,6 +210,9 @@ on_thread_stack:
209210
#endif /* CONFIG_PREEMPT_ENABLED */
210211

211212
reschedule:
213+
#ifdef CONFIG_INSTRUMENT_THREAD_SWITCHING
214+
jal z_thread_mark_switched_out
215+
#endif
212216
/*
213217
* Check if the current thread is the same as the thread on the ready Q. If
214218
* so, do not reschedule.

0 commit comments

Comments
 (0)