X-Git-Url: http://git.lttng.org/?a=blobdiff_plain;f=wrapper%2Fkallsyms.h;h=8200018a38e59b5959c51d5952b3052ecaed74f5;hb=20cac8305d09ebb92964aae8917098535d741354;hp=ad9e1f282060f9efa2f50969ad37fff0d6049a54;hpb=42d9070d001d2e641a3f1c27b1d613cdaeec3d58;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) {