From f52e9f44f5aa2531aa35d6bd2f3af65c56325e34 Mon Sep 17 00:00:00 2001 From: Michael Jeanson Date: Tue, 11 May 2021 17:09:07 -0400 Subject: [PATCH] Disable open[at] 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 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 --- .../syscalls/headers/syscalls_pointers_override.h | 2 ++ 1 file changed, 2 insertions(+) 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 */ -- 2.34.1