summaryrefslogtreecommitdiffstats
path: root/runtime/runtime.h
diff options
context:
space:
mode:
Diffstat (limited to 'runtime/runtime.h')
-rw-r--r--runtime/runtime.h14
1 files changed, 11 insertions, 3 deletions
diff --git a/runtime/runtime.h b/runtime/runtime.h
index b0fc5b5d..94a210a6 100644
--- a/runtime/runtime.h
+++ b/runtime/runtime.h
@@ -61,15 +61,15 @@ static struct
#include "arith.c"
#include "copy.c"
+/************* Module Stuff ********************/
+#if defined (__x86_64__) || defined (__i386__)
+#define HAS_LOOKUP 1
static int (*_stp_kta)(unsigned long addr);
static const char * (*_stp_kallsyms_lookup)(unsigned long addr,
unsigned long *symbolsize,
unsigned long *offset,
char **modname, char *namebuf);
-/************* Module Stuff ********************/
-int probe_start(void);
-
int init_module (void)
{
_stp_kta = (int (*)(unsigned long))kallsyms_lookup_name("__kernel_text_address");
@@ -77,6 +77,14 @@ int init_module (void)
kallsyms_lookup_name("kallsyms_lookup");
return _stp_transport_init();
}
+#else
+int init_module (void)
+{
+ return _stp_transport_init();
+}
+#endif
+
+int probe_start(void);
void cleanup_module(void)
{