#include <linux/module.h>
#include <linux/ctype.h>
#include <linux/mutex.h>
#include <linux/slab.h>
#include <linux/rculist.h>
#include "trace.h"
static int
trace_inject_entry(struct trace_event_file *file, void *rec, int len)
{ … }
static int
parse_field(char *str, struct trace_event_call *call,
struct ftrace_event_field **pf, u64 *pv)
{ … }
static int trace_get_entry_size(struct trace_event_call *call)
{ … }
static void *trace_alloc_entry(struct trace_event_call *call, int *size)
{ … }
#define INJECT_STRING …
static int parse_entry(char *str, struct trace_event_call *call, void **pentry)
{ … }
static ssize_t
event_inject_write(struct file *filp, const char __user *ubuf, size_t cnt,
loff_t *ppos)
{ … }
static ssize_t
event_inject_read(struct file *file, char __user *buf, size_t size,
loff_t *ppos)
{ … }
const struct file_operations event_inject_fops = …;