Skip to content

Commit

Permalink
mips: tracing: add switched_out trace point
Browse files Browse the repository at this point in the history
add missing switched_out trace point.

Partially fixes #76057

Signed-off-by: Anas Nashif <anas.nashif@intel.com>
  • Loading branch information
nashif authored and mmahadevan108 committed Nov 6, 2024
1 parent b0b2785 commit 8a824f3
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions arch/mips/core/isr.S
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,7 @@ GTEXT(_Fault)

GTEXT(_k_neg_eagain)
GTEXT(z_thread_mark_switched_in)
GTEXT(z_thread_mark_switched_out)

/* exports */
GTEXT(__isr_vec)
Expand Down Expand Up @@ -209,6 +210,9 @@ on_thread_stack:
#endif /* CONFIG_PREEMPT_ENABLED */

reschedule:
#ifdef CONFIG_INSTRUMENT_THREAD_SWITCHING
jal z_thread_mark_switched_out
#endif
/*
* Check if the current thread is the same as the thread on the ready Q. If
* so, do not reschedule.
Expand Down

0 comments on commit 8a824f3

Please sign in to comment.