Re: [PATCH perf/core v2 1/4] perf-probe: Fix to show correct locations for events on modules

From: Arnaldo Carvalho de Melo
Date: Mon Jan 16 2017 - 13:33:07 EST


Em Wed, Jan 11, 2017 at 02:59:38PM +0900, Masami Hiramatsu escreveu:
> Fix to show correct locations for events on modules by relocating
> given address instead of retrying after failure.
>
> This happens when the module text size is enough big, bigger than
> sh_addr, because original code retries withgiven address + sh_addr
> if it failed to find CU DIE at the given address. Any address
> smaller than sh_addr always fails and it retries with correct
> address, but the address which bigger than sh_addr will get a CU
> DIE which is on given address (not adjusted by sh_addr).

Tested and applied,

- Arnaldo