From: Mathieu Desnoyers Date: Tue, 24 Mar 2020 13:42:23 +0000 (-0400) Subject: Fix: fcntl enum: only emit F_GETOWNER_UIDS for kernels >= 3.6 X-Git-Tag: before-upstreaming~10 X-Git-Url: https://git.lttng.org./?a=commitdiff_plain;h=3e8dcdfa6337f1beefe5cfdd169bee3375ec343c;p=lttng-modules.git Fix: fcntl enum: only emit F_GETOWNER_UIDS for kernels >= 3.6 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 --- diff --git a/instrumentation/syscalls/headers/syscalls_integers_override.h b/instrumentation/syscalls/headers/syscalls_integers_override.h index a96d6003..1d1c8a4a 100644 --- a/instrumentation/syscalls/headers/syscalls_integers_override.h +++ b/instrumentation/syscalls/headers/syscalls_integers_override.h @@ -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)