diff options
author | hunt <hunt> | 2006-09-27 18:32:03 +0000 |
---|---|---|
committer | hunt <hunt> | 2006-09-27 18:32:03 +0000 |
commit | a0ccc04fd2b9744facb48e779d6357d3b7096ee0 (patch) | |
tree | 7925af2c516beb39f9e6a5584839dfff7173037e /runtime/stack.c | |
parent | a63a95dc1994d08176b63f0a133749b531f22b80 (diff) | |
download | systemtap-steved-a0ccc04fd2b9744facb48e779d6357d3b7096ee0.tar.gz systemtap-steved-a0ccc04fd2b9744facb48e779d6357d3b7096ee0.tar.xz systemtap-steved-a0ccc04fd2b9744facb48e779d6357d3b7096ee0.zip |
2006-09-27 Martin Hunt <hunt@redhat.com>
* stack.c (_stp_kta): Rewrite. Use the _stap_symbols
struct instead of calling into the kernel.
* sym.c (_stp_kallsyms_lookup): Move here from runtime.h
* runtime.h: Get rid of all the symbol stuff that
did not belong here.
Diffstat (limited to 'runtime/stack.c')
-rw-r--r-- | runtime/stack.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/runtime/stack.c b/runtime/stack.c index 73ac19cf..7037fa8f 100644 --- a/runtime/stack.c +++ b/runtime/stack.c @@ -30,6 +30,14 @@ #include "sym.c" #include "regs.h" +static int _stp_kta(unsigned long addr) +{ + if (addr >= stap_symbols[0].addr && + addr <= stap_symbols[stap_num_symbols-1].addr) + return 1; + return 0; +} + #if defined (__x86_64__) static void __stp_stack_sprint (String str, unsigned long *stack, int verbose, int levels) |