From 43a2a0fa96e8de4c67e5c6af1d2f34e850529fa7 Mon Sep 17 00:00:00 2001 From: Mathieu Desnoyers Date: Mon, 7 Mar 2016 18:24:25 -0500 Subject: [PATCH] PowerPC-64 ABIv1: add build error if KALLSYMS_ALL is missing Signed-off-by: Mathieu Desnoyers --- wrapper/kallsyms.h | 10 ++++++++++ 1 file changed, 10 insertions(+) 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) { -- 2.34.1