2 * Copyright (C) 2012 Spreadtrum Communications Inc.
4 * This software is licensed under the terms of the GNU General Public
5 * License version 2, as published by the Free Software Foundation, and
6 * may be copied, distributed, and modified under those terms.
8 * This program is distributed in the hope that it will be useful,
9 * but WITHOUT ANY WARRANTY; without even the implied warranty of
10 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
11 * GNU General Public License for more details.
14 #include <linux/module.h>
15 #include <linux/kernel.h>
16 #include <linux/init.h>
17 #include <linux/debugfs.h>
18 #include <linux/seq_file.h>
19 #include <asm/uaccess.h>
21 #include <linux/sipc.h>
23 #if defined(CONFIG_DEBUG_FS)
25 extern int sbuf_init_debugfs( void *root );
26 extern int smsg_init_debugfs( void *root );
27 extern int sblock_init_debugfs( void *root );
28 extern int smem_init_debugfs( void *root );
30 static int __init sipc_init_debugfs( void)
32 struct dentry *root = debugfs_create_dir("sipc", NULL);
36 smsg_init_debugfs(root);
37 sbuf_init_debugfs(root);
38 sblock_init_debugfs(root);
39 smem_init_debugfs(root);
43 __initcall(sipc_init_debugfs);
45 #endif /* CONFIG_DEBUG_FS */