PowerPC-64 ABIv1: add build error if KALLSYMS_ALL is missing
authorMathieu Desnoyers <mathieu.desnoyers@efficios.com>
Mon, 7 Mar 2016 23:24:25 +0000 (18:24 -0500)
committerMathieu Desnoyers <mathieu.desnoyers@efficios.com>
Mon, 7 Mar 2016 23:34:19 +0000 (18:34 -0500)
Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
wrapper/kallsyms.h

index ad9e1f282060f9efa2f50969ad37fff0d6049a54..8200018a38e59b5959c51d5952b3052ecaed74f5 100644 (file)
 
 #include <linux/kallsyms.h>
 
+/*
+ * 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)
 {
This page took 0.026998 seconds and 4 git commands to generate.