Fix: mmap: caches aliased on virtual addresses
[lttng-modules.git] / wrapper / kallsyms.h
index f07788a04913ae2219a30edfb5102ac29f12e9ab..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)
 {
@@ -42,4 +52,10 @@ unsigned long kallsyms_lookup_funcptr(const char *name)
 #endif
        return addr;
 }
+
+static inline
+unsigned long kallsyms_lookup_dataptr(const char *name)
+{
+       return kallsyms_lookup_name(name);
+}
 #endif /* _LTTNG_WRAPPER_KALLSYMS_H */
This page took 0.022596 seconds and 4 git commands to generate.