Re: [PATCH 3/6] arm64: pmu: Add function implementation to update event index in userpage.

2019-05-17 Thread Mark Rutland
On Thu, May 16, 2019 at 02:21:45PM +0100, Raphael Gault wrote: > 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

[PATCH 3/6] arm64: pmu: Add function implementation to update event index in userpage.

2019-05-16 Thread 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. Signed-off-by: Raphael Gault ---