public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
From: Arnaldo Carvalho de Melo <acme@kernel.org>
To: "Jin, Yao" <yao.jin@linux.intel.com>
Cc: jolsa@kernel.org, peterz@infradead.org, mingo@redhat.com,
	alexander.shishkin@linux.intel.com, Linux-kernel@vger.kernel.org,
	ak@linux.intel.com, kan.liang@intel.com, yao.jin@intel.com
Subject: Re: [PATCH] perf report: Fix broken arrow at row 0 in annotate view
Date: Fri, 7 Jul 2017 09:20:16 -0300	[thread overview]
Message-ID: <20170707122016.GN27350@kernel.org> (raw)
In-Reply-To: <bf00e881-6189-4c6b-faef-87d32c6414c3@linux.intel.com>

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@linux.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;

  reply	other threads:[~2017-07-07 12:20 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-06-08  6:01 [PATCH] perf report: Fix broken arrow at row 0 in annotate view Jin Yao
2017-07-07  5:11 ` Jin, Yao
2017-07-07 12:20   ` Arnaldo Carvalho de Melo [this message]
2017-07-07 14:21 ` Arnaldo Carvalho de Melo
2017-07-11  8:50 ` [tip:perf/urgent] perf annotate: Fix broken arrow at row 0 connecting jmp instruction to its target tip-bot for Jin Yao

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20170707122016.GN27350@kernel.org \
    --to=acme@kernel.org \
    --cc=Linux-kernel@vger.kernel.org \
    --cc=ak@linux.intel.com \
    --cc=alexander.shishkin@linux.intel.com \
    --cc=jolsa@kernel.org \
    --cc=kan.liang@intel.com \
    --cc=mingo@redhat.com \
    --cc=peterz@infradead.org \
    --cc=yao.jin@intel.com \
    --cc=yao.jin@linux.intel.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox