zephyr/subsys/tracing/sysview/tracing_sysview_syscall.h
Florian Grandel 01ba923bb2 tracing: segger-sysview: fix display formatting
Fixes several minor display errors in the Segger SystemView output:
* Off-by-one error in some trace ids.
* Add missing syscall trace id.
* Displays easier to read syscall function names.
* Fixes syntax error in k_timer_start output.

Signed-off-by: Florian Grandel <fgrandel@code-for-humans.de>
2023-08-06 07:44:06 -04:00

20 lines
499 B
C

/*
* 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_ */