instrumentation: syscalls: remove backward compatibility for older kernels
authorMathieu Desnoyers <mathieu.desnoyers@efficios.com>
Mon, 13 Apr 2020 19:43:49 +0000 (15:43 -0400)
committerMathieu Desnoyers <mathieu.desnoyers@efficios.com>
Mon, 13 Apr 2020 19:43:49 +0000 (15:43 -0400)
instrumentation/syscalls/headers/syscalls_integers_override.h
instrumentation/syscalls/headers/syscalls_pointers_override.h

index da548b1ba5a29e8923db4f1ee7d29963c0ad5b28..2866fdce0b01f78622f9a0067eb9b53e84b4738e 100644 (file)
@@ -43,14 +43,10 @@ SC_LTTNG_TRACEPOINT_ENUM(lttng_fcntl_cmd_flags,
                ctf_enum_value("F_SETLKW64", F_SETLKW64)
                ctf_enum_value("F_SETOWN_EX", F_SETOWN_EX)
                ctf_enum_value("F_GETOWN_EX", F_GETOWN_EX)
-#if (LINUX_VERSION_CODE >= KERNEL_VERSION(3,6,0))
                ctf_enum_value("F_GETOWNER_UIDS", F_GETOWNER_UIDS)
-#endif /* #if (LINUX_VERSION_CODE >= KERNEL_VERSION(3,6,0)) */
-#if (LINUX_VERSION_CODE >= KERNEL_VERSION(3,15,0))
                ctf_enum_value("F_OFD_GETLK", F_OFD_GETLK)
                ctf_enum_value("F_OFD_SETLK", F_OFD_SETLK)
                ctf_enum_value("F_OFD_SETLKW", F_OFD_SETLKW)
-#endif /* (LINUX_VERSION_CODE >= KERNEL_VERSION(3,15,0)) */
                ctf_enum_value("F_SETLEASE", F_SETLEASE)
                ctf_enum_value("F_GETLEASE", F_GETLEASE)
                ctf_enum_value("F_NOTIFY", F_NOTIFY)
@@ -58,16 +54,12 @@ SC_LTTNG_TRACEPOINT_ENUM(lttng_fcntl_cmd_flags,
                ctf_enum_value("F_DUPFD_CLOEXEC", F_DUPFD_CLOEXEC)
                ctf_enum_value("F_SETPIPE_SZ", F_SETPIPE_SZ)
                ctf_enum_value("F_GETPIPE_SZ", F_GETPIPE_SZ)
-#if (LINUX_VERSION_CODE >= KERNEL_VERSION(3,17,0))
                ctf_enum_value("F_ADD_SEALS", F_ADD_SEALS)
                ctf_enum_value("F_GET_SEALS", F_GET_SEALS)
-#endif /* #if (LINUX_VERSION_CODE >= KERNEL_VERSION(3,17,0)) */
-#if (LINUX_VERSION_CODE >= KERNEL_VERSION(4,14,0))
                ctf_enum_value("F_GET_RW_HINT", F_GET_RW_HINT)
                ctf_enum_value("F_SET_RW_HINT", F_SET_RW_HINT)
                ctf_enum_value("F_GET_FILE_RW_HINT", F_GET_FILE_RW_HINT)
                ctf_enum_value("F_SET_FILE_RW_HINT", F_SET_FILE_RW_HINT)
-#endif /* #if (LINUX_VERSION_CODE >= KERNEL_VERSION(4,14,0)) */
        )
 )
 
index 89f2cd8e61f7a3bdc7f866b1d0637af39d594cbf..341e93b615379a0567488b5ef7e33972f755985b 100644 (file)
@@ -946,9 +946,7 @@ SC_LTTNG_TRACEPOINT_ENUM(lttng_file_status_flags,
                ctf_enum_value("O_CLOEXEC", O_CLOEXEC)
                ctf_enum_value("O_SYNC", __O_SYNC)
                ctf_enum_value("O_PATH", O_PATH)
-#if (LINUX_VERSION_CODE >= KERNEL_VERSION(3,11,0))
                ctf_enum_value("O_TMPFILE", __O_TMPFILE)
-#endif /* #if (LINUX_VERSION_CODE >= KERNEL_VERSION(3,11,0)) */
        )
 )
 
This page took 0.027785 seconds and 4 git commands to generate.