Re: [PATCH 1/2] perf script: Show virtual addresses instead of offsets

2018-05-17 Thread Ravi Bangoria
Arnaldo, We already have a binary offset handy in perf code but there is no way to dump it with perf script. We can derive it from symname+symoff but that's a manual work. Will it be good to have a '-F binoff' option? Ravi On 05/18/2018 01:29 AM, Arnaldo Carvalho de Melo wrote: > Em Thu, May 1

Re: [PATCH 1/2] perf script: Show virtual addresses instead of offsets

2018-05-17 Thread Arnaldo Carvalho de Melo
Em Thu, May 17, 2018 at 12:03:25PM +0530, Sandipan Das escreveu: > When perf data is recorded with the call-graph option enabled, > the callchain shown by perf script shows the binary offsets of > the symbols as the ip. This is incorrect for kernel symbols as > the ip values are always off by a fix

[PATCH 1/2] perf script: Show virtual addresses instead of offsets

2018-05-16 Thread Sandipan Das
When perf data is recorded with the call-graph option enabled, the callchain shown by perf script shows the binary offsets of the symbols as the ip. This is incorrect for kernel symbols as the ip values are always off by a fixed offset depending on the architecture. If the offsets from the start of