1 /* SPDX-License-Identifier: (GPL-2.0 or LGPL-2.1)
5 * wrapper around asm/syscall.h.
7 * Copyright (C) 2019 Michael Jeanson <mjeanson@efficios.com>
10 #ifndef _LTTNG_WRAPPER_SYSCALL_H
11 #define _LTTNG_WRAPPER_SYSCALL_H
13 #include <asm/syscall.h>
14 #include <lttng-kernel-version.h>
16 #define LTTNG_SYSCALL_NR_ARGS 6
18 #if (LTTNG_LINUX_VERSION_CODE >= LTTNG_KERNEL_VERSION(5,1,0))
20 #define lttng_syscall_get_arguments(task, regs, args) \
21 syscall_get_arguments(task, regs, args)
23 #else /* LTTNG_LINUX_VERSION_CODE >= LTTNG_KERNEL_VERSION(5,1,0) */
26 void lttng_syscall_get_arguments(struct task_struct
*task
,
27 struct pt_regs
*regs
, unsigned long *args
)
29 syscall_get_arguments(task
, regs
, 0, LTTNG_SYSCALL_NR_ARGS
, args
);
32 #endif /* LTTNG_LINUX_VERSION_CODE >= LTTNG_KERNEL_VERSION(5,1,0) */
34 #endif /* _LTTNG_WRAPPER_SYSCALL_H */
This page took 0.029417 seconds and 4 git commands to generate.