test_klp_callbacks_mod.c 581 B

123456789101112131415161718192021222324
  1. // SPDX-License-Identifier: GPL-2.0
  2. // Copyright (C) 2018 Joe Lawrence <joe.lawrence@redhat.com>
  3. #define pr_fmt(fmt) KBUILD_MODNAME ": " fmt
  4. #include <linux/module.h>
  5. #include <linux/kernel.h>
  6. static int test_klp_callbacks_mod_init(void)
  7. {
  8. pr_info("%s\n", __func__);
  9. return 0;
  10. }
  11. static void test_klp_callbacks_mod_exit(void)
  12. {
  13. pr_info("%s\n", __func__);
  14. }
  15. module_init(test_klp_callbacks_mod_init);
  16. module_exit(test_klp_callbacks_mod_exit);
  17. MODULE_LICENSE("GPL");
  18. MODULE_AUTHOR("Joe Lawrence <joe.lawrence@redhat.com>");
  19. MODULE_DESCRIPTION("Livepatch test: target module");