linux/samples/trace_events/trace-events-sample.c

// SPDX-License-Identifier: GPL-2.0-only
#include <linux/module.h>
#include <linux/kthread.h>

/*
 * Any file that uses trace points, must include the header.
 * But only one file, must include the header by defining
 * CREATE_TRACE_POINTS first.  This will make the C code that
 * creates the handles for the trace points.
 */
#define CREATE_TRACE_POINTS
#include "trace-events-sample.h"

static const char *random_strings[] =;

static void do_simple_thread_func(int cnt, const char *fmt, ...)
{}

static void simple_thread_func(int cnt)
{}

static int simple_thread(void *arg)
{}

static struct task_struct *simple_tsk;
static struct task_struct *simple_tsk_fn;

static void simple_thread_func_fn(int cnt)
{}

static int simple_thread_fn(void *arg)
{}

static DEFINE_MUTEX(thread_mutex);
static int simple_thread_cnt;

int foo_bar_reg(void)
{}

void foo_bar_unreg(void)
{}

static int __init trace_event_init(void)
{}

static void __exit trace_event_exit(void)
{}

module_init(trace_event_init);
module_exit(trace_event_exit);

MODULE_AUTHOR();
MODULE_DESCRIPTION();
MODULE_LICENSE();