#include <linux/module.h>
#include <linux/stm.h>
#include <linux/trace.h>
#define STM_FTRACE_NR_CHANNELS …
#define STM_FTRACE_CHAN …
static int stm_ftrace_link(struct stm_source_data *data);
static void stm_ftrace_unlink(struct stm_source_data *data);
static struct stm_ftrace { … } stm_ftrace = …;
static void notrace
stm_ftrace_write(struct trace_export *export, const void *buf, unsigned int len)
{ … }
static int stm_ftrace_link(struct stm_source_data *data)
{ … }
static void stm_ftrace_unlink(struct stm_source_data *data)
{ … }
static int __init stm_ftrace_init(void)
{ … }
static void __exit stm_ftrace_exit(void)
{ … }
module_init(…) …;
module_exit(stm_ftrace_exit);
MODULE_LICENSE(…) …;
MODULE_DESCRIPTION(…) …;
MODULE_AUTHOR(…) …;