]> git.baikalelectronics.ru Git - kernel.git/commit
perf/x86/intel: Add attr_update for Hybrid PMUs
authorKan Liang <kan.liang@linux.intel.com>
Mon, 12 Apr 2021 14:30:58 +0000 (07:30 -0700)
committerPeter Zijlstra <peterz@infradead.org>
Mon, 19 Apr 2021 18:03:28 +0000 (20:03 +0200)
commit6bebbde53392784638de5e0405056ee05f8be28e
treef6296e079a60f79ee6f5e6e2b1bc830b8e7fc9d4
parent790b86c29efac18ac66d736fe8b355372c3aa39e
perf/x86/intel: Add attr_update for Hybrid PMUs

The attribute_group for Hybrid PMUs should be different from the
previous
cpu PMU. For example, cpumask is required for a Hybrid PMU. The PMU type
should be included in the event and format attribute.

Add hybrid_attr_update for the Hybrid PMU.
Check the PMU type in is_visible() function. Only display the event or
format for the matched 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-19-git-send-email-kan.liang@linux.intel.com
arch/x86/events/intel/core.c