Skip to content

Commit

Permalink
arm64: perf: Extend event mask for ARMv8.1
Browse files Browse the repository at this point in the history
ARMv8.1 increases the PMU event number space to 16 bit so increase
the EVTYPE mask.

Signed-off-by: Jan Glauber <[email protected]>
Signed-off-by: Will Deacon <[email protected]>
  • Loading branch information
Jan Glauber authored and wildea01 committed Feb 18, 2016
1 parent 7175f05 commit c210ae8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions arch/arm64/kernel/perf_event.c
Original file line number Diff line number Diff line change
Expand Up @@ -419,8 +419,8 @@ static const struct attribute_group *armv8_pmuv3_attr_groups[] = {
/*
* PMXEVTYPER: Event selection reg
*/
#define ARMV8_EVTYPE_MASK 0xc80003ff /* Mask for writable bits */
#define ARMV8_EVTYPE_EVENT 0x3ff /* Mask for EVENT bits */
#define ARMV8_EVTYPE_MASK 0xc800ffff /* Mask for writable bits */
#define ARMV8_EVTYPE_EVENT 0xffff /* Mask for EVENT bits */

/*
* Event filters for PMUv3
Expand Down

0 comments on commit c210ae8

Please sign in to comment.