Commit aa1b904e authored by vijunag's avatar vijunag Committed by yonghong-song

[iovisor/bcc] trace: Incorrect symbol offsets when using build_id (#2161) (#2162)

Fix #2161 - bcc_bsymcache API returned absolute address instead of 
offset from start of the symbol
parent 81baae4f
......@@ -424,7 +424,7 @@ bool BuildSyms::Module::resolve_addr(uint64_t offset, struct bcc_symbol* sym,
sym->name = (*it).name->c_str();
if (demangle)
sym->demangle_name = sym->name;
sym->offset = (*it).start;
sym->offset = offset - (*it).start;
sym->module = module_name_.c_str();
return true;
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment