aboutsummaryrefslogtreecommitdiff
path: root/arch/s390/kernel/kdebugfs.c
diff options
context:
space:
mode:
authorHeiko Carstens2017-03-13 15:58:35 +0100
committerMartin Schwidefsky2017-03-22 08:29:15 +0100
commit050f99b1b85876a8456b76ebfee7d43746d37f6c (patch)
treed663bb7cbd2e87e50389bf4b2e17ececf572cae0 /arch/s390/kernel/kdebugfs.c
parente61a6134e7a547939a0b7056bcf6b12d75b6d355 (diff)
s390/debugfs: introduce top-level 's390' directory
Introduce a top-level 's390' directory which should be used when adding new s390 specific debug feature files and/or directories. This makes hopefully sure that the contents of the s390 directory will be a bit more structured. Right now we have a couple of top-level files where it is not easy to tell to which subsystem they belong to. Acked-by: Christian Borntraeger <borntraeger@de.ibm.com> Signed-off-by: Heiko Carstens <heiko.carstens@de.ibm.com> Signed-off-by: Martin Schwidefsky <schwidefsky@de.ibm.com>
Diffstat (limited to 'arch/s390/kernel/kdebugfs.c')
-rw-r--r--arch/s390/kernel/kdebugfs.c15
1 files changed, 15 insertions, 0 deletions
diff --git a/arch/s390/kernel/kdebugfs.c b/arch/s390/kernel/kdebugfs.c
new file mode 100644
index 000000000000..ee85e17dd79d
--- /dev/null
+++ b/arch/s390/kernel/kdebugfs.c
@@ -0,0 +1,15 @@
+#include <linux/debugfs.h>
+#include <linux/export.h>
+#include <linux/init.h>
+
+struct dentry *arch_debugfs_dir;
+EXPORT_SYMBOL(arch_debugfs_dir);
+
+static int __init arch_kdebugfs_init(void)
+{
+ arch_debugfs_dir = debugfs_create_dir("s390", NULL);
+ if (IS_ERR(arch_debugfs_dir))
+ arch_debugfs_dir = NULL;
+ return 0;
+}
+postcore_initcall(arch_kdebugfs_init);