debug.c 511 B

1234567891011121314151617181920212223242526272829
  1. // SPDX-License-Identifier: GPL-2.0
  2. /*
  3. * Intel(R) Trace Hub driver debugging
  4. *
  5. * Copyright (C) 2014-2015 Intel Corporation.
  6. */
  7. #include <linux/types.h>
  8. #include <linux/device.h>
  9. #include <linux/debugfs.h>
  10. #include "intel_th.h"
  11. #include "debug.h"
  12. struct dentry *intel_th_dbg;
  13. void intel_th_debug_init(void)
  14. {
  15. intel_th_dbg = debugfs_create_dir("intel_th", NULL);
  16. if (IS_ERR(intel_th_dbg))
  17. intel_th_dbg = NULL;
  18. }
  19. void intel_th_debug_done(void)
  20. {
  21. debugfs_remove(intel_th_dbg);
  22. intel_th_dbg = NULL;
  23. }