diff options
author | Shaokun Zhang <zhangshaokun@hisilicon.com> | 2017-05-24 03:43:18 -0400 |
---|---|---|
committer | Will Deacon <will.deacon@arm.com> | 2017-05-30 07:15:14 -0400 |
commit | fe7296e19221c6dc125a06b52e28ccbdb76d9b58 (patch) | |
tree | 19eac9bcefe8cfc0f7bbcfc77473c4befa398215 | |
parent | 5ed02dbb497422bf225783f46e6eadd237d23d6b (diff) |
arm64: perf: Extend event config for ARMv8.1
Perf has supported ARMv8.1 feature with 16-bit evtCount filed [see c210ae8
arm64: perf: Extend event mask for ARMv8.1], event config should be
extended to 16-bit too, otherwise, if use -e event_name whose event_code
is more than 0x3ff, pmu_config_term will return -EINVAL because function
pmu_format_max_value depends on event config.
This patch extends event config to 16-bit.
Signed-off-by: Shaokun Zhang <zhangshaokun@hisilicon.com>
Signed-off-by: Will Deacon <will.deacon@arm.com>
-rw-r--r-- | arch/arm64/kernel/perf_event.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/arm64/kernel/perf_event.c b/arch/arm64/kernel/perf_event.c index 83a1b1ad189f..b5798ba21189 100644 --- a/arch/arm64/kernel/perf_event.c +++ b/arch/arm64/kernel/perf_event.c | |||
@@ -529,7 +529,7 @@ static struct attribute_group armv8_pmuv3_events_attr_group = { | |||
529 | .is_visible = armv8pmu_event_attr_is_visible, | 529 | .is_visible = armv8pmu_event_attr_is_visible, |
530 | }; | 530 | }; |
531 | 531 | ||
532 | PMU_FORMAT_ATTR(event, "config:0-9"); | 532 | PMU_FORMAT_ATTR(event, "config:0-15"); |
533 | 533 | ||
534 | static struct attribute *armv8_pmuv3_format_attrs[] = { | 534 | static struct attribute *armv8_pmuv3_format_attrs[] = { |
535 | &format_attr_event.attr, | 535 | &format_attr_event.attr, |