From 3e8dcdfa6337f1beefe5cfdd169bee3375ec343c Mon Sep 17 00:00:00 2001 From: Mathieu Desnoyers Date: Tue, 24 Mar 2020 09:42:23 -0400 Subject: [PATCH] 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 --- instrumentation/syscalls/headers/syscalls_integers_override.h | 2 ++ 1 file changed, 2 insertions(+) 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) -- 2.34.1