# Re: \[PATCH v3 3/3\] arm64: perf: Correct the event index in sysfs

- From: Will Deacon \<will@kernel.org\>
- Date: 2020-07-20 11:05:39 
- List: linux-arm-kernel
- Page: https://ratatoskr.run/linux-arm-kernel/2020/07/8796714
- Thread: https://ratatoskr.run/linux-arm-kernel/2020/06/8795591/t.md

```text
On Thu, Jun 18, 2020 at 09:35:44PM +0800, Shaokun Zhang wrote:
> When PMU event ID is equal or greater than 0x4000, it will be reduced
> by 0x4000 and it is not the raw number in the sysfs. Let's correct it
> and obtain the raw event ID.
> 
> Before this patch:
> cat /sys/bus/event_source/devices/armv8_pmuv3_0/events/sample_feed
> event=0x001
> After this patch:
> cat /sys/bus/event_source/devices/armv8_pmuv3_0/events/sample_feed
> event=0x4001

Oops, I'll queue this one with a cc stable.

Thanks,

Will

_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel
```
