aboutsummaryrefslogtreecommitdiff
path: root/scripts/gcc-plugins/cyc_complexity_plugin.c
diff options
context:
space:
mode:
authorShaokun Zhang <[email protected]>2020-06-18 21:35:44 +0800
committerWill Deacon <[email protected]>2020-07-20 11:24:08 +0100
commit539707caa1a89ee4efc57b4e4231c20c46575ccc (patch)
tree520aa34f0c88681f3363010797f8105586f9ce94 /scripts/gcc-plugins/cyc_complexity_plugin.c
parentf011856ce7b600fdc2d1102d56873b787ff6d1bb (diff)
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 <[email protected]> Cc: Will Deacon <[email protected]> Cc: Mark Rutland <[email protected]> Cc: <[email protected]> Link: https://lore.kernel.org/r/[email protected] [will: fixed formatting of 'if' condition] Signed-off-by: Will Deacon <[email protected]>
Diffstat (limited to 'scripts/gcc-plugins/cyc_complexity_plugin.c')
0 files changed, 0 insertions, 0 deletions