Commit 483910ab authored by Anas Nashif's avatar Anas Nashif
Browse files

systemview: add support natively using tracing hooks



Add needed hooks as a subsystem that can be enabled in any application.

Signed-off-by: default avatarAnas Nashif <anas.nashif@intel.com>
parent a2248782
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -37,7 +37,7 @@ SECTION_FUNC(TEXT, k_cpu_idle)

#ifdef CONFIG_TRACING
	push_s blink
	jl    sys_trace_idle
	jl    z_sys_trace_idle
	pop_s blink
#endif

@@ -58,7 +58,7 @@ SECTION_FUNC(TEXT, k_cpu_atomic_idle)

#ifdef CONFIG_TRACING
	push_s blink
	jl    sys_trace_idle
	jl    z_sys_trace_idle
	pop_s blink
#endif

+2 −2
Original line number Diff line number Diff line
@@ -333,13 +333,13 @@ rirq_path:
#endif

#if defined(CONFIG_TRACING)
GTEXT(sys_trace_isr_enter)
GTEXT(z_sys_trace_isr_enter)

.macro log_interrupt_k_event
	clri r0 /* do not interrupt event logger operations */
	push_s r0
	push_s blink
	jl sys_trace_isr_enter
	jl z_sys_trace_isr_enter
	pop_s blink
	pop_s r0
	seti r0
+2 −2
Original line number Diff line number Diff line
@@ -115,7 +115,7 @@ SECTION_FUNC(TEXT, _NanoIdleValClear)
SECTION_FUNC(TEXT, k_cpu_idle)
#ifdef CONFIG_TRACING
	push {lr}
	bl    sys_trace_idle
	bl    z_sys_trace_idle
	pop {r0}
	mov lr, r0
#endif
@@ -159,7 +159,7 @@ SECTION_FUNC(TEXT, k_cpu_idle)
SECTION_FUNC(TEXT, k_cpu_atomic_idle)
#ifdef CONFIG_TRACING
	push {lr}
	bl    sys_trace_idle
	bl    z_sys_trace_idle
	pop {r1}
	mov lr, r1
#endif
+1 −1
Original line number Diff line number Diff line
@@ -179,7 +179,7 @@ void _arch_isr_direct_pm(void)

void _arch_isr_direct_header(void)
{
	sys_trace_isr_enter();
	z_sys_trace_isr_enter();
}

#if defined(CONFIG_ARM_SECURE_FIRMWARE)
+1 −1
Original line number Diff line number Diff line
@@ -48,7 +48,7 @@ SECTION_FUNC(TEXT, _isr_wrapper)
#endif

#ifdef CONFIG_TRACING
	bl sys_trace_isr_enter
	bl z_sys_trace_isr_enter
#endif

#ifdef CONFIG_SYS_POWER_MANAGEMENT
Loading