Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.kernel > #1400801
| From | Namhyung Kim <namhyung@kernel.org> |
|---|---|
| Newsgroups | linux.kernel |
| Subject | Re: [PATCH 1/3] perf diff: Fix indentation of stalled backend cycle |
| Date | 2016-05-13 15:50 +0200 |
| Message-ID | <rylDz-4eO-3@gated-at.bofh.it> (permalink) |
| References | <ryesp-5QZ-3@gated-at.bofh.it> <ryjLs-2sD-11@gated-at.bofh.it> |
| Organization | linux.* mail to news gateway |
Hi Arnaldo,
On Fri, May 13, 2016 at 08:48:48AM -0300, Arnaldo Carvalho de Melo wrote:
> Em Fri, May 13, 2016 at 03:01:01PM +0900, Namhyung Kim escreveu:
> > The commit 140aeadc1fb5 ("perf stat: Abstract stat metrics printing")
> > changed way to print shadow metrics, but it missed to update the width
> > of stalled backend cycles event to 7.2% like others. This resulted in
> > misaligned output like below:
>
> Thanks for pointing out the cset that introduced the problem, helps in
> reviewing! Next time please consider adding it right before your
> Signed-off-by line as:
>
> Fixes: 140aeadc1fb5 ("perf stat: Abstract stat metrics printing")
>
> Thanks!
Ok, will do it later. Btw I found the subject line should start with
'perf stat' instead of 'perf diff'..
Thanks,
Namhyung
>
> > Performance counter stats for 'pwd':
> >
> > 0.638313 task-clock (msec) # 0.567 CPUs utilized
> > 0 context-switches # 0.000 K/sec
> > 0 cpu-migrations # 0.000 K/sec
> > 54 page-faults # 0.085 M/sec
> > 885,600 cycles # 1.387 GHz
> > 558,438 stalled-cycles-frontend # 63.06% frontend cycles idle
> > 431,355 stalled-cycles-backend # 48.71% backend cycles idle
> > 674,956 instructions # 0.76 insn per cycle
> > # 0.83 stalled cycles per insn
> > 130,380 branches # 204.257 M/sec
> > <not counted> branch-misses
> >
> > 0.001125426 seconds time elapsed
> >
> > Cc: Andi Kleen <andi@firstfloor.org>
> > Signed-off-by: Namhyung Kim <namhyung@kernel.org>
> > ---
> > tools/perf/util/stat-shadow.c | 2 +-
> > 1 file changed, 1 insertion(+), 1 deletion(-)
> >
> > diff --git a/tools/perf/util/stat-shadow.c b/tools/perf/util/stat-shadow.c
> > index fdb71961143e..61200fcac5ef 100644
> > --- a/tools/perf/util/stat-shadow.c
> > +++ b/tools/perf/util/stat-shadow.c
> > @@ -188,7 +188,7 @@ static void print_stalled_cycles_backend(int cpu,
> >
> > color = get_ratio_color(GRC_STALLED_CYCLES_BE, ratio);
> >
> > - out->print_metric(out->ctx, color, "%6.2f%%", "backend cycles idle", ratio);
> > + out->print_metric(out->ctx, color, "%7.2f%%", "backend cycles idle", ratio);
> > }
> >
> > static void print_branch_misses(int cpu,
> > --
> > 2.8.2
Back to linux.kernel | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
[PATCH 1/3] perf diff: Fix indentation of stalled backend cycle Namhyung Kim <namhyung@kernel.org> - 2016-05-13 08:10 +0200
[PATCH 3/3] perf stat: Use cpu-clock event for cpu targets Namhyung Kim <namhyung@kernel.org> - 2016-05-13 08:10 +0200
[tip:perf/urgent] perf stat: Use cpu-clock event for cpu targets tip-bot for Namhyung Kim <tipbot@zytor.com> - 2016-05-20 08:50 +0200
Re: [PATCH 1/3] perf diff: Fix indentation of stalled backend cycle Arnaldo Carvalho de Melo <acme@kernel.org> - 2016-05-13 13:50 +0200
Re: [PATCH 1/3] perf diff: Fix indentation of stalled backend cycle Namhyung Kim <namhyung@kernel.org> - 2016-05-13 15:50 +0200
Re: [PATCH 1/3] perf diff: Fix indentation of stalled backend cycle Arnaldo Carvalho de Melo <acme@kernel.org> - 2016-05-13 20:00 +0200
Re: [PATCH 1/3] perf diff: Fix indentation of stalled backend cycle Andi Kleen <andi@firstfloor.org> - 2016-05-13 16:10 +0200
[tip:perf/urgent] perf stat: Fix indentation of stalled backend cycle tip-bot for Namhyung Kim <tipbot@zytor.com> - 2016-05-20 08:50 +0200
csiph-web