Tracing: Fixed TraceRecorder inclusion problem
Moved conditional inclusion of tracing_tracerecorder.h from the start of tracing.h to the bottom. This was the initial placement of this include but it was moved as part of PR #40126. If this file is included at the start of tracing.h the TraceRecorder module hooks will not map correctly and completely breaks that module. Signed-off-by: Torbjörn Leksell <torbjorn.leksell@percepio.com>
This commit is contained in:
parent
48434ee1dd
commit
e955b6540d
1 changed files with 24 additions and 24 deletions
|
@ -37,30 +37,6 @@
|
|||
* @{
|
||||
*/
|
||||
|
||||
#if defined(CONFIG_PERCEPIO_TRACERECORDER)
|
||||
#include "tracing_tracerecorder.h"
|
||||
#else
|
||||
/**
|
||||
* @brief Called when entering an ISR
|
||||
*/
|
||||
void sys_trace_isr_enter(void);
|
||||
|
||||
/**
|
||||
* @brief Called when exiting an ISR
|
||||
*/
|
||||
void sys_trace_isr_exit(void);
|
||||
|
||||
/**
|
||||
* @brief Called when exiting an ISR and switching to scheduler
|
||||
*/
|
||||
void sys_trace_isr_exit_to_scheduler(void);
|
||||
|
||||
/**
|
||||
* @brief Called when the cpu enters the idle state
|
||||
*/
|
||||
void sys_trace_idle(void);
|
||||
#endif /* CONFIG_PERCEPIO_TRACERECORDER */
|
||||
|
||||
/**
|
||||
* @brief Thread Tracing APIs
|
||||
* @defgroup subsys_tracing_apis_thread Thread Tracing APIs
|
||||
|
@ -2028,6 +2004,30 @@ void sys_trace_idle(void);
|
|||
|
||||
/** @} */ /* end of subsys_tracing_apis_pm_device_runtime */
|
||||
|
||||
#if defined(CONFIG_PERCEPIO_TRACERECORDER)
|
||||
#include "tracing_tracerecorder.h"
|
||||
#else
|
||||
/**
|
||||
* @brief Called when entering an ISR
|
||||
*/
|
||||
void sys_trace_isr_enter(void);
|
||||
|
||||
/**
|
||||
* @brief Called when exiting an ISR
|
||||
*/
|
||||
void sys_trace_isr_exit(void);
|
||||
|
||||
/**
|
||||
* @brief Called when exiting an ISR and switching to scheduler
|
||||
*/
|
||||
void sys_trace_isr_exit_to_scheduler(void);
|
||||
|
||||
/**
|
||||
* @brief Called when the cpu enters the idle state
|
||||
*/
|
||||
void sys_trace_idle(void);
|
||||
#endif /* CONFIG_PERCEPIO_TRACERECORDER */
|
||||
|
||||
/** @} */ /* end of subsys_tracing_apis */
|
||||
|
||||
/** @} */ /* end of subsys_tracing */
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue