linux/drivers/staging/vc04_services/interface/vchiq_arm/vchiq_debugfs.c

// SPDX-License-Identifier: GPL-2.0 OR BSD-3-Clause
/*
 * Copyright (c) 2014 Raspberry Pi (Trading) Ltd. All rights reserved.
 * Copyright (c) 2010-2012 Broadcom. All rights reserved.
 */

#include <linux/debugfs.h>
#include "vchiq_core.h"
#include "vchiq_arm.h"
#include "vchiq_debugfs.h"

#ifdef CONFIG_DEBUG_FS

#define DEBUGFS_WRITE_BUF_SIZE

/* Global 'vchiq' debugfs and clients entry used by all instances */
static struct dentry *vchiq_dbg_dir;
static struct dentry *vchiq_dbg_clients;

static int debugfs_usecount_show(struct seq_file *f, void *offset)
{}
DEFINE_SHOW_ATTRIBUTE();

static int debugfs_trace_show(struct seq_file *f, void *offset)
{}

static int vchiq_dump_show(struct seq_file *f, void *offset)
{}
DEFINE_SHOW_ATTRIBUTE();

static int debugfs_trace_open(struct inode *inode, struct file *file)
{}

static ssize_t debugfs_trace_write(struct file *file,
	const char __user *buffer,
	size_t count, loff_t *ppos)
{}

static const struct file_operations debugfs_trace_fops =;

/* add an instance (process) to the debugfs entries */
void vchiq_debugfs_add_instance(struct vchiq_instance *instance)
{}

void vchiq_debugfs_remove_instance(struct vchiq_instance *instance)
{}

void vchiq_debugfs_init(struct vchiq_state *state)
{}

/* remove all the debugfs entries */
void vchiq_debugfs_deinit(void)
{}

#else /* CONFIG_DEBUG_FS */

void vchiq_debugfs_init(struct vchiq_state *state)
{
}

void vchiq_debugfs_deinit(void)
{
}

void vchiq_debugfs_add_instance(struct vchiq_instance *instance)
{
}

void vchiq_debugfs_remove_instance(struct vchiq_instance *instance)
{
}

#endif /* CONFIG_DEBUG_FS */