Re: [PATCH] perf script: Show correct offsets for DWARF-based unwinding

2018-07-25 Thread Milian Wolff
On Montag, 9. Juli 2018 16:25:07 CEST Jiri Olsa wrote: > On Tue, Jul 03, 2018 at 05:35:55PM +0530, Sandipan Das wrote: > > SNIP > > > After: > > # perf report --stdio --no-children -s sym,srcline -g address > > > > # Samples: 1 of event 'probe_libc:inet_pton' > > # Event count

Re: [PATCH] perf script: Show correct offsets for DWARF-based unwinding

2018-07-25 Thread Milian Wolff
On Montag, 9. Juli 2018 16:25:07 CEST Jiri Olsa wrote: > On Tue, Jul 03, 2018 at 05:35:55PM +0530, Sandipan Das wrote: > > SNIP > > > After: > > # perf report --stdio --no-children -s sym,srcline -g address > > > > # Samples: 1 of event 'probe_libc:inet_pton' > > # Event count

Re: [PATCH] perf script: Show correct offsets for DWARF-based unwinding

2018-07-09 Thread Jiri Olsa
On Tue, Jul 03, 2018 at 05:35:55PM +0530, Sandipan Das wrote: SNIP > > After: > > # perf report --stdio --no-children -s sym,srcline -g address > > # Samples: 1 of event 'probe_libc:inet_pton' > # Event count (approx.): 1 > # > # Overhead SymbolSource:Line > #

Re: [PATCH] perf script: Show correct offsets for DWARF-based unwinding

2018-07-09 Thread Jiri Olsa
On Tue, Jul 03, 2018 at 05:35:55PM +0530, Sandipan Das wrote: SNIP > > After: > > # perf report --stdio --no-children -s sym,srcline -g address > > # Samples: 1 of event 'probe_libc:inet_pton' > # Event count (approx.): 1 > # > # Overhead SymbolSource:Line > #

[PATCH] perf script: Show correct offsets for DWARF-based unwinding

2018-07-03 Thread Sandipan Das
When perf data is recorded with the dwarf call-graph option, the callchain shown by perf script still shows the binary offsets of the userspace symbols instead of their virtual addresses. Since the symbol offset calculation is based on using virtual address as the ip, we see incorrect offsets as

[PATCH] perf script: Show correct offsets for DWARF-based unwinding

2018-07-03 Thread Sandipan Das
When perf data is recorded with the dwarf call-graph option, the callchain shown by perf script still shows the binary offsets of the userspace symbols instead of their virtual addresses. Since the symbol offset calculation is based on using virtual address as the ip, we see incorrect offsets as