summaryrefslogtreecommitdiffstats
path: root/runtime
diff options
context:
space:
mode:
authorhunt <hunt>2005-11-04 17:17:34 +0000
committerhunt <hunt>2005-11-04 17:17:34 +0000
commit407e379c92b08b6b9adab2843550694c5601247b (patch)
tree8ca3b01c7f019aeb38fe1556332c756c2922561f /runtime
parentbd0cd8e222e3688f68d1ad0a1402ce6524f9a99e (diff)
downloadsystemtap-steved-407e379c92b08b6b9adab2843550694c5601247b.tar.gz
systemtap-steved-407e379c92b08b6b9adab2843550694c5601247b.tar.xz
systemtap-steved-407e379c92b08b6b9adab2843550694c5601247b.zip
2005-11-04 Martin Hunt <hunt@redhat.com>
* runtime.h: #include <linux/version.h>. (init_module): Remove old ppc comment. ifdef _stp_kta so it only gets set for x86 and x86_64.
Diffstat (limited to 'runtime')
-rw-r--r--runtime/runtime.h11
1 files changed, 3 insertions, 8 deletions
diff --git a/runtime/runtime.h b/runtime/runtime.h
index 7bdddb45..cdae6764 100644
--- a/runtime/runtime.h
+++ b/runtime/runtime.h
@@ -29,6 +29,7 @@
#include <linux/hardirq.h>
#include <asm/uaccess.h>
#include <linux/kallsyms.h>
+#include <linux/version.h>
#ifdef DEBUG
/** Prints debug line.
@@ -131,15 +132,9 @@ static const char * _stp_kallsyms_lookup_tabled (unsigned long addr,
#endif
int init_module (void)
{
-/*
- * In order for the kallsyms_lookup_name hack to work under ppc64, we need
- * CONFIG_KALLSYMS_ALL=y.
- * On ppc64 the kallsyms_lookup_name(.funcname) returns the function entry,
- * but kallsyms_lookup_name(funcname) returns the function descriptor
- * (func_descr_t). The latter is what we want, and those symbols are only
- * available with CONFIG_KALLSYMS_ALL=y.
- */
+#if defined __i386__ || defined __x86_64__
_stp_kta = (int (*)(unsigned long))kallsyms_lookup_name("__kernel_text_address");
+#endif
#ifdef SYSTEMTAP
if (stap_num_symbols > 0)