1 /*
2  * Copyright (c) 2021 Intel Corporation
3  *
4  * SPDX-License-Identifier: Apache-2.0
5  */
6 
7 #ifndef ZEPHYR_TRACING_SYSVIEW_SYSCALL_H_
8 #define ZEPHYR_TRACING_SYSVIEW_SYSCALL_H_
9 
10 #include <SEGGER_SYSVIEW.h>
11 #include <tracing_sysview_ids.h>
12 
13 #define sys_port_trace_syscall_enter(id, name, ...)	\
14 	SEGGER_SYSVIEW_RecordString(TID_SYSCALL, (const char *)#name)
15 
16 #define sys_port_trace_syscall_exit(id, name, ...)	\
17 	SEGGER_SYSVIEW_RecordEndCall(TID_SYSCALL)
18 
19 #endif /* ZEPHYR_TRACING_SYSVIEW_SYSCALL_H_ */
20