Description[perf-prof] Adjust source position addresses according to ELF header size
The "perf inject" command will place the generated function into a .text
section, placed directly after the ELF header. As a result, source position
addresses need to be adjusted according to the size of the ELF header, which is
0x40 for 64 bit architectures and 0x34 on 32 bit architectures.
We would previously adjust the addresses with 0x40 regardless of the
architecture.
BUG=
Review-Url: https://codereview.chromium.org/2783203005
Cr-Commit-Position: refs/heads/master@{#44325}
Committed: https://chromium.googlesource.com/v8/v8/+/3258b2690e1be50e2ab47722585ecfc29754a657
Patch Set 1 #
Messages
Total messages: 10 (5 generated)
|