Re: [PATCH 3/4] perf stat: Add --metrics-file option

2020-05-13 Thread Ian Rogers
On Wed, May 13, 2020 at 4:33 AM Jiri Olsa wrote: > > On Wed, May 13, 2020 at 12:04:55AM -0700, Ian Rogers wrote: > > SNIP > > > > +METRICS FILE > > > + > > > +The file with metrics has following syntax: > > > + > > > + NAME = EXPRESSION ; > > > + NAME = EXPRESSION ; > > > + ... > >

Re: [PATCH 3/4] perf stat: Add --metrics-file option

2020-05-13 Thread Jiri Olsa
On Wed, May 13, 2020 at 12:04:55AM -0700, Ian Rogers wrote: SNIP > > +METRICS FILE > > + > > +The file with metrics has following syntax: > > + > > + NAME = EXPRESSION ; > > + NAME = EXPRESSION ; > > + ... > > + > > +where NAME is unique identifier of the metric, which is later

Re: [PATCH 3/4] perf stat: Add --metrics-file option

2020-05-13 Thread Ian Rogers
On Mon, May 11, 2020 at 1:54 PM Jiri Olsa wrote: > > Adding --metrics-file option that allows to specify metrics > in the file. > > It's now possible to define metrics in file and use them like: > > $ cat metrics > // IPC > mine1 = inst_retired.any / cpu_clk_unhalted.thread; > > /*

[PATCH 3/4] perf stat: Add --metrics-file option

2020-05-11 Thread Jiri Olsa
Adding --metrics-file option that allows to specify metrics in the file. It's now possible to define metrics in file and use them like: $ cat metrics // IPC mine1 = inst_retired.any / cpu_clk_unhalted.thread; /* DECODED_ICACHE_UOPS% */ mine2 = 100 * (idq.dsb_uops / (idq.ms_uops +