lkml.org 
[lkml]   [2015]   [Oct]   [28]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [PATCH 31/52] perf stat record: Synthesize stat record data
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


\
 
 \ /
  Last update: 2015-10-28 14:21    [W:0.080 / U:0.612 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site