Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.kernel > #1404548
| From | Jiri Olsa <jolsa@redhat.com> |
|---|---|
| Newsgroups | linux.kernel |
| Subject | Re: [PATCH] perf stat: Print topology/time headers with --metric-only |
| Date | 2016-05-20 17:40 +0200 |
| Message-ID | <rAUGR-7fU-1@gated-at.bofh.it> (permalink) |
| References | <rATKO-6En-21@gated-at.bofh.it> |
| Organization | linux.* mail to news gateway |
On Fri, May 20, 2016 at 07:29:59AM -0700, Andi Kleen wrote:
> From: Andi Kleen <ak@linux.intel.com>
>
> When --metric-only is enabled there were no headers for the topology
> in interval mode. Fix this here.
>
> Before
>
> $ perf stat --metric-only -e cycles,instructions -a -I 1000
> 1.000554967 insn per cycle stalled cycles per insn
> 1.000554967 0.27
> 2.000862000 0.24
> 3.001354948 0.25
>
> After
>
> $ perf stat --metric-only -e cycles,instructions -a -I 1000
> 1.000554967 insn per cycle stalled cycles per insn
> 1.000554967 0.27
> 2.000862000 0.24
> 3.001354948 0.25
hum, I'm getting something else:
[jolsa@ibm-x3650m4-01 perf]$ sudo ./perf stat --topdown -I 1000 -a
nmi_watchdog enabled with topdown. May give wrong results.
Disable with echo 0 > /proc/sys/kernel/nmi_watchdog
# time core cpus
1.001710838 retiring bad speculation frontend bound backend bound
1.001710838 S0-C0 2 38.1% -0.0% 58.8% 3.1%
1.001710838 S0-C1 2 38.0% 0.0% 59.4% 2.5%
[jolsa@ibm-x3650m4-01 perf]$ sudo ./perf stat --metric-only -e cycles,instructions -a -I 1000
# time
1.000756338 insn per cycle stalled cycles per insn
1.000756338 0.32
2.001155562 0.30
jirka
Back to linux.kernel | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
[PATCH] perf stat: Print topology/time headers with --metric-only Andi Kleen <andi@firstfloor.org> - 2016-05-20 16:40 +0200
Re: [PATCH] perf stat: Print topology/time headers with --metric-only Jiri Olsa <jolsa@redhat.com> - 2016-05-20 17:40 +0200
Re: [PATCH] perf stat: Print topology/time headers with --metric-only Andi Kleen <ak@linux.intel.com> - 2016-05-20 17:50 +0200
Re: [PATCH] perf stat: Print topology/time headers with --metric-only Jiri Olsa <jolsa@redhat.com> - 2016-05-20 17:50 +0200
Re: [PATCH] perf stat: Print topology/time headers with --metric-only Andi Kleen <ak@linux.intel.com> - 2016-05-20 22:00 +0200
csiph-web