X-Git-Url: http://git.lttng.org/?a=blobdiff_plain;f=include%2Finstrumentation%2Fsyscalls%2Fheaders%2Fx86-32-syscalls_pointers_override.h;h=5689bda412950ed68ea8284c82e4224a2a7f4a03;hb=cae34aadcc5ac23148182c5419214fa013c7eb60;hp=e93213f68d63007dedfa1fb3f15e45224b3d4fed;hpb=6a05ace84fd25eaee6d2fbd82722aeb814f138ed;p=lttng-modules.git diff --git a/include/instrumentation/syscalls/headers/x86-32-syscalls_pointers_override.h b/include/instrumentation/syscalls/headers/x86-32-syscalls_pointers_override.h index e93213f6..5689bda4 100644 --- a/include/instrumentation/syscalls/headers/x86-32-syscalls_pointers_override.h +++ b/include/instrumentation/syscalls/headers/x86-32-syscalls_pointers_override.h @@ -11,6 +11,24 @@ # 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,