lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Date:   Fri, 7 Jul 2017 09:20:16 -0300
From:   Arnaldo Carvalho de Melo <acme@...nel.org>
To:     "Jin, Yao" <yao.jin@...ux.intel.com>
Cc:     jolsa@...nel.org, peterz@...radead.org, mingo@...hat.com,
        alexander.shishkin@...ux.intel.com, Linux-kernel@...r.kernel.org,
        ak@...ux.intel.com, kan.liang@...el.com, yao.jin@...el.com
Subject: Re: [PATCH] perf report: Fix broken arrow at row 0 in annotate view

Em Fri, Jul 07, 2017 at 01:11:42PM +0800, Jin, Yao escreveu:
> Hi Arnaldo,
> 
> Could this patch be merged?

I'll test this one and the v4 fused ins series, thanks for following
this up!

- Arnaldo
 
> Otherwise the jump arrow is broken when it's displayed at the row 0 in
> annotate view.
> 
> Thanks
> 
> Jin Yao
> 
> On 6/8/2017 2:01 PM, Jin Yao wrote:
> > When the jump instruction is displayed at the row 0 in annotate view,
> > the arrow is broken. An example:
> > 
> >   16.86 │   ┌──je     82
> >    0.01 │      movsd  (%rsp),%xmm0
> >         │      movsd  0x8(%rsp),%xmm4
> >         │      movsd  0x8(%rsp),%xmm1
> >         │      movsd  (%rsp),%xmm3
> >         │      divsd  %xmm4,%xmm0
> >         │      divsd  %xmm3,%xmm1
> >         │      movsd  (%rsp),%xmm2
> >         │      addsd  %xmm1,%xmm0
> >         │      addsd  %xmm2,%xmm0
> >         │      movsd  %xmm0,(%rsp)
> >         │82:   sub    $0x1,%ebx
> >   83.03 │    ↑ jne    38
> >         │      add    $0x10,%rsp
> >         │      xor    %eax,%eax
> >         │      pop    %rbx
> >         │    ← retq
> > 
> > The patch increments the row number before checking with 0.
> > 
> > Signed-off-by: Jin Yao <yao.jin@...ux.intel.com>
> > ---
> >   tools/perf/ui/browser.c | 2 +-
> >   1 file changed, 1 insertion(+), 1 deletion(-)
> > 
> > diff --git a/tools/perf/ui/browser.c b/tools/perf/ui/browser.c
> > index a4d3762..83874b0 100644
> > --- a/tools/perf/ui/browser.c
> > +++ b/tools/perf/ui/browser.c
> > @@ -704,7 +704,7 @@ static void __ui_browser__line_arrow_down(struct ui_browser *browser,
> >   		ui_browser__gotorc(browser, row, column + 1);
> >   		SLsmg_draw_hline(2);
> > -		if (row++ == 0)
> > +		if (++row == 0)
> >   			goto out;
> >   	} else
> >   		row = 0;

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ