diff options
Diffstat (limited to 'arch/x86/kernel/cpu/perf_event_intel.c')
| -rw-r--r-- | arch/x86/kernel/cpu/perf_event_intel.c | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/arch/x86/kernel/cpu/perf_event_intel.c b/arch/x86/kernel/cpu/perf_event_intel.c index 324bb523d9d..93b9e1181f8 100644 --- a/arch/x86/kernel/cpu/perf_event_intel.c +++ b/arch/x86/kernel/cpu/perf_event_intel.c | |||
| @@ -1603,6 +1603,13 @@ static struct attribute *intel_arch_formats_attr[] = { | |||
| 1603 | NULL, | 1603 | NULL, |
| 1604 | }; | 1604 | }; |
| 1605 | 1605 | ||
| 1606 | ssize_t intel_event_sysfs_show(char *page, u64 config) | ||
| 1607 | { | ||
| 1608 | u64 event = (config & ARCH_PERFMON_EVENTSEL_EVENT); | ||
| 1609 | |||
| 1610 | return x86_event_sysfs_show(page, config, event); | ||
| 1611 | } | ||
| 1612 | |||
| 1606 | static __initconst const struct x86_pmu core_pmu = { | 1613 | static __initconst const struct x86_pmu core_pmu = { |
| 1607 | .name = "core", | 1614 | .name = "core", |
| 1608 | .handle_irq = x86_pmu_handle_irq, | 1615 | .handle_irq = x86_pmu_handle_irq, |
| @@ -1628,6 +1635,7 @@ static __initconst const struct x86_pmu core_pmu = { | |||
| 1628 | .event_constraints = intel_core_event_constraints, | 1635 | .event_constraints = intel_core_event_constraints, |
| 1629 | .guest_get_msrs = core_guest_get_msrs, | 1636 | .guest_get_msrs = core_guest_get_msrs, |
| 1630 | .format_attrs = intel_arch_formats_attr, | 1637 | .format_attrs = intel_arch_formats_attr, |
| 1638 | .events_sysfs_show = intel_event_sysfs_show, | ||
| 1631 | }; | 1639 | }; |
| 1632 | 1640 | ||
| 1633 | struct intel_shared_regs *allocate_shared_regs(int cpu) | 1641 | struct intel_shared_regs *allocate_shared_regs(int cpu) |
| @@ -1766,6 +1774,7 @@ static __initconst const struct x86_pmu intel_pmu = { | |||
| 1766 | .pebs_aliases = intel_pebs_aliases_core2, | 1774 | .pebs_aliases = intel_pebs_aliases_core2, |
| 1767 | 1775 | ||
| 1768 | .format_attrs = intel_arch3_formats_attr, | 1776 | .format_attrs = intel_arch3_formats_attr, |
| 1777 | .events_sysfs_show = intel_event_sysfs_show, | ||
| 1769 | 1778 | ||
| 1770 | .cpu_prepare = intel_pmu_cpu_prepare, | 1779 | .cpu_prepare = intel_pmu_cpu_prepare, |
| 1771 | .cpu_starting = intel_pmu_cpu_starting, | 1780 | .cpu_starting = intel_pmu_cpu_starting, |
