summaryrefslogtreecommitdiffstats
path: root/arch/powerpc/kernel/eeh.c
diff options
context:
space:
mode:
authorOliver O'Halloran2019-02-15 01:48:13 +0100
committerMichael Ellerman2019-02-21 14:10:14 +0100
commit5ca85ae6318df34874999e3fd1760a88208e2a8e (patch)
tree52b719c72f36414f01c51da0765d025d19f58537 /arch/powerpc/kernel/eeh.c
parentpowerpc/eeh_cache: Add pr_debug() prints for insert/remove (diff)
downloadkernel-qcow2-linux-5ca85ae6318df34874999e3fd1760a88208e2a8e.tar.gz
kernel-qcow2-linux-5ca85ae6318df34874999e3fd1760a88208e2a8e.tar.xz
kernel-qcow2-linux-5ca85ae6318df34874999e3fd1760a88208e2a8e.zip
powerpc/eeh_cache: Add a way to dump the EEH address cache
Adds a debugfs file that can be read to view the contents of the EEH address cache. This is pretty similar to the existing eeh_addr_cache_print() function, but that function is intended to debug issues inside of the kernel since it's #ifdef`ed out by default, and writes into the kernel log. Signed-off-by: Oliver O'Halloran <oohall@gmail.com> Reviewed-by: Sam Bobroff <sbobroff@linux.ibm.com> Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Diffstat (limited to 'arch/powerpc/kernel/eeh.c')
-rw-r--r--arch/powerpc/kernel/eeh.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/arch/powerpc/kernel/eeh.c b/arch/powerpc/kernel/eeh.c
index 15e2734b4854..8d36c50e906f 100644
--- a/arch/powerpc/kernel/eeh.c
+++ b/arch/powerpc/kernel/eeh.c
@@ -1843,6 +1843,7 @@ static int __init eeh_init_proc(void)
&eeh_enable_dbgfs_ops);
debugfs_create_u32("eeh_max_freezes", 0600,
powerpc_debugfs_root, &eeh_max_freezes);
+ eeh_cache_debugfs_init();
#endif
}