2 * Copyright (c) 2015 Dmitry V. Levin <ldv@altlinux.org>
3 * Copyright (c) 2015-2018 The strace developers.
6 * SPDX-License-Identifier: GPL-2.0-or-later
10 #define TEST_SYSCALL_INVOKE(sample, pst) \
11 syscall(TEST_SYSCALL_NR, 0, pst)
12 #define PRINT_SYSCALL_HEADER(sample) \
14 int saved_errno = errno; \
15 printf("%s(0, ", TEST_SYSCALL_STR)
16 #define PRINT_SYSCALL_FOOTER(rc) \
17 errno = saved_errno; \
18 printf(") = %s\n", sprintrc(rc)); \