tracing: riscv: fix tracing of context switch
We had switched_in and switched_out mixed up. Signed-off-by: Anas Nashif <anas.nashif@intel.com>
This commit is contained in:
parent
b234660f4f
commit
caa348034f
1 changed files with 4 additions and 1 deletions
|
@ -371,7 +371,7 @@ on_thread_stack:
|
|||
|
||||
reschedule:
|
||||
#if CONFIG_TRACING
|
||||
call sys_trace_thread_switched_in
|
||||
call sys_trace_thread_switched_out
|
||||
#endif
|
||||
/* Get reference to _kernel */
|
||||
la t0, _kernel
|
||||
|
@ -526,6 +526,9 @@ skip_load_fp_caller_saved_benchmark:
|
|||
/* Release stack space */
|
||||
addi sp, sp, __z_arch_esf_t_SIZEOF
|
||||
#endif
|
||||
#if CONFIG_TRACING
|
||||
call sys_trace_thread_switched_in
|
||||
#endif
|
||||
|
||||
no_reschedule:
|
||||
#ifdef CONFIG_RISCV_SOC_CONTEXT_SAVE
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue