|
19 | 19 |
|
20 | 20 | #else |
21 | 21 |
|
22 | | -/** |
23 | | - * @brief Tracing APIs |
24 | | - * @defgroup tracing_apis Tracing APIs |
25 | | - * @{ |
26 | | - */ |
27 | | - |
28 | | -/** |
29 | | - * @brief Called when entering an ISR |
30 | | - */ |
31 | | -#define sys_trace_isr_enter() |
32 | | - |
33 | | -/** |
34 | | - * @brief Called when exiting an ISR |
35 | | - */ |
36 | | -#define sys_trace_isr_exit() |
37 | | - |
38 | | -/** |
39 | | - * @brief Called when exiting an ISR and switching to scheduler |
40 | | - */ |
41 | | -#define sys_trace_isr_exit_to_scheduler() |
42 | | - |
43 | | -/** |
44 | | - * @brief Called when the cpu enters the idle state |
45 | | - */ |
46 | | -#define sys_trace_idle() |
47 | | -/** |
48 | | - * @} |
49 | | - */ |
50 | | - |
51 | | - |
52 | 22 | /** |
53 | 23 | * @brief Thread Tracing APIs |
54 | 24 | * @defgroup thread_tracing_apis Thread Tracing APIs |
|
190 | 160 | #define sys_port_trace_k_thread_priority_set(thread) |
191 | 161 |
|
192 | 162 | /** |
193 | | - * @brief Called when a thread is being suspended |
| 163 | + * @brief Called when a thread enters the k_thread_suspend |
| 164 | + * function. |
194 | 165 | * @param thread Thread object |
195 | 166 | */ |
196 | | -#define sys_port_trace_k_thread_suspend(thread) |
| 167 | +#define sys_port_trace_k_thread_suspend_enter(thread) |
197 | 168 |
|
198 | 169 | /** |
199 | | - * @brief Called when a thread is being resumed from suspension |
| 170 | + * @brief Called when a thread exits the k_thread_suspend |
| 171 | + * function. |
200 | 172 | * @param thread Thread object |
201 | 173 | */ |
202 | | -#define sys_port_trace_k_thread_resume(thread) |
| 174 | +#define sys_port_trace_k_thread_suspend_exit(thread) |
| 175 | + |
| 176 | +/** |
| 177 | + * @brief Called when a thread enters the resume from suspension |
| 178 | + * function. |
| 179 | + * @param thread Thread object |
| 180 | + */ |
| 181 | +#define sys_port_trace_k_thread_resume_enter(thread) |
| 182 | + |
| 183 | +/** |
| 184 | + * @brief Called when a thread exits the resumed from suspension |
| 185 | + * function. |
| 186 | + * @param thread Thread object |
| 187 | + */ |
| 188 | +#define sys_port_trace_k_thread_resume_exit(thread) |
203 | 189 |
|
204 | 190 | /** |
205 | 191 | * @brief Called when the thread scheduler is locked |
|
1067 | 1053 | * @param queue Queue object |
1068 | 1054 | * @param ret Return value |
1069 | 1055 | */ |
1070 | | -#define sys_port_trace_queue_remove_exit(queue, ret) |
| 1056 | +#define sys_port_trace_k_queue_remove_exit(queue, ret) |
1071 | 1057 |
|
1072 | 1058 | /** |
1073 | 1059 | * @brief Trace Queue unique append enter |
|
1936 | 1922 |
|
1937 | 1923 | #if defined CONFIG_PERCEPIO_TRACERECORDER |
1938 | 1924 | #include "tracing_tracerecorder.h" |
| 1925 | +#else |
| 1926 | +/** |
| 1927 | + * @brief Tracing APIs |
| 1928 | + * @defgroup tracing_apis Tracing APIs |
| 1929 | + * @{ |
| 1930 | + */ |
| 1931 | + |
| 1932 | +/** |
| 1933 | + * @brief Called when entering an ISR |
| 1934 | + */ |
| 1935 | +void sys_trace_isr_enter(void); |
| 1936 | + |
| 1937 | +/** |
| 1938 | + * @brief Called when exiting an ISR |
| 1939 | + */ |
| 1940 | +void sys_trace_isr_exit(void); |
| 1941 | + |
| 1942 | +/** |
| 1943 | + * @brief Called when exiting an ISR and switching to scheduler |
| 1944 | + */ |
| 1945 | +void sys_trace_isr_exit_to_scheduler(void); |
| 1946 | + |
| 1947 | +/** |
| 1948 | + * @brief Called when the cpu enters the idle state |
| 1949 | + */ |
| 1950 | +void sys_trace_idle(void); |
| 1951 | + |
| 1952 | +/** |
| 1953 | + * @} |
| 1954 | + */ |
1939 | 1955 | #endif |
1940 | 1956 |
|
| 1957 | + |
1941 | 1958 | #endif |
1942 | 1959 | #endif |
0 commit comments