Re: [PATCH v8] libperf: Add arm64 support to perf_mmap__read_self()

From: Rob Herring
Date: Tue Dec 14 2021 - 17:08:55 EST


On Tue, Dec 14, 2021 at 3:56 PM Rob Herring <robh@xxxxxxxxxx> wrote:
>
> Add the arm64 variants for read_perf_counter() and read_timestamp().
> Unfortunately the counter number is encoded into the instruction, so the
> code is a bit verbose to enumerate all possible counters.
>
> Signed-off-by: Rob Herring <robh@xxxxxxxxxx>
> ---
> v8:
> - Set attr.config1 to request user access on arm64

Hit send a bit too quick. The kernel side[1] has now been applied by
Will, so hopefully the libperf enabling can land in 5.17 too.

Rob

[1] https://lore.kernel.org/all/163948145564.2060329.17036263207999776606.b4-ty@xxxxxxxxxx/