Line data Source code
1 0 : /*
2 : * Copyright (c) 2021 Intel Corporation
3 : *
4 : * SPDX-License-Identifier: Apache-2.0
5 : */
6 :
7 : #ifndef ZEPHYR_INCLUDE_TRACING_SYSCALL_H_
8 : #define ZEPHYR_INCLUDE_TRACING_SYSCALL_H_
9 :
10 : #if defined CONFIG_SEGGER_SYSTEMVIEW
11 : #include "tracing_sysview_syscall.h"
12 : #elif defined CONFIG_TRACING_TEST
13 : #include "tracing_test_syscall.h"
14 : #else
15 :
16 : /**
17 : * @brief Syscall Tracing APIs
18 : * @defgroup subsys_tracing_apis_syscall Syscall Tracing APIs
19 : * @ingroup subsys_tracing_apis
20 : * @{
21 : */
22 :
23 : /**
24 : * @brief Trace syscall entry
25 : * @param id Syscall ID (as defined in the generated syscall_list.h)
26 : * @param name Syscall name as a token (ex: k_thread_create)
27 : * @param ... Other parameters passed to the syscall
28 : */
29 1 : #define sys_port_trace_syscall_enter(id, name, ...)
30 :
31 : /**
32 : * @brief Trace syscall exit
33 : * @param id Syscall ID (as defined in the generated syscall_list.h)
34 : * @param name Syscall name as a token (ex: k_thread_create)
35 : * @param ... Other parameters passed to the syscall, if the syscall has a
36 : * return, the return value is the last parameter in the list
37 : */
38 1 : #define sys_port_trace_syscall_exit(id, name, ...)
39 :
40 : /** @} */ /* end of subsys_tracing_syscall_apis */
41 :
42 : #endif
43 :
44 : #endif /* ZEPHYR_INCLUDE_TRACING_SYSCALL_H_ */
|