1 /* SPDX-License-Identifier: (GPL-2.0-only or LGPL-2.1-only)
5 * LTTng syscall header.
7 * Copyright (C) 2021 Francis Deslauriers <francis.deslauriers@efficios.com>
10 #ifndef LTTNG_SYSCALLS_H
11 #define LTTNG_SYSCALLS_H
15 #include <asm/ptrace.h>
17 #include <lttng/events.h>
18 #include <lttng/kernel-version.h>
22 * Forward declarations for old kernels.
26 struct oldold_utsname
;
28 struct sel_arg_struct
;
29 struct mmap_arg_struct
;
34 * Forward declaration for kernels >= 5.6
41 #if (LTTNG_LINUX_VERSION_CODE >= LTTNG_KERNEL_VERSION(5,6,0))
42 typedef __kernel_old_time_t
time_t;
45 struct trace_syscall_entry
{
47 const struct lttng_kernel_event_desc
*desc
;
48 const struct lttng_kernel_event_field
**fields
;
52 struct trace_syscall_table
{
53 const struct trace_syscall_entry
*table
;
58 void syscall_entry_event_probe(void *__data
, struct pt_regs
*regs
, long id
);
61 void syscall_exit_event_probe(void *__data
, struct pt_regs
*regs
, long ret
);
64 void syscall_entry_event_notifier_probe(void *__data
, struct pt_regs
*regs
,
67 void syscall_exit_event_notifier_probe(void *__data
, struct pt_regs
*regs
,
70 #endif /* LTTNG_SYSCALLS_H */
This page took 0.035975 seconds and 4 git commands to generate.