Fix: define old_sigaction as compat_old_sigaction in x86-32 compat
[lttng-modules.git] / include / instrumentation / syscalls / headers / x86-32-syscalls_pointers_override.h
index e93213f68d63007dedfa1fb3f15e45224b3d4fed..5689bda412950ed68ea8284c82e4224a2a7f4a03 100644 (file)
 #  define OVERRIDE_32_chown16
 # endif
 
+#ifdef CONFIG_X86_64
+#if CONFIG_COMPAT_OLD_SIGACTION
+/*
+ * From the point of view of the 64-bit ABI, old_sigaction
+ * becomes compat_old_sigaction.
+ */
+#define old_sigaction compat_old_sigaction
+#else /* CONFIG_COMPAT_OLD_SIGACTION */
+/*
+ * The target 64-bit kernel does not enable the support for
+ * the 32-bit compat version of OLD_SIGACTION. Defining
+ * OVERRIDE_32_sigaction ensures we don't build a tracepoint
+ * for this syscall.
+ */
+#define OVERRIDE_32_sigaction
+#endif /* CONFIG_COMPAT_OLD_SIGACTION */
+#endif
+
 #define OVERRIDE_32_pipe
 #define OVERRIDE_64_pipe
 SC_LTTNG_TRACEPOINT_EVENT(pipe,
This page took 0.023342 seconds and 4 git commands to generate.