Andrew Scull | b4b6d4a | 2019-01-02 15:54:55 +0000 | [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 | { |
David Brazdil | 0f672f6 | 2019-12-10 10:32:29 +0000 | [diff] [blame^] | 12 | if (!d_xen_debug) |
Andrew Scull | b4b6d4a | 2019-01-02 15:54:55 +0000 | [diff] [blame] | 13 | d_xen_debug = debugfs_create_dir("xen", NULL); |
Andrew Scull | b4b6d4a | 2019-01-02 15:54:55 +0000 | [diff] [blame] | 14 | return d_xen_debug; |
| 15 | } |
| 16 | |