From: Michael Jeanson Date: Tue, 11 May 2021 21:09:07 +0000 (-0400) Subject: Disable open[at] bitwise enum in default build X-Git-Url: https://git.lttng.org./?a=commitdiff_plain;h=f52e9f44f5aa2531aa35d6bd2f3af65c56325e34;p=lttng-modules.git Disable open[at] 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 c8dfb72431505d5f01a6f090f3f7427d9ca6fe94 Author: Geneviève Bastien Date: Wed Mar 11 12:33:04 2020 -0400 syscalls: Make the flags and mode fields of open[at] enumerations Use the non-override system call tracing implementation when the enum is not used. Change-Id: I2dbebe56eaba6186843dab20264d3378962c7d30 Signed-off-by: Michael Jeanson Signed-off-by: Mathieu Desnoyers --- diff --git a/include/instrumentation/syscalls/headers/syscalls_pointers_override.h b/include/instrumentation/syscalls/headers/syscalls_pointers_override.h index ff91a654..ed8041dd 100644 --- a/include/instrumentation/syscalls/headers/syscalls_pointers_override.h +++ b/include/instrumentation/syscalls/headers/syscalls_pointers_override.h @@ -1025,6 +1025,7 @@ SC_LTTNG_TRACEPOINT_EVENT(socketpair, ) #endif /* (defined(CONFIG_X86_64) && !defined(LTTNG_SC_COMPAT)) || defined(CONFIG_ARM64) || defined(CONFIG_ARM) */ +#ifdef CONFIG_LTTNG_EXPERIMENTAL_BITWISE_ENUM /* * Enumeration of the open flags, as described in the 'open' * system call man page. @@ -1106,5 +1107,6 @@ SC_LTTNG_TRACEPOINT_EVENT(open, sc_in(ctf_enum(lttng_file_mode, umode_t, mode, mode)) ) ) +#endif /* CONFIG_LTTNG_EXPERIMENTAL_BITWISE_ENUM */ #endif /* CREATE_SYSCALL_TABLE */