#include <linux/wwan.h>
#include "iosm_ipc_trace.h"
#define IOSM_TRC_SUB_BUFF_SIZE …
#define IOSM_TRC_N_SUB_BUFF …
#define IOSM_TRC_FILE_PERM …
#define IOSM_TRC_DEBUGFS_TRACE …
#define IOSM_TRC_DEBUGFS_TRACE_CTRL …
void ipc_trace_port_rx(struct iosm_imem *ipc_imem, struct sk_buff *skb)
{ … }
static struct dentry *
ipc_trace_create_buf_file_handler(const char *filename,
struct dentry *parent,
umode_t mode,
struct rchan_buf *buf,
int *is_global)
{ … }
static int ipc_trace_remove_buf_file_handler(struct dentry *dentry)
{ … }
static int ipc_trace_subbuf_start_handler(struct rchan_buf *buf, void *subbuf,
void *prev_subbuf,
size_t prev_padding)
{ … }
static struct rchan_callbacks relay_callbacks = …;
static ssize_t ipc_trace_ctrl_file_read(struct file *filp, char __user *buffer,
size_t count, loff_t *ppos)
{ … }
static ssize_t ipc_trace_ctrl_file_write(struct file *filp,
const char __user *buffer,
size_t count, loff_t *ppos)
{ … }
static const struct file_operations ipc_trace_fops = …;
struct iosm_trace *ipc_trace_init(struct iosm_imem *ipc_imem)
{ … }
void ipc_trace_deinit(struct iosm_trace *ipc_trace)
{ … }