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
Reply to
Shaokun Zhang, 2020-06-18
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
Thread (11 messages) 11 messages, 3 authors, last reply 2020-07-21
Keyboard shortcuts
hback out one level
jnext message in thread / next series-diff position
kprevious message in thread / previous series-diff position
ldrill in
Escclose help / fold thread tree
?toggle this help