2021-10-14 01:16:39 +08:00
|
|
|
/*
|
|
|
|
* Copyright (c) 2021 Intel Corporation
|
|
|
|
*
|
|
|
|
* SPDX-License-Identifier: Apache-2.0
|
|
|
|
*/
|
|
|
|
|
|
|
|
#ifndef ZEPHYR_TRACING_SYSVIEW_SYSCALL_H_
|
|
|
|
#define ZEPHYR_TRACING_SYSVIEW_SYSCALL_H_
|
|
|
|
|
|
|
|
#include <SEGGER_SYSVIEW.h>
|
|
|
|
#include <tracing_sysview_ids.h>
|
|
|
|
|
2023-08-03 07:18:20 +08:00
|
|
|
#define sys_port_trace_syscall_enter(id, name, ...) \
|
|
|
|
SEGGER_SYSVIEW_RecordString(TID_SYSCALL, (const char *)#name)
|
2021-10-14 01:16:39 +08:00
|
|
|
|
2023-08-03 07:18:20 +08:00
|
|
|
#define sys_port_trace_syscall_exit(id, name, ...) \
|
|
|
|
SEGGER_SYSVIEW_RecordEndCall(TID_SYSCALL)
|
2021-10-14 01:16:39 +08:00
|
|
|
|
|
|
|
#endif /* ZEPHYR_TRACING_SYSVIEW_SYSCALL_H_ */
|