]> pilppa.com Git - linux-2.6-omap-h63xx.git/commitdiff
x86: Add a arch directory for x86 under debugfs
authorvenkatesh.pallipadi@intel.com <venkatesh.pallipadi@intel.com>
Fri, 18 Jul 2008 23:08:13 +0000 (16:08 -0700)
committerH. Peter Anvin <hpa@zytor.com>
Sat, 19 Jul 2008 00:22:04 +0000 (17:22 -0700)
Add a directory for x86 arch under debugfs. Can be used to accumulate all
x86 specific debugfs files.

Signed-off-by: Venkatesh Pallipadi <venkatesh.pallipadi@intel.com>
Signed-off-by: H. Peter Anvin <hpa@zytor.com>
arch/x86/kernel/kdebugfs.c
include/linux/debugfs.h

index c03205991718b30da8adfed31d915f7f325b2aa0..f2d43bc7551488a61390c27cd429a9721fefbc26 100644 (file)
 #include <linux/init.h>
 #include <linux/io.h>
 #include <linux/mm.h>
+#include <linux/module.h>
 
 #include <asm/setup.h>
 
+struct dentry *arch_debugfs_dir;
+EXPORT_SYMBOL(arch_debugfs_dir);
+
 #ifdef CONFIG_DEBUG_BOOT_PARAMS
 struct setup_data_node {
        u64 paddr;
@@ -209,6 +213,10 @@ static int __init arch_kdebugfs_init(void)
 {
        int error = 0;
 
+       arch_debugfs_dir = debugfs_create_dir("x86", NULL);
+       if (!arch_debugfs_dir)
+               return -ENOMEM;
+
 #ifdef CONFIG_DEBUG_BOOT_PARAMS
        error = boot_params_kdebugfs_init();
 #endif
index 7266124361b44f24259db727c7dc23d0694fb8de..32755cdf68db6512daeea31a16e18048167b7212 100644 (file)
@@ -26,6 +26,8 @@ struct debugfs_blob_wrapper {
        unsigned long size;
 };
 
+extern struct dentry *arch_debugfs_dir;
+
 #if defined(CONFIG_DEBUG_FS)
 
 /* declared over in file.c */