]> git.baikalelectronics.ru Git - kernel.git/commit
powerpc/perf: Add nest IMC PMU support
authorAnju T Sudhakar <anju@linux.vnet.ibm.com>
Tue, 18 Jul 2017 21:36:34 +0000 (03:06 +0530)
committerMichael Ellerman <mpe@ellerman.id.au>
Tue, 25 Jul 2017 12:55:45 +0000 (22:55 +1000)
commitbdfa74aa443f0971d8124b83874903fa074bd8a1
tree627fa60844403620c01545be2dee1fbdb955fdf8
parent6dc9a2eefc08fe008585334253cc6d1db48fe54c
powerpc/perf: Add nest IMC PMU support

Add support to register Nest In-Memory Collection PMU counters.
Patch adds a new device file called "imc-pmu.c" under powerpc/perf
folder to contain all the device PMU functions.

Device tree parser code added to parse the PMU events information
and create sysfs event attributes for the PMU.

Cpumask attribute added along with Cpu hotplug online/offline functions
specific for nest PMU. A new state "CPUHP_AP_PERF_POWERPC_NEST_IMC_ONLINE"
added for the cpu hotplug callbacks. Error handle path frees the memory
and unregisters the CPU hotplug callbacks.

Signed-off-by: Anju T Sudhakar <anju@linux.vnet.ibm.com>
Signed-off-by: Hemant Kumar <hemant@linux.vnet.ibm.com>
Signed-off-by: Madhavan Srinivasan <maddy@linux.vnet.ibm.com>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
arch/powerpc/perf/Makefile
arch/powerpc/perf/imc-pmu.c [new file with mode: 0644]
arch/powerpc/platforms/powernv/opal-imc.c
include/linux/cpuhotplug.h