debugfs.h 722 B

123456789101112131415161718192021222324252627282930
  1. /* SPDX-License-Identifier: GPL-2.0 */
  2. /*
  3. * Copyright (C) 2020, Oracle and/or its affiliates.
  4. */
  5. #ifndef _KUNIT_DEBUGFS_H
  6. #define _KUNIT_DEBUGFS_H
  7. #include <kunit/test.h>
  8. #ifdef CONFIG_KUNIT_DEBUGFS
  9. void kunit_debugfs_create_suite(struct kunit_suite *suite);
  10. void kunit_debugfs_destroy_suite(struct kunit_suite *suite);
  11. void kunit_debugfs_init(void);
  12. void kunit_debugfs_cleanup(void);
  13. #else
  14. static inline void kunit_debugfs_create_suite(struct kunit_suite *suite) { }
  15. static inline void kunit_debugfs_destroy_suite(struct kunit_suite *suite) { }
  16. static inline void kunit_debugfs_init(void) { }
  17. static inline void kunit_debugfs_cleanup(void) { }
  18. #endif /* CONFIG_KUNIT_DEBUGFS */
  19. #endif /* _KUNIT_DEBUGFS_H */