To be crystal clear, when you say ">1 PMU", do you mean ">1 PMU instanceSo I'm meaning that if you have a MetricExpr where the events are from
of the same type" or ">1 PMU type"?
1 PMU, for example memory bandwidth coming from uncore PMUs and theninstructions from a core PMU, and you do something like a ratio
between these two.
in a metric wouldn't work though as it wouldI think we're agreeing 😄
appear the event was missing. Having the metric specify the PMU avoidsThe message I'm getting - correct me if I am wrong - is that you would
these problems, but is verbose.
still prefer the PMU specified per event in metric expr, right? We don't
do that exactly for sys PMU metrics today - we specify "Unit" instead, like:
MetricExpr: "sys_pmu_bar_event_foo1 + sys_pmu_bar_event_foo2"
Compat: "baz"
Unit:"sys_pmu_bar"
And so you prefer something like the following, right?
MetricExpr: "sys_pmu_foo@bar1@ + sys_pmu_foo@bar2@"
If so, I think that is ok - I just want to get rid of Unit and Compat.
I think Unit may be useful, say on Intel
hybrid I want the tma_fround_bound metric on just cpu_atom. Currently
the use of Unit is messy for metrics, ie uncore metrics are associated
with core PMUs, and what to do with a MetricExpr with >1 PMU. I think
we're learning from trying. I'm just hoping the migration to a sysfs
style layout will still be possible, as I can see lots of upside in
terms of testing, 1 approach, etc.