X-Git-Url: http://git.lttng.org./?a=blobdiff_plain;f=include%2Finstrumentation%2Fsyscalls%2Fheaders%2Fx86-32-syscalls_pointers_override.h;h=bd63ed09ceebda18410da8f6dcd076060f329589;hb=1efbdb9f014bb9378a6cba60fad47a8e906b8e45;hp=e93213f68d63007dedfa1fb3f15e45224b3d4fed;hpb=7c6d929d62a6e24fb1dbeaee5cd2c8afe77720b7;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..bd63ed09 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 +#ifdef 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,