From 407e379c92b08b6b9adab2843550694c5601247b Mon Sep 17 00:00:00 2001 From: hunt Date: Fri, 4 Nov 2005 17:17:34 +0000 Subject: [PATCH] 2005-11-04 Martin Hunt * runtime.h: #include . (init_module): Remove old ppc comment. ifdef _stp_kta so it only gets set for x86 and x86_64. --- runtime/runtime.h | 11 +++-------- 1 file changed, 3 insertions(+), 8 deletions(-) diff --git a/runtime/runtime.h b/runtime/runtime.h index 7bdddb457..cdae6764d 100644 --- a/runtime/runtime.h +++ b/runtime/runtime.h @@ -29,6 +29,7 @@ #include #include #include +#include #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) -- 2.43.5