blob: 13da87918b4f3288d1e437fa0c97390ec6a6810c [file] [log] [blame]
Greg Kroah-Hartmanb2441312017-11-01 15:07:57 +01001// SPDX-License-Identifier: GPL-2.0
Jeremy Fitzhardinge994025c2008-08-20 17:02:19 -07002#include <linux/init.h>
3#include <linux/debugfs.h>
Tejun Heo5a0e3ad2010-03-24 17:04:11 +09004#include <linux/slab.h>
Jeremy Fitzhardinge994025c2008-08-20 17:02:19 -07005
6#include "debugfs.h"
7
8static struct dentry *d_xen_debug;
9
10struct 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