Messages in this thread | | | Subject | Re: [PATCH 02/21] perf pmu: Add const to pmu_events_map. | From | John Garry <> | Date | Fri, 8 Oct 2021 12:01:38 +0100 |
| |
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@google.com>
Reviewed-by: John Garry <john.garry@huawei.com>
| |