OSDN Git Service

perf/x86: Factor out x86_pmu_show_pmu_cap
authorKan Liang <kan.liang@linux.intel.com>
Mon, 12 Apr 2021 14:30:55 +0000 (07:30 -0700)
committerPeter Zijlstra <peterz@infradead.org>
Mon, 19 Apr 2021 18:03:27 +0000 (20:03 +0200)
commite11c1a7eb302ac8f6f47c18fa662546405a5fd83
treecdeca58fe80a3069d8cc42fbe6402c0a0e42d157
parentb98567298bad891774054113690b30bd90d5738d
perf/x86: Factor out x86_pmu_show_pmu_cap

The PMU capabilities are different among hybrid PMUs. Perf should dump
the PMU capabilities information for each hybrid PMU.

Factor out x86_pmu_show_pmu_cap() which shows the PMU capabilities
information. The function will be reused later when registering a
dedicated hybrid PMU.

Signed-off-by: Kan Liang <kan.liang@linux.intel.com>
Signed-off-by: Peter Zijlstra (Intel) <peterz@infradead.org>
Reviewed-by: Andi Kleen <ak@linux.intel.com>
Link: https://lkml.kernel.org/r/1618237865-33448-16-git-send-email-kan.liang@linux.intel.com
arch/x86/events/core.c
arch/x86/events/perf_event.h