lkml.org 
[lkml]   [2016]   [Oct]   [17]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [PATCH 08/10] perf, tools: Expand PMU events by prefix match
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

\
 
 \ /
  Last update: 2016-10-17 19:27    [W:0.060 / U:4.124 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site