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

John Garry john.g.garry at oracle.com
Mon Aug 7 02:20:02 PDT 2023


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 at linux.alibaba.com>

Reviewed-by: John Garry <john.g.garry at oracle.com>



More information about the linux-arm-kernel mailing list