Back to home page

OSCL-LXR

 
 

    


0001 // SPDX-License-Identifier: GPL-2.0
0002 /*
0003  * Intel(R) Trace Hub driver debugging
0004  *
0005  * Copyright (C) 2014-2015 Intel Corporation.
0006  */
0007 
0008 #include <linux/types.h>
0009 #include <linux/device.h>
0010 #include <linux/debugfs.h>
0011 
0012 #include "intel_th.h"
0013 #include "debug.h"
0014 
0015 struct dentry *intel_th_dbg;
0016 
0017 void intel_th_debug_init(void)
0018 {
0019     intel_th_dbg = debugfs_create_dir("intel_th", NULL);
0020     if (IS_ERR(intel_th_dbg))
0021         intel_th_dbg = NULL;
0022 }
0023 
0024 void intel_th_debug_done(void)
0025 {
0026     debugfs_remove(intel_th_dbg);
0027     intel_th_dbg = NULL;
0028 }