X-Git-Url: http://git.liburcu.org/?a=blobdiff_plain;f=wrapper%2Fkallsyms.h;h=2e5f123c1ef6147fcc2fe8ecbad959ea19407a6c;hb=8fe888d86ccad4226b05a536efb73d71bb091062;hp=a6357ab2814c827167316fbd0fb14af3f40a9a87;hpb=5d0b3afd73a0dda761eafd5e01a881561baaea4b;p=lttng-modules.git diff --git a/wrapper/kallsyms.h b/wrapper/kallsyms.h index a6357ab2..2e5f123c 100644 --- a/wrapper/kallsyms.h +++ b/wrapper/kallsyms.h @@ -16,11 +16,19 @@ #include #include +/* CONFIG_PPC64_ELF_ABI_V1/V2 were introduced in v5.19 */ +#if defined(CONFIG_PPC64_ELF_ABI_V2) || (defined(CONFIG_PPC64) && defined(CONFIG_CPU_LITTLE_ENDIAN)) +#define LTTNG_CONFIG_PPC64_ELF_ABI_V2 +#endif +#if defined(CONFIG_PPC64_ELF_ABI_V1) || (defined(CONFIG_PPC64) && defined(CONFIG_CPU_BIG_ENDIAN)) +#define LTTNG_CONFIG_PPC64_ELF_ABI_V1 +#endif + /* * 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) +#ifdef LTTNG_CONFIG_PPC64_ELF_ABI_V1 # ifndef CONFIG_KALLSYMS_ALL # error "LTTng-modules requires CONFIG_KALLSYMS_ALL on PowerPC ABIv1" # endif