From: Mathieu Desnoyers Date: Mon, 7 Mar 2016 23:24:25 +0000 (-0500) Subject: PowerPC-64 ABIv1: add build error if KALLSYMS_ALL is missing X-Git-Tag: v2.8.0-rc1~23 X-Git-Url: https://git.lttng.org./?a=commitdiff_plain;h=43a2a0fa96e8de4c67e5c6af1d2f34e850529fa7;p=lttng-modules.git PowerPC-64 ABIv1: add build error if KALLSYMS_ALL is missing Signed-off-by: Mathieu Desnoyers --- diff --git a/wrapper/kallsyms.h b/wrapper/kallsyms.h index ad9e1f28..8200018a 100644 --- a/wrapper/kallsyms.h +++ b/wrapper/kallsyms.h @@ -28,6 +28,16 @@ #include +/* + * PowerPC ABIv1 needs KALLSYMS_ALL to get the function descriptor, + * which is needed to perform the function call. + */ +#if defined(CONFIG_PPC64) && (!defined(_CALL_ELF) || _CALL_ELF < 2) +# ifndef CONFIG_KALLSYMS_ALL +# error "LTTng-modules requires CONFIG_KALLSYMS_ALL on PowerPC ABIv1" +# endif +#endif + static inline unsigned long kallsyms_lookup_funcptr(const char *name) {