Fix: fcntl enum: only emit F_GETOWNER_UIDS for kernels >= 3.6
authorMathieu Desnoyers <mathieu.desnoyers@efficios.com>
Tue, 24 Mar 2020 13:42:23 +0000 (09:42 -0400)
committerMathieu Desnoyers <mathieu.desnoyers@efficios.com>
Tue, 24 Mar 2020 13:42:23 +0000 (09:42 -0400)
It appears in upstream Linux kernel
commit 1d151c337d79 "c/r: fcntl: add F_GETOWNER_UIDS option"
which was first released in v3.6.

Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
instrumentation/syscalls/headers/syscalls_integers_override.h

index a96d600303e5c263acdb74ab6eb17005066a9162..1d1c8a4a4c15518d42252dbaf3dae2c478293f42 100644 (file)
@@ -43,7 +43,9 @@ 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)
This page took 0.026141 seconds and 4 git commands to generate.