| xj | b04a402 | 2021-11-25 15:01:52 +0800 | [diff] [blame] | 1 | // SPDX-License-Identifier: GPL-2.0 |
| 2 | #include <linux/init.h> | ||||
| 3 | #include <linux/debugfs.h> | ||||
| 4 | #include <linux/slab.h> | ||||
| 5 | |||||
| 6 | #include "debugfs.h" | ||||
| 7 | |||||
| 8 | static struct dentry *d_xen_debug; | ||||
| 9 | |||||
| 10 | struct dentry * __init xen_init_debugfs(void) | ||||
| 11 | { | ||||
| 12 | if (!d_xen_debug) { | ||||
| 13 | d_xen_debug = debugfs_create_dir("xen", NULL); | ||||
| 14 | |||||
| 15 | if (!d_xen_debug) | ||||
| 16 | pr_warning("Could not create 'xen' debugfs directory\n"); | ||||
| 17 | } | ||||
| 18 | |||||
| 19 | return d_xen_debug; | ||||
| 20 | } | ||||
| 21 | |||||