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.7.2~4 X-Git-Url: https://git.lttng.org./?a=commitdiff_plain;h=4edd719c79048fdc30c5fa9238225f390ff7ad5a;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) {