Branch data Line data Source code
1 : : /*
2 : : * Copyright (c) 2019 Intel corporation
3 : : *
4 : : * SPDX-License-Identifier: Apache-2.0
5 : : */
6 : : #include <zephyr/tracing/tracing.h>
7 : : #include <zephyr/debug/cpu_load.h>
8 : :
9 : 0 : __weak void sys_trace_isr_enter(void) {}
10 : :
11 : 0 : __weak void sys_trace_isr_exit(void) {}
12 : :
13 : 0 : __weak void sys_trace_isr_exit_to_scheduler(void) {}
14 : :
15 : 0 : __weak void sys_trace_idle(void)
16 : : {
17 : 0 : if (IS_ENABLED(CONFIG_CPU_LOAD)) {
18 : : cpu_load_on_enter_idle();
19 : : }
20 : 0 : }
21 : :
22 : 0 : __weak void sys_trace_idle_exit(void)
23 : : {
24 : 0 : if (IS_ENABLED(CONFIG_CPU_LOAD)) {
25 : : cpu_load_on_exit_idle();
26 : : }
27 : 0 : }
|