Skip to content

Commit

Permalink
Fix addr. offsets.
Browse files Browse the repository at this point in the history
Signed-off-by: Pete Stevenson <[email protected]>
  • Loading branch information
Pete Stevenson committed Jul 21, 2022
1 parent fbd55fd commit d7448f1
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/cc/bcc_syms.cc
Original file line number Diff line number Diff line change
Expand Up @@ -294,6 +294,8 @@ bool ProcSyms::Module::contains(uint64_t addr, uint64_t &offset) const {

// Offset within the ELF for SO symbol lookup
offset += (elf_so_addr_ - elf_so_offset_);
} else if (type_ == ModuleType::UNKNOWN) {
offset = addr - range.start;
} else {
offset = addr;
}
Expand Down

0 comments on commit d7448f1

Please sign in to comment.