#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 …
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 = …;
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)
{ … }
void vchiq_debugfs_deinit(void)
{ … }
#else
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