projects
/
lttng-modules.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Cleanup: Move headers from toplevel to include/lttng/
[lttng-modules.git]
/
lttng-syscalls.c
diff --git
a/lttng-syscalls.c
b/lttng-syscalls.c
index 7a2d02a9ef1ff6c8d4e41ea39c62918c3c2a77e7..a5b5f403fe359e6531650111fc05cb82a6c60aba 100644
(file)
--- a/
lttng-syscalls.c
+++ b/
lttng-syscalls.c
@@
-1,4
+1,4
@@
-/* SPDX-License-Identifier: (GPL-2.0
or LGPL-2.1
)
+/* SPDX-License-Identifier: (GPL-2.0
-only or LGPL-2.1-only
)
*
* lttng-syscalls.c
*
*
* lttng-syscalls.c
*
@@
-18,15
+18,16
@@
#include <linux/stringify.h>
#include <linux/file.h>
#include <linux/anon_inodes.h>
#include <linux/stringify.h>
#include <linux/file.h>
#include <linux/anon_inodes.h>
+#include <linux/fcntl.h>
#include <asm/ptrace.h>
#include <asm/syscall.h>
#include <asm/ptrace.h>
#include <asm/syscall.h>
-#include <l
ib
/bitfield.h>
+#include <l
ttng
/bitfield.h>
#include <wrapper/tracepoint.h>
#include <wrapper/file.h>
#include <wrapper/rcu.h>
#include <wrapper/syscall.h>
#include <wrapper/tracepoint.h>
#include <wrapper/file.h>
#include <wrapper/rcu.h>
#include <wrapper/syscall.h>
-#include <lttng
-
events.h>
+#include <lttng
/
events.h>
#ifndef CONFIG_COMPAT
# ifndef is_compat_task
#ifndef CONFIG_COMPAT
# ifndef is_compat_task
@@
-73,6
+74,18
@@
struct mmap_arg_struct;
struct file_handle;
struct user_msghdr;
struct file_handle;
struct user_msghdr;
+/*
+ * Forward declaration for kernels >= 5.6
+ */
+struct timex;
+struct timeval;
+struct itimerval;
+struct itimerspec;
+
+#if (LINUX_VERSION_CODE >= KERNEL_VERSION(5,6,0))
+typedef __kernel_old_time_t time_t;
+#endif
+
#ifdef IA32_NR_syscalls
#define NR_compat_syscalls IA32_NR_syscalls
#else
#ifdef IA32_NR_syscalls
#define NR_compat_syscalls IA32_NR_syscalls
#else
@@
-748,7
+761,7
@@
int lttng_syscalls_register(struct lttng_channel *chan, void *filter)
struct lttng_kernel_event ev;
int ret;
struct lttng_kernel_event ev;
int ret;
- wrapper_vmalloc_sync_
all
();
+ wrapper_vmalloc_sync_
mappings
();
if (!chan->sc_table) {
/* create syscall table mapping syscall to events */
if (!chan->sc_table) {
/* create syscall table mapping syscall to events */
This page took
0.025332 seconds
and
4
git commands to generate.