Greg Kroah-Hartman | b244131 | 2017-11-01 15:07:57 +0100 | [diff] [blame] | 1 | // SPDX-License-Identifier: GPL-2.0 |
Jeremy Fitzhardinge | 994025c | 2008-08-20 17:02:19 -0700 | [diff] [blame] | 2 | #include <linux/init.h> |
| 3 | #include <linux/debugfs.h> |
Tejun Heo | 5a0e3ad | 2010-03-24 17:04:11 +0900 | [diff] [blame] | 4 | #include <linux/slab.h> |
Jeremy Fitzhardinge | 994025c | 2008-08-20 17:02:19 -0700 | [diff] [blame] | 5 | |
| 6 | #include "debugfs.h" |
| 7 | |
| 8 | static struct dentry *d_xen_debug; |
| 9 | |
| 10 | struct dentry * __init xen_init_debugfs(void) |
| 11 | { |
Greg Kroah-Hartman | ad09137 | 2019-01-22 15:35:42 +0100 | [diff] [blame] | 12 | if (!d_xen_debug) |
Jeremy Fitzhardinge | 994025c | 2008-08-20 17:02:19 -0700 | [diff] [blame] | 13 | d_xen_debug = debugfs_create_dir("xen", NULL); |
Jeremy Fitzhardinge | 994025c | 2008-08-20 17:02:19 -0700 | [diff] [blame] | 14 | return d_xen_debug; |
| 15 | } |
| 16 | |