Re: [PATCH perf/core] perf-probe: Fix to get correct modname from elf header

2017-01-02 Thread Arnaldo Carvalho de Melo
Em Tue, Jan 03, 2017 at 12:20:49AM +0900, Masami Hiramatsu escreveu: > Since perf-probe supports cross-arch probe, it is possible to > analyze different arch kernel image which has different > bits-per-long. In that case, it fails to get module name > because perf probe uses MOD_NAME_OFFSET macro b

[PATCH perf/core] perf-probe: Fix to get correct modname from elf header

2017-01-02 Thread Masami Hiramatsu
Since perf-probe supports cross-arch probe, it is possible to analyze different arch kernel image which has different bits-per-long. In that case, it fails to get module name because perf probe uses MOD_NAME_OFFSET macro based on host machines bits-per-long, instead of the target archs bits-per-lon