This is the mail archive of the
systemtap@sourceware.org
mailing list for the systemtap project.
Re: proposed patch for SW9937
- From: Stan Cox <scox at redhat dot com>
- To: systemtap at sourceware dot org
- Date: Thu, 04 Nov 2010 14:59:26 -0400
- Subject: Re: proposed patch for SW9937
- References: <4CCF24A9.9050700@redhat.com>
Tweaked the previous to eliminate .module_base and output build_id_offset as
follows:
@@ -5376,9 +5379,10 @@ dump_unwindsyms (Dwfl_Module *m,
if (modname == "kernel")
c->output << ".build_id_offset = 0x" << hex << build_id_vaddr - (base
+ extra_offset)
<< dec << ",\n";
+ // ET_DYN: task finder gives the load address. ET_EXEC: this is absolute
address
else
c->output << ".build_id_offset = 0x" << hex
- << build_id_vaddr - base
+ << build_id_vaddr /* - base */
<< dec << ",\n";
} else
c->output << ".build_id_len = 0,\n";
for ET_EXEC we get e.g. 0x40024c
for ET_DYN we get e.g. 0x1a0
for kernel we get e.g. 0x430544