summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorhunt <hunt>2005-08-31 18:45:05 +0000
committerhunt <hunt>2005-08-31 18:45:05 +0000
commit66c2c709aea4f049513c02b5f7c6174f1b7a50e8 (patch)
treece1c70fa1a1cd357970792cc2409fa49c386da75
parent5a90d39d40a4360db4715408190aee558dbc3813 (diff)
downloadsystemtap-steved-66c2c709aea4f049513c02b5f7c6174f1b7a50e8.tar.gz
systemtap-steved-66c2c709aea4f049513c02b5f7c6174f1b7a50e8.tar.xz
systemtap-steved-66c2c709aea4f049513c02b5f7c6174f1b7a50e8.zip
2005-08-31 Martin Hunt <hunt@redhat.com>
* runtime.h (init_module): Include full prototype info in function cast to satisfy stap.
-rw-r--r--runtime/ChangeLog3
-rw-r--r--runtime/runtime.h3
2 files changed, 5 insertions, 1 deletions
diff --git a/runtime/ChangeLog b/runtime/ChangeLog
index b8d8087d..74118fc0 100644
--- a/runtime/ChangeLog
+++ b/runtime/ChangeLog
@@ -1,5 +1,8 @@
2005-08-31 Martin Hunt <hunt@redhat.com>
+ * runtime.h (init_module): Include full prototype
+ info in function cast to satisfy stap.
+
* sym.c (_stp_kallsyms_lookup): Moved to runtime.h.
* stack.c (_stp_kta): Moved to runtime.h.
* runtime.h (init_module): Initialize _stp_kallsyms_lookup
diff --git a/runtime/runtime.h b/runtime/runtime.h
index 6189a92c..b0fc5b5d 100644
--- a/runtime/runtime.h
+++ b/runtime/runtime.h
@@ -73,7 +73,8 @@ int probe_start(void);
int init_module (void)
{
_stp_kta = (int (*)(unsigned long))kallsyms_lookup_name("__kernel_text_address");
- _stp_kallsyms_lookup = (const char * (*)())kallsyms_lookup_name("kallsyms_lookup");
+ _stp_kallsyms_lookup = (const char * (*)(unsigned long,unsigned long *,unsigned long *,char **,char *))
+ kallsyms_lookup_name("kallsyms_lookup");
return _stp_transport_init();
}