From: Michael Jeanson Date: Tue, 11 May 2021 21:05:37 +0000 (-0400) Subject: Disable fcntl bitwise enum in default build X-Git-Tag: v2.13.0-rc2~7 X-Git-Url: https://git.lttng.org./?a=commitdiff_plain;h=b6f03560c9dea83c20731e0f008446e079eb31c7;p=lttng-modules.git Disable fcntl bitwise enum in default build 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 --- 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 */