tracing: support generic tracing hooks
Define generic interface and hooks for tracing to replace kernel_event_logger and existing tracing facilities with something more common. Signed-off-by: Anas Nashif <anas.nashif@intel.com>
This commit is contained in:
parent
9038416bdd
commit
b6304e66f6
17 changed files with 206 additions and 25 deletions
|
@ -12,6 +12,7 @@
|
|||
#ifdef CONFIG_KERNEL_EVENT_LOGGER
|
||||
#include <logging/kernel_event_logger.h>
|
||||
#endif /* CONFIG_KERNEL_EVENT_LOGGER */
|
||||
#include <tracing.h>
|
||||
|
||||
#ifdef CONFIG_MULTITHREADING
|
||||
#define _VALID_PRIO(prio, entry_point) \
|
||||
|
@ -225,6 +226,8 @@ static inline void _ready_thread(struct k_thread *thread)
|
|||
_add_thread_to_ready_q(thread);
|
||||
}
|
||||
|
||||
sys_trace_thread_ready(thread);
|
||||
|
||||
#ifdef CONFIG_KERNEL_EVENT_LOGGER_THREAD
|
||||
_sys_k_event_logger_thread_ready(thread);
|
||||
#endif
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue