diff options
author | hunt <hunt> | 2007-08-20 18:50:02 +0000 |
---|---|---|
committer | hunt <hunt> | 2007-08-20 18:50:02 +0000 |
commit | cbc1489faf94b591725633f717c81b3512651258 (patch) | |
tree | 46f4f88956b09dc33631a049d6fe310d5c23bfc8 /runtime/stack.c | |
parent | 478831cf1792ed2f4d48dbe65558e55f61a9c62b (diff) | |
download | systemtap-steved-cbc1489faf94b591725633f717c81b3512651258.tar.gz systemtap-steved-cbc1489faf94b591725633f717c81b3512651258.tar.xz systemtap-steved-cbc1489faf94b591725633f717c81b3512651258.zip |
2007-08-20 Martin Hunt <hunt@redhat.com>
* stack.c (_stp_kta): Removed.
Diffstat (limited to 'runtime/stack.c')
-rw-r--r-- | runtime/stack.c | 25 |
1 files changed, 0 insertions, 25 deletions
diff --git a/runtime/stack.c b/runtime/stack.c index 5dc627b7..9c01d65c 100644 --- a/runtime/stack.c +++ b/runtime/stack.c @@ -23,7 +23,6 @@ #include "sym.c" #include "regs.h" -static int _stp_kta(unsigned long addr); #define MAXBACKTRACE 20 @@ -43,30 +42,6 @@ static int _stp_kta(unsigned long addr); #error "Unsupported architecture" #endif - -/* our copy of kernel_text_address() */ -static int _stp_kta(unsigned long addr) -{ - static unsigned long stext, etext, sinittext, einittext; - static int init = 0; - - if (init == 0) { - init = 1; - etext = _stp_kallsyms_lookup_name("_etext"); - stext = _stp_kallsyms_lookup_name("_stext"); - sinittext = _stp_kallsyms_lookup_name("_sinittext"); - einittext = _stp_kallsyms_lookup_name("_einittext"); - } - - if (addr >= stext && addr <= etext) - return 1; - - if (addr >= sinittext && addr <= einittext) - return 1; - - return 0; -} - /** Prints the stack backtrace * @param regs A pointer to the struct pt_regs. */ |