Re: [PATCH v6 01/10] arm64: pmu: Add function implementation to update event index in userpage

2021-03-30 Thread Will Deacon
On Wed, Mar 10, 2021 at 05:08:28PM -0700, Rob Herring wrote: > From: Raphael Gault > > In order to be able to access the counter directly for userspace, > we need to provide the index of the counter using the userpage. > We thus need to override the event_idx function to retrieve and > convert

[PATCH v6 01/10] arm64: pmu: Add function implementation to update event index in userpage

2021-03-10 Thread Rob Herring
From: Raphael Gault In order to be able to access the counter directly for userspace, we need to provide the index of the counter using the userpage. We thus need to override the event_idx function to retrieve and convert the perf_event index to armv8 hardware index. Since the arm_pmu driver