diff options
author | Shaokun Zhang <zhangshaokun@hisilicon.com> | 2020-06-18 16:35:44 +0300 |
---|---|---|
committer | Will Deacon <will@kernel.org> | 2020-07-20 13:24:08 +0300 |
commit | 539707caa1a89ee4efc57b4e4231c20c46575ccc (patch) | |
tree | 520aa34f0c88681f3363010797f8105586f9ce94 /include/linux/sched_clock.h | |
parent | f011856ce7b600fdc2d1102d56873b787ff6d1bb (diff) | |
download | linux-539707caa1a89ee4efc57b4e4231c20c46575ccc.tar.xz |
arm64: perf: Correct the event index in sysfs
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
Signed-off-by: Shaokun Zhang <zhangshaokun@hisilicon.com>
Cc: Will Deacon <will@kernel.org>
Cc: Mark Rutland <mark.rutland@arm.com>
Cc: <stable@vger.kernel.org>
Link: https://lore.kernel.org/r/1592487344-30555-3-git-send-email-zhangshaokun@hisilicon.com
[will: fixed formatting of 'if' condition]
Signed-off-by: Will Deacon <will@kernel.org>
Diffstat (limited to 'include/linux/sched_clock.h')
0 files changed, 0 insertions, 0 deletions