Disable fcntl bitwise enum in default build
[lttng-modules.git] / include / instrumentation / syscalls / headers / syscalls_integers_override.h
index 4821b9f71508a3cea5dc5d2acbb91bb961a094bc..5d5d7a53db225757fc34e5f743452cd384109a62 100644 (file)
@@ -1,8 +1,5 @@
 /* SPDX-License-Identifier: (GPL-2.0-only or LGPL-2.1-only) */
 
-#include <linux/fcntl.h>
-#include <linux/mman.h>
-
 #ifndef CREATE_SYSCALL_TABLE
 
 /*
@@ -148,6 +145,7 @@ SC_LTTNG_TRACEPOINT_EVENT(mmap,
        )
 )
 
+#ifdef CONFIG_LTTNG_EXPERIMENTAL_BITWISE_ENUM
 /*
  * Enumeration of the open flags, as described in the 'open'
  * system call man page.
@@ -212,5 +210,6 @@ SC_LTTNG_TRACEPOINT_EVENT(fcntl,
                sc_in(ctf_enum(lttng_fcntl_cmd_flags, unsigned int, cmd, cmd))
                sc_inout(ctf_integer(unsigned long, arg, arg)))
 )
+#endif /* CONFIG_LTTNG_EXPERIMENTAL_BITWISE_ENUM */
 
 #endif /* CREATE_SYSCALL_TABLE */
This page took 0.024078 seconds and 4 git commands to generate.