Skip to content

Commit 8a824f3

Browse files
nashifmmahadevan108
authored andcommitted
mips: tracing: add switched_out trace point
add missing switched_out trace point. Partially fixes zephyrproject-rtos#76057 Signed-off-by: Anas Nashif <anas.nashif@intel.com>
1 parent b0b2785 commit 8a824f3

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)