Re: [tip:perf/core] perf evsel: Fix inverted test for fixing upattr.inherit flag

From: Arnaldo Carvalho de Melo
Date: Thu Apr 14 2011 - 13:01:43 EST


Em Thu, Apr 14, 2011 at 05:47:26PM +0200, Peter Zijlstra escreveu:
> On Mon, 2011-04-11 at 14:35 -0300, Arnaldo Carvalho de Melo wrote:
> >
> > Can you check if the patch below fixes this? An acked-by or tested-by
> > tag would be mucho appreciated.
> >
>
> Didn't work..
>
> # ./perf stat ~/loop_1b_instructions-4x
>
> Performance counter stats for '/root/loop_1b_instructions-4x':
>
> 288.908743 task-clock-msecs # 0.444 CPUs
> 51 context-switches # 0.000 M/sec
> 1 CPU-migrations # 0.000 M/sec
> 116 page-faults # 0.000 M/sec
> 715,288,186 cycles # 2475.827 M/sec (scaled from 49.77%)
> 1,000,703,570 instructions # 1.399 IPC (scaled from 64.61%)
> 100,255,005 branches # 347.013 M/sec (scaled from 56.19%)
> 11,453 branch-misses # 0.011 % (scaled from 65.27%)
> 26,089 cache-references # 0.090 M/sec (scaled from 43.82%)
> 110 cache-misses # 0.000 M/sec (scaled from 36.35%)
>
> 0.649991199 seconds time elapsed
>
> That wants to have 4b insn

There was another, sillier problem, now seems to work, ack?

[acme@emilia linux]$ perf stat ~/loop_1b_instructions-4x

Performance counter stats for '/home/acme/loop_1b_instructions-4x':

1451.781634 task-clock-msecs # 3.965 CPUs
1,463 context-switches # 0.001 M/sec
3 CPU-migrations # 0.000 M/sec
187 page-faults # 0.000 M/sec
2,865,021,951 cycles # 1973.452 M/sec (scaled from 70.29%)
4,001,127,146 instructions # 1.397 IPC (scaled from 80.24%)
401,476,915 branches # 276.541 M/sec (scaled from 80.27%)
63,800 branch-misses # 0.016 % (scaled from 80.29%)
262,866 cache-references # 0.181 M/sec (scaled from 20.14%)
10,938 cache-misses # 0.008 M/sec (scaled from 20.07%)

0.366184692 seconds time elapsed

[acme@emilia linux]$