aboutsummaryrefslogtreecommitdiffstats
path: root/lib/kunit/debugfs.h
blob: dcc7d755610774cadcf57870f8125ce42425253e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
/* SPDX-License-Identifier: GPL-2.0 */
/*
 * Copyright (C) 2020, Oracle and/or its affiliates.
 */

#ifndef _KUNIT_DEBUGFS_H
#define _KUNIT_DEBUGFS_H

#include <kunit/test.h>

#ifdef CONFIG_KUNIT_DEBUGFS

void kunit_debugfs_create_suite(struct kunit_suite *suite);
void kunit_debugfs_destroy_suite(struct kunit_suite *suite);
void kunit_debugfs_init(void);
void kunit_debugfs_cleanup(void);

#else

static inline void kunit_debugfs_create_suite(struct kunit_suite *suite) { }

static inline void kunit_debugfs_destroy_suite(struct kunit_suite *suite) { }

static inline void kunit_debugfs_init(void) { }

static inline void kunit_debugfs_cleanup(void) { }

#endif /* CONFIG_KUNIT_DEBUGFS */

#endif /* _KUNIT_DEBUGFS_H */