0001
0002
0003
0004 #define pr_fmt(fmt) KBUILD_MODNAME ": " fmt
0005
0006 #include <linux/module.h>
0007 #include <linux/kernel.h>
0008
0009 static int test_klp_callbacks_mod_init(void)
0010 {
0011 pr_info("%s\n", __func__);
0012 return 0;
0013 }
0014
0015 static void test_klp_callbacks_mod_exit(void)
0016 {
0017 pr_info("%s\n", __func__);
0018 }
0019
0020 module_init(test_klp_callbacks_mod_init);
0021 module_exit(test_klp_callbacks_mod_exit);
0022 MODULE_LICENSE("GPL");
0023 MODULE_AUTHOR("Joe Lawrence <joe.lawrence@redhat.com>");
0024 MODULE_DESCRIPTION("Livepatch test: target module");