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>
16 #include <linux/compat.h>
17 #include <linux/fcntl.h>
19 #include <linux/in6.h>
20 #include <linux/mman.h>
22 #include <lttng/events.h>
23 #include <lttng/kernel-version.h>
27 * Forward declarations for old kernels.
31 struct oldold_utsname
;
33 struct sel_arg_struct
;
34 struct mmap_arg_struct
;
39 * Forward declaration for kernels >= 5.6
46 #if (LTTNG_LINUX_VERSION_CODE >= LTTNG_KERNEL_VERSION(5,6,0))
47 typedef __kernel_old_time_t
time_t;
50 struct trace_syscall_entry
{
52 const struct lttng_kernel_event_desc
*desc
;
53 const struct lttng_kernel_event_field
* const *fields
;
57 struct trace_syscall_table
{
58 const struct trace_syscall_entry
*table
;
63 void syscall_entry_event_probe(void *__data
, struct pt_regs
*regs
, long id
);
66 void syscall_exit_event_probe(void *__data
, struct pt_regs
*regs
, long ret
);
69 void syscall_entry_event_notifier_probe(void *__data
, struct pt_regs
*regs
,
72 void syscall_exit_event_notifier_probe(void *__data
, struct pt_regs
*regs
,
75 #endif /* LTTNG_SYSCALLS_H */
This page took 0.052064 seconds and 4 git commands to generate.