Re: [PATCH v6 2/7] perf metric: "Compat" supports matching multiple identifiers

From: John Garry
Date: Mon Aug 07 2023 - 05:20:37 EST


On 07/08/2023 08:51, Jing Zhang wrote:
The jevent "Compat" is used for uncore PMU alias or metric definitions.

The same PMU driver has different PMU identifiers due to different
hardware versions and types, but they may have some common PMU metric.
Since a Compat value can only match one identifier, when adding the
same metric to PMUs with different identifiers, each identifier needs
to be defined once, which is not streamlined enough.

So let "Compat" supports matching multiple identifiers for uncore PMU
metric.

Signed-off-by: Jing Zhang<renyu.zj@xxxxxxxxxxxxxxxxx>

Reviewed-by: John Garry <john.g.garry@xxxxxxxxxx>