Disable fcntl bitwise enum in default build
authorMichael Jeanson <mjeanson@efficios.com>
Tue, 11 May 2021 21:05:37 +0000 (17:05 -0400)
committerMathieu Desnoyers <mathieu.desnoyers@efficios.com>
Thu, 13 May 2021 15:45:46 +0000 (11:45 -0400)
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 <gbastien+lttng@versatic.net>
  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 <mjeanson@efficios.com>
Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
include/instrumentation/syscalls/headers/syscalls_integers_override.h

index 334aea8f48369387c4d446878194d77378514772..5d5d7a53db225757fc34e5f743452cd384109a62 100644 (file)
@@ -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 */
This page took 0.026632 seconds and 4 git commands to generate.