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:
Anas Nashif 2018-07-04 08:03:03 -05:00
commit b6304e66f6
17 changed files with 206 additions and 25 deletions

View file

@ -43,10 +43,10 @@ GDATA(_kernel)
SECTION_FUNC(TEXT, __pendsv)
#ifdef CONFIG_KERNEL_EVENT_LOGGER_CONTEXT_SWITCH
#ifdef CONFIG_TRACING
/* Register the context switch */
push {lr}
bl _sys_k_event_logger_context_switch
bl sys_trace_thread_switched_in
#if defined(CONFIG_ARMV6_M_ARMV8_M_BASELINE)
pop {r0}
mov lr, r0