Back to home page

OSCL-LXR

 
 

    


0001 /* SPDX-License-Identifier: GPL-2.0 */
0002 /*
0003  * Copyright (C) 2020, Oracle and/or its affiliates.
0004  */
0005 
0006 #ifndef _KUNIT_DEBUGFS_H
0007 #define _KUNIT_DEBUGFS_H
0008 
0009 #include <kunit/test.h>
0010 
0011 #ifdef CONFIG_KUNIT_DEBUGFS
0012 
0013 void kunit_debugfs_create_suite(struct kunit_suite *suite);
0014 void kunit_debugfs_destroy_suite(struct kunit_suite *suite);
0015 void kunit_debugfs_init(void);
0016 void kunit_debugfs_cleanup(void);
0017 
0018 #else
0019 
0020 static inline void kunit_debugfs_create_suite(struct kunit_suite *suite) { }
0021 
0022 static inline void kunit_debugfs_destroy_suite(struct kunit_suite *suite) { }
0023 
0024 static inline void kunit_debugfs_init(void) { }
0025 
0026 static inline void kunit_debugfs_cleanup(void) { }
0027 
0028 #endif /* CONFIG_KUNIT_DEBUGFS */
0029 
0030 #endif /* _KUNIT_DEBUGFS_H */