Skip to content

Commit 8647e2f

Browse files
robertszczepanskinashif
authored andcommitted
tracing: riscv: Add missing invoke of sys_trace_isr_exit()
Change suggested by @WealianLiao in #41995. Signed-off-by: Robert Szczepanski <[email protected]>
1 parent 87191eb commit 8647e2f

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

arch/riscv/core/isr.S

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -91,6 +91,7 @@ GTEXT(z_riscv_thread_start)
9191

9292
#ifdef CONFIG_TRACING
9393
GTEXT(sys_trace_isr_enter)
94+
GTEXT(sys_trace_isr_exit)
9495
#endif
9596

9697
#ifdef CONFIG_USERSPACE
@@ -492,6 +493,10 @@ on_irq_stack:
492493
/* Call ISR function */
493494
jalr ra, t1, 0
494495

496+
#ifdef CONFIG_TRACING_ISR
497+
call sys_trace_isr_exit
498+
#endif
499+
495500
irq_done:
496501
/* Decrement _current_cpu->nested */
497502
lw t2, ___cpu_t_nested_OFFSET(s0)

0 commit comments

Comments
 (0)