c9888bd24ef57dc181e8a017dbbe55aa6756ba8e
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
13 #include <asm/ptrace.h>
14 #include <linux/compat.h>
15 #include <linux/fcntl.h>
17 #include <linux/in6.h>
18 #include <linux/mman.h>
20 #include <lttng/events.h>
21 #include <lttng/kernel-version.h>
25 * Forward declarations for old kernels.
29 struct oldold_utsname
;
31 struct sel_arg_struct
;
32 struct mmap_arg_struct
;
35 struct __kernel_old_itimerval
;
41 * Forward declaration for kernels >= 5.6
48 #if (LTTNG_LINUX_VERSION_CODE >= LTTNG_KERNEL_VERSION(5,6,0))
49 typedef __kernel_old_time_t
time_t;
52 struct trace_syscall_entry
{
54 const struct lttng_kernel_event_desc
*desc
;
55 const struct lttng_kernel_event_field
* const *fields
;
59 struct trace_syscall_table
{
60 const struct trace_syscall_entry
*table
;
65 void syscall_entry_event_probe(void *__data
, struct pt_regs
*regs
, long id
);
68 void syscall_exit_event_probe(void *__data
, struct pt_regs
*regs
, long ret
);
71 void syscall_entry_event_notifier_probe(void *__data
, struct pt_regs
*regs
,
74 void syscall_exit_event_notifier_probe(void *__data
, struct pt_regs
*regs
,
77 #endif /* LTTNG_SYSCALLS_H */
This page took 0.031661 seconds and 4 git commands to generate.