From c450bc46ac84b379ec1756bf6849d47843868be1 Mon Sep 17 00:00:00 2001 From: Michael Jeanson Date: Tue, 11 May 2021 17:05:37 -0400 Subject: [PATCH] Disable fcntl bitwise enum in default build MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Only generate the bitwise enumerations when CONFIG_LTTNG_EXPERIMENTAL_BITWISE_ENUM is enabled, so the default build does not generate traces which lead to warnings when viewed with babeltrace 1.x and babeltrace 2 with default options. Original commit: commit c1c07d681a68ba37da066d6f0456129957073169 Author: Geneviève Bastien Date: Wed Mar 11 12:38:51 2020 -0400 syscalls: Make the cmd field of fcntl an enum Use the non-override system call tracing implementation when the enum is not used. Change-Id: I4c650d40a14b1c56ada0ed9aae1877364d0c4580 Signed-off-by: Michael Jeanson Signed-off-by: Mathieu Desnoyers --- .../syscalls/headers/syscalls_integers_override.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/include/instrumentation/syscalls/headers/syscalls_integers_override.h b/include/instrumentation/syscalls/headers/syscalls_integers_override.h index 334aea8f..5d5d7a53 100644 --- a/include/instrumentation/syscalls/headers/syscalls_integers_override.h +++ b/include/instrumentation/syscalls/headers/syscalls_integers_override.h @@ -145,6 +145,7 @@ SC_LTTNG_TRACEPOINT_EVENT(mmap, ) ) +#ifdef CONFIG_LTTNG_EXPERIMENTAL_BITWISE_ENUM /* * Enumeration of the open flags, as described in the 'open' * system call man page. @@ -209,5 +210,6 @@ SC_LTTNG_TRACEPOINT_EVENT(fcntl, sc_in(ctf_enum(lttng_fcntl_cmd_flags, unsigned int, cmd, cmd)) sc_inout(ctf_integer(unsigned long, arg, arg))) ) +#endif /* CONFIG_LTTNG_EXPERIMENTAL_BITWISE_ENUM */ #endif /* CREATE_SYSCALL_TABLE */ -- 2.34.1