linux/drivers/hv/hv_debugfs.c

// SPDX-License-Identifier: GPL-2.0-only
/*
 * Authors:
 *   Branden Bonaby <[email protected]>
 */

#include <linux/hyperv.h>
#include <linux/debugfs.h>
#include <linux/delay.h>
#include <linux/err.h>

#include "hyperv_vmbus.h"

static struct dentry *hv_debug_root;

static int hv_debugfs_delay_get(void *data, u64 *val)
{}

static int hv_debugfs_delay_set(void *data, u64 val)
{}

DEFINE_DEBUGFS_ATTRIBUTE();

static int hv_debugfs_state_get(void *data, u64 *val)
{}

static int hv_debugfs_state_set(void *data, u64 val)
{}

DEFINE_DEBUGFS_ATTRIBUTE();

/* Setup delay files to store test values */
static int hv_debug_delay_files(struct hv_device *dev, struct dentry *root)
{}

/* Setup test state value for vmbus device */
static int hv_debug_set_test_state(struct hv_device *dev, struct dentry *root)
{}

/* Bind hv device to a dentry for debugfs */
static void hv_debug_set_dir_dentry(struct hv_device *dev, struct dentry *root)
{}

/* Create all test dentry's and names for fuzz testing */
int hv_debug_add_dev_dir(struct hv_device *dev)
{}

/* Remove dentry associated with released hv device */
void hv_debug_rm_dev_dir(struct hv_device *dev)
{}

/* Remove all dentrys associated with vmbus testing */
void hv_debug_rm_all_dir(void)
{}

/* Delay buffer/message reads on a vmbus channel */
void hv_debug_delay_test(struct vmbus_channel *channel, enum delay delay_type)
{}

/* Initialize top dentry for vmbus testing */
int hv_debug_init(void)
{}