Fix: syscalls: Ignore fcntl cmd specific to 32-bit in 64-bit only config
authorRuiqiang Hao <Ruiqiang.Hao@windriver.com>
Tue, 26 May 2020 03:36:17 +0000 (03:36 +0000)
committerMathieu Desnoyers <mathieu.desnoyers@efficios.com>
Thu, 28 May 2020 13:09:27 +0000 (09:09 -0400)
When CONFIG_64BIT is defined and CONFIG_COMPAT is not defined, the fcntl system call
"F_GETLK64", "F_SETLK64" and "F_SETLKW64" should be ignored.

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

index da548b1ba5a29e8923db4f1ee7d29963c0ad5b28..e5578640ae6a1b5a3c022196a2cf6321751ba672 100644 (file)
@@ -38,9 +38,11 @@ SC_LTTNG_TRACEPOINT_ENUM(lttng_fcntl_cmd_flags,
                ctf_enum_value("F_GETOWN", F_GETOWN)
                ctf_enum_value("F_SETSIG", F_SETSIG)
                ctf_enum_value("F_GETSIG", F_GETSIG)
+#if !defined(CONFIG_64BIT) || defined(CONFIG_COMPAT)
                ctf_enum_value("F_GETLK64", F_GETLK64)
                ctf_enum_value("F_SETLK64", F_SETLK64)
                ctf_enum_value("F_SETLKW64", F_SETLKW64)
+#endif /* #if !defined(CONFIG_64BIT) || defined(CONFIG_COMPAT) */
                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))
This page took 0.025447 seconds and 4 git commands to generate.