Staging
v0.8.1
https://github.com/torvalds/linux
Raw File
Tip revision: 706a741595047797872e669b3101429ab8d378ef authored by Linus Torvalds on 20 August 2023, 13:02:52 UTC
Linux 6.5-rc7
Tip revision: 706a741
debugfs.h
/* 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 */
back to top