Re: [PATCH 31/52] perf stat record: Synthesize stat record data

From: Jiri Olsa
Date: Wed Oct 28 2015 - 09:03:50 EST


On Tue, Oct 27, 2015 at 11:42:44AM -0300, Arnaldo Carvalho de Melo wrote:
> Em Sun, Oct 25, 2015 at 03:51:47PM +0100, Jiri Olsa escreveu:
> > Synthesizing needed stat record data for report/script:
> > - cpu/thread maps
> > - stat config
>
> After this it gets a bit better, but then I expected that to specify an
> event I would be able to use:
>
> [root@zoo linux]# perf stat record -e cycles usleep 1
> Error: unknown switch `e'
>
> Usage: perf record [<options>] [<command>]
> or: perf record [<options>] -- <command> [<options>]
>
> -o, --output <file> output file name
>
>
> But I need to do it as:
>
> [root@zoo linux]# perf stat -e cycles record usleep 1
>
> Performance counter stats for 'usleep 1':
>
> 948417 cycles
>
> 0.000749965 seconds time elapsed
>
> [root@zoo linux]#
>
> --------------------------------------------------
>
> This is confusing...

yep, the thing is that we need to have all the options supported
by perf stat to work under perf stat record.

you basically let user use perf stat with 'record' that just says
'store the data I'm monitoring'

I'll try to find some way to move the options under perf stat record
without too many changes.. but not sure

jirka
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/