On Mon, Oct 17, 2016 at 09:56:42AM -0700, Andi Kleen wrote:
> > so there's a special treatment for uncore events,
> > what if user says 'uncore_box/..' then?
> 
> It should work. There's nothing special for uncore later, this
> is just for convenience so that I have less to type.

really..


'uncore_cbox_0/clockticks/'

        [jolsa@krava perf]$ sudo ./perf stat -e 'uncore_cbox_0/clockticks/' -a
        ^C
         Performance counter stats for 'system wide':

                         0      uncore_cbox_0/clockticks/                       
            

               0.676237018 seconds time elapsed


'cbox_0/clockticks/'

        [jolsa@krava perf]$ sudo ./perf stat -e 'cbox_0/clockticks/' -a
        ^C
         Performance counter stats for 'system wide':

                         0      cbox_0/clockticks/                              
            

               0.991623038 seconds time elapsed


'cbox/clockticks'

        [jolsa@krava perf]$ sudo ./perf stat -e 'cbox/clockticks/' -a
        ^C
         Performance counter stats for 'system wide':

                         0      cbox/clockticks/                                
            

               0.708006656 seconds time elapsed


'uncore_cbox/clockticks/'

        [jolsa@krava perf]$ sudo ./perf stat -e 'uncore_cbox/clockticks/' -a
        invalid or unsupported event: 'uncore_cbox/clockticks/'
        Run 'perf list' for a list of valid events

         Usage: perf stat [<options>] [<command>]

            -e, --event <event>   event selector. use 'perf list' to list 
available events


jirka

Reply via email to