#include <linux/debugfs.h>
#include <linux/module.h>
#include <kunit/test.h>
#include <kunit/test-bug.h>
#include "string-stream.h"
#include "debugfs.h"
#define KUNIT_DEBUGFS_ROOT …
#define KUNIT_DEBUGFS_RESULTS …
#define KUNIT_DEBUGFS_RUN …
static struct dentry *debugfs_rootdir;
void kunit_debugfs_cleanup(void)
{ … }
void kunit_debugfs_init(void)
{ … }
static void debugfs_print_result(struct seq_file *seq, struct string_stream *log)
{ … }
static int debugfs_print_results(struct seq_file *seq, void *v)
{ … }
static int debugfs_release(struct inode *inode, struct file *file)
{ … }
static int debugfs_results_open(struct inode *inode, struct file *file)
{ … }
static int debugfs_print_run(struct seq_file *seq, void *v)
{ … }
static int debugfs_run_open(struct inode *inode, struct file *file)
{ … }
static ssize_t debugfs_run(struct file *file,
const char __user *buf, size_t count, loff_t *ppos)
{ … }
static const struct file_operations debugfs_results_fops = …;
static const struct file_operations debugfs_run_fops = …;
void kunit_debugfs_create_suite(struct kunit_suite *suite)
{ … }
void kunit_debugfs_destroy_suite(struct kunit_suite *suite)
{ … }