[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [lmi] perf+wine
From: |
Vadim Zeitlin |
Subject: |
Re: [lmi] perf+wine |
Date: |
Fri, 2 Mar 2018 16:15:02 +0100 |
On Fri, 2 Mar 2018 11:30:55 +0000 Greg Chicares <address@hidden> wrote:
GC> On 2018-02-28 13:15, Vadim Zeitlin wrote:
GC> [...]
GC> > Also, running perf under Linux is always worthwhile -- and very simple to
GC> > do, so I'd also do this and see if you notice anything unusual in its
GC> > output. You could run just the Wine process itself under it or even run it
GC> > system-wide, if your system is reasonably idle, Wine should dominate all
GC> > the statistics anyhow.
GC> $perf record wine ./lmi_wx_shared --ash_nazg --data_path=/opt/lmi/data
GC>
GC> $perf report
GC> Samples: 350K of event 'cycles', Event count (approx.): 260014842317
GC> Overhead Command Shared Object Symbol
GC> 66.60% lmi_wx_shared [unknown] [.] 0x000000007bc50843
GC> 1.04% lmi_wx_shared [unknown] [.] 0x000000007bc50830
GC> 0.69% lmi_wx_shared [unknown] [.] 0x000000007bc3d88c
GC> 0.67% lmi_wx_shared perf-19333.map [.] 0x000000006d0d38dc
GC> 0.65% lmi_wx_shared [unknown] [.] 0x000000007bc3d744
Argh, sorry, it looks painfully obvious, but, of course, perf is not going
to show anything useful for lmi_wx_shared as it doesn't know anything about
the symbols in PE files :-(
GC> $perf report -s sym,srcline
GC> 66.60% [.] 0x000000007bc50843 ??:0
GC> 1.04% [.] 0x000000007bc50830 ??:0
GC> 0.69% [.] 0x000000007bc3d88c ??:0
GC> 0.67% [.] 0x000000006d0d38dc
perf-19333.map[6d0d38dc]
GC> 0.65% [.] 0x000000007bc3d744 ??:0
GC>
GC> /opt/lmi/bin[0]$addr2line -e ./lmi_wx_shared.exe 0x000000007bc50843
GC> ??:0
GC> /opt/lmi/bin[0]$i686-w64-mingw32-addr2line -e ./lmi_wx_shared.exe
0x000000007bc50843
GC> ??:0
I think this doesn't work because you need to subtract the load address
from this address. I'm not sure how to find it though, I'll have to
experiment with it.
GC> Is there a simple magical incantation that translates
GC> 66.60% lmi_wx_shared [unknown] [.] 0x000000007bc50843
GC> to a symbol name?
Let me check in my grimoires and I'll get back to you a.s.a.p...
VZ