powerpc/pseries: Export raw per-CPU VPA data via debugfs
authorAravinda Prasad <aravinda@linux.vnet.ibm.com>
Tue, 16 Oct 2018 11:50:05 +0000 (17:20 +0530)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sun, 1 Dec 2019 08:13:43 +0000 (09:13 +0100)
commit27b1ef75f5794c743b5996ebcad807e0a71e2734
tree6cb0e086380b7150f003b82f9b07b1d0d86ee81d
parentd50730b4d6cefd1a5bcda0ab2ff2f7e90306d18f
powerpc/pseries: Export raw per-CPU VPA data via debugfs

[ Upstream commit c6c26fb55e8e4b3fc376be5611685990a17de27a ]

This patch exports the raw per-CPU VPA data via debugfs.
A per-CPU file is created which exports the VPA data of
that CPU to help debug some of the VPA related issues or
to analyze the per-CPU VPA related statistics.

v3: Removed offline CPU check.

v2: Included offline CPU check and other review comments.

Signed-off-by: Aravinda Prasad <aravinda@linux.vnet.ibm.com>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Signed-off-by: Sasha Levin <sashal@kernel.org>
arch/powerpc/platforms/pseries/lpar.c