diff options
author | Mark Wielaard <mwielaard@redhat.com> | 2008-09-09 11:42:28 +0200 |
---|---|---|
committer | Mark Wielaard <mwielaard@redhat.com> | 2008-09-09 11:42:28 +0200 |
commit | 67a66a8b72d19dc1a1fd10db1c55e31a6e93b270 (patch) | |
tree | 5358d82d8d5a5f998dc960357246bd63492c6dee /runtime/sym.c | |
parent | 094b05c79e7a69567f55514386f5f276ada60d0d (diff) | |
download | systemtap-steved-67a66a8b72d19dc1a1fd10db1c55e31a6e93b270.tar.gz systemtap-steved-67a66a8b72d19dc1a1fd10db1c55e31a6e93b270.tar.xz systemtap-steved-67a66a8b72d19dc1a1fd10db1c55e31a6e93b270.zip |
Correct this_section_offset calculation in _stp_kallsyms_lookup.
Diffstat (limited to 'runtime/sym.c')
-rw-r--r-- | runtime/sym.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/runtime/sym.c b/runtime/sym.c index dcdbaf69..b594d9c2 100644 --- a/runtime/sym.c +++ b/runtime/sym.c @@ -98,7 +98,7 @@ static const char *_stp_kallsyms_lookup(unsigned long addr, unsigned long *symbo unsigned long this_section_addr = _stp_modules[midx]->sections[secidx].addr; unsigned long this_section_offset; if (addr < this_section_addr) continue; - this_section_offset = this_section_addr - addr; + this_section_offset = addr - this_section_addr; if (this_section_offset < closest_section_offset) { closest_section_offset = this_section_offset; |