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

Will Deacon will at kernel.org
Mon Jul 20 06:20:34 EDT 2020


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



More information about the linux-arm-kernel mailing list