Skip to content
Permalink
Browse files

debug: tracing: Fix tracing hooks

Change removes tracing hooks before threads are initialized
and thread switched out hook for ARM before first time switching
to main thread.

Signed-off-by: Marek Pieta <Marek.Pieta@nordicsemi.no>
  • Loading branch information...
MarekPieta authored and nashif committed Jun 6, 2019
1 parent 71260d8 commit b83f99a14cd5aa3e8ee479043e1e96413f08ace6
Showing with 0 additions and 10 deletions.
  1. +0 −3 arch/arm/include/kernel_arch_func.h
  2. +0 −7 kernel/init.c
@@ -79,9 +79,6 @@ z_arch_switch_to_main_thread(struct k_thread *main_thread,

start_of_main_stack = (char *)STACK_ROUND_DOWN(start_of_main_stack);

#ifdef CONFIG_TRACING
z_sys_trace_thread_switched_out();
#endif
_current = main_thread;
#ifdef CONFIG_TRACING
z_sys_trace_thread_switched_in();
@@ -323,13 +323,6 @@ static void prepare_multithreading(struct k_thread *dummy_thread)
ARG_UNUSED(dummy_thread);
#else

#ifdef CONFIG_TRACING
sys_trace_thread_switched_out();
#endif
#ifdef CONFIG_TRACING
sys_trace_thread_switched_in();
#endif

/*
* Initialize the current execution thread to permit a level of
* debugging output if an exception should happen during kernel

0 comments on commit b83f99a

Please sign in to comment.
You can’t perform that action at this time.