Re: [PATCH 02/21] perf pmu: Add const to pmu_events_map.

From: John Garry
Date: Fri Oct 08 2021 - 06:59:14 EST


On 07/10/2021 17:56, Ian Rogers wrote:
The pmu_events_map is generated at compile time and used for lookup. For
testing purposes we need to swap the map being used. Having the
pmu_events_map be non-const is misleading as it may be an out argument.
Make it const and update uses so they work on const too.

Signed-off-by: Ian Rogers<irogers@xxxxxxxxxx>

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