X-Git-Url: http://git.liburcu.org/?a=blobdiff_plain;f=wrapper%2Fkallsyms.h;h=8200018a38e59b5959c51d5952b3052ecaed74f5;hb=43a2a0fa96e8de4c67e5c6af1d2f34e850529fa7;hp=ad9e1f282060f9efa2f50969ad37fff0d6049a54;hpb=769ad37074a5979b6eef686352c17fb3ba8c9a4d;p=lttng-modules.git 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) {