blob: fa0f5811cc40b56e8071ccb6c2bfbc3e1d9b22f7 [file] [log] [blame]
/*
* 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>
#define sys_port_trace_syscall_enter(id, name, ...) \
SEGGER_SYSVIEW_RecordString(TID_SYSCALL, (const char *)#name)
#define sys_port_trace_syscall_exit(id, name, ...) \
SEGGER_SYSVIEW_RecordEndCall(TID_SYSCALL)
#endif /* ZEPHYR_TRACING_SYSVIEW_SYSCALL_H_ */