On Tue, Jan 29, 2013 at 02:43:34PM +0100, Andreas Hollmann wrote:
> > hm, I'm getting following stats when running perf stat in similar scenario:
> >
> > [jolsa@dhcp-26-214 perf]$ ./perf stat -e
> > '{task-clock,cpu-clock,instructions}' kill
> > usage: kill [ -s signal | -p ] [ -a ] pid ...
> > kill -l [ signal ]
> >
> > Performance counter stats for 'kill':
> >
> > 1.039561 task-clock # 0.479 CPUs utilized
> > <not counted> cpu-clock
> > 2,281,726 instructions # 0.00 insns per cycle
> >
> > 0.002168502 seconds time elapsed
> > ...
> >
> > seems wrong ;-) will check
> >
> > thanks,
> > jirka
>
> creating groups with perf stat is new for me and not documented ?
there's following switch for stat:
-g, --group put the counters into a counter group
and for record:
--group put the counters into a counter group
that will make all the '-e events' act as group
and there's {} syntax wich creates groups out of any events you enclose
and yep it's not in any man page so far.. it's been on my TODO list for
some time now ;-)
jirka
>
> running the same works for me:
>
> [capjo@e6410 ~]$ perf stat -v -e '{task-clock,cpu-clock,instructions}' kill
> usage: kill [ -s signal | -p ] [ -a ] pid ...
> kill -l [ signal ]
> task-clock: 884808 884808 884808
> cpu-clock: 885924 884808 884808
> instructions: 735287 884808 884808
>
> Performance counter stats for 'kill':
>
> 0.884808 task-clock # 0.687 CPUs utilized
> 0.885924 cpu-clock
> 735,287 instructions # 0.00 insns per cycle
>
> 0.001287584 seconds time elapsed
hum, mine's not working.. seems like some event scheduling
issue fox mixed events group
>
> [capjo@e6410 ~]$ perf --version
> perf version 3.7-5
> [capjo@e6410 ~]$ uname -a
> Linux e6410 3.7.4-1-ARCH #1 SMP PREEMPT Mon Jan 21 23:05:29 CET 2013
> x86_64 GNU/Linux
--
To unsubscribe from this list: send the line "unsubscribe linux-perf-users" in
the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html