Skip to content

Commit 885dcd7

Browse files
anjutsudhakarmpe
authored andcommitted
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 <[email protected]> Signed-off-by: Hemant Kumar <[email protected]> Signed-off-by: Madhavan Srinivasan <[email protected]> Signed-off-by: Michael Ellerman <[email protected]>
1 parent 8f95faa commit 885dcd7

File tree

4 files changed

+756
-0
lines changed

4 files changed

+756
-0
lines changed

arch/powerpc/perf/Makefile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ obj64-$(CONFIG_PPC_PERF_CTRS) += power4-pmu.o ppc970-pmu.o power5-pmu.o \
88
isa207-common.o power8-pmu.o power9-pmu.o
99
obj32-$(CONFIG_PPC_PERF_CTRS) += mpc7450-pmu.o
1010

11+
obj-$(CONFIG_PPC_POWERNV) += imc-pmu.o
1112
obj-$(CONFIG_FSL_EMB_PERF_EVENT) += core-fsl-emb.o
1213
obj-$(CONFIG_FSL_EMB_PERF_EVENT_E500) += e500-pmu.o e6500-pmu.o
1314

0 commit comments

Comments
 (0)