summaryrefslogtreecommitdiffstats
path: root/runtime/sym.c
diff options
context:
space:
mode:
authorMark Wielaard <mwielaard@redhat.com>2008-09-09 11:42:28 +0200
committerMark Wielaard <mwielaard@redhat.com>2008-09-09 11:42:28 +0200
commit67a66a8b72d19dc1a1fd10db1c55e31a6e93b270 (patch)
tree5358d82d8d5a5f998dc960357246bd63492c6dee /runtime/sym.c
parent094b05c79e7a69567f55514386f5f276ada60d0d (diff)
downloadsystemtap-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.c2
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;