lkml.org 
[lkml]   [2014]   [Sep]   [1]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [PATCH 20/41] perf tools: Let a user specify a PMU event without any config terms
On Mon, Sep 01, 2014 at 12:51:42PM -0300, Arnaldo Carvalho de Melo wrote:

SNIP

> > krava alias: "tsc=1,noretcomp=0"
>
> > -e intel_pt/krava/
>
> > which gives the same result
>
> So you propose that we start maintaining some table of aliases that
> would be installed by default, etc? "krava" would not be a good name, I
> think (:-)), so in this case we would have something like:
>
> defaults_intel_pt: "tsc=1,noretcomp=0"
>
> -e intel_pt/defaults_intel_pt/
>
> Which of course gets redundant/long, so, using what Adrian suggests, we
> would instead not pass anything between the slashes, and that would mean
> "default_" concatenated with the name of the PMU used, so it would
> become:
>
> -e intel_pt//
>
> that would be equivalent to:
>
> -e intel_pt/defaults_intel_pt/
>
> and also to:
>
> -e intel_pt/tsc=1,noretcomp=0/
>
> ?
>
> I have not looked at the implementation, this is all just from the
> information I skimmed in this thread.

well I meant that we already have following directory:
/sys/devices/cpu/events

for aliases.. files with format definitions (even partial)
I can imagine 'default' file there doing the same job
for the default format set

but I just could be missing something which is not apparent
from changelog ;-)

jirka


\
 
 \ /
  Last update: 2014-09-01 21:21    [W:0.117 / U:0.536 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site