This is the mail archive of the
systemtap@sourceware.org
mailing list for the systemtap project.
Make kernel DWARF unwinder work with ksalr.
- From: Torsten Polle <Torsten dot Polle at gmx dot de>
- To: Mark Wielaard <mark at klomp dot org>, systemtap at sourceware dot org
- Date: Sun, 22 Apr 2018 10:52:20 +0200
- Subject: Make kernel DWARF unwinder work with ksalr.
Hi Mark,
I noticed that you made a similar commit (17ee540dd61113fe4f557f191db3480db875cca1)
to the one I proposed in [1].
The only difference is that you leave out the alignment of s->static_addr.
s->static_addr is equal to „_stext“, which is 0xc9600358 on my test instance.
While s->sec_load_offset is aligned to 0xc1000000 in a particular run. This
results in a misaligned offset. While on X86 and ARM64, the offset is aligned.
Without the alignment, I get strange results.
Arguably I choose a hard coded value 0x1fffff. Actually it should be based on
CONFIG_PHYSICAL_ALIGN on X86, but on ARM64 it is hard coded as well.
Kind Regards,
Torsten
[1] https://sourceware.org/ml/systemtap/2018-q1/msg00090.html