linux/samples/trace_printk/trace-printk.c

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

/* Must not be static to force gcc to consider these non constant */
char *trace_printk_test_global_str =;

char *trace_printk_test_global_str_irq =;

char *trace_printk_test_global_str_fmt =;

static struct irq_work irqwork;

static void trace_printk_irq_work(struct irq_work *work)
{}

static int __init trace_printk_init(void)
{}

static void __exit trace_printk_exit(void)
{}

module_init(trace_printk_init);
module_exit(trace_printk_exit);

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