Re: [PATCH v2 1/2] perf expr: Add d_ratio operation

2020-06-11 Thread Arnaldo Carvalho de Melo
Em Thu, Jun 11, 2020 at 10:38:46AM +0200, Jiri Olsa escreveu: > On Wed, Jun 10, 2020 at 04:58:22PM -0700, Ian Rogers wrote: > > d_ratio avoids division by 0 yielding infinity, such as when a counter > > doesn't get scheduled. An example usage is: > > > > { > > "BriefDescription": "DCache L1

Re: [PATCH v2 1/2] perf expr: Add d_ratio operation

2020-06-11 Thread Jiri Olsa
On Wed, Jun 10, 2020 at 04:58:22PM -0700, Ian Rogers wrote: > d_ratio avoids division by 0 yielding infinity, such as when a counter > doesn't get scheduled. An example usage is: > > { > "BriefDescription": "DCache L1 misses", > "MetricExpr": "d_ratio(MEM_LOAD_RETIRED.L1_MISS,

[PATCH v2 1/2] perf expr: Add d_ratio operation

2020-06-10 Thread Ian Rogers
d_ratio avoids division by 0 yielding infinity, such as when a counter doesn't get scheduled. An example usage is: { "BriefDescription": "DCache L1 misses", "MetricExpr": "d_ratio(MEM_LOAD_RETIRED.L1_MISS, MEM_LOAD_RETIRED.L1_HIT + MEM_LOAD_RETIRED.L1_MISS + MEM_LOAD_RETIRED.FB_HIT)",