lkml.org 
[lkml]   [2009]   [Aug]   [7]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [PATCH] perf tools: Fix reading of perf.data file header

* Brice Goglin <Brice.Goglin@inria.fr> wrote:

> Ingo Molnar wrote:
> > I completely forgot about it. And since we now have --scale enabled
> > by default (and it doesnt make much sense to disable it i guess), it
> > would not be a big issue to rename that -c/--scale to free up that
> > flag for -S/--stat?
> >
> > Ingo
> >
>
>
> Here you are. But how do you switch "scale" off now that it's
> disabled by default? I tried --scale=0, --no-scale and so on
> without apparently succeeding.

--no-scale seems to work here:

aldebaran:~> perf stat --no-scale -e 0:0 -e 0:0 -e 0:0 -e 0:0 -e 0:0
-e 0:0 -e 0:0 -e 0:0 ~/loop_1b_instructions

Performance counter stats for '/home/mingo/loop_1b_instructions':

469128160 cycles
469072870 cycles
470517049 cycles
473750835 cycles
476987439 cycles
477364955 cycles
474188871 cycles
470950809 cycles

0.237171581 seconds time elapsed

aldebaran:~> perf stat --scale -e 0:0 -e 0:0 -e 0:0 -e 0:0 -e 0:0 -e
0:0 -e 0:0 -e 0:0 ~/loop_1b_instructions

Performance counter stats for '/home/mingo/loop_1b_instructions':

756242908 cycles (scaled from 62.00%)
756238670 cycles (scaled from 62.00%)
756237417 cycles (scaled from 62.23%)
756093940 cycles (scaled from 62.66%)
756097133 cycles (scaled from 63.08%)
756141523 cycles (scaled from 63.10%)
756142674 cycles (scaled from 62.68%)
756154220 cycles (scaled from 62.26%)

0.236972028 seconds time elapsed

Ingo


\
 
 \ /
  Last update: 2009-08-07 10:25    [from the cache]
©2003-2011 Jasper Spaans