systemtap/tests/Sanity/kernel-modules/module.c
Martin Cermak 107122a4e8 CI tests: Add more tests
- Separate the "stap-prep" phase out to a separate phase
 - Add tests/Sanity/byteman-java-methods-probing
 - Add tests/Sanity/kernel-modules
 - Add tests/Sanity/userspace-probes
 - Add tests/Sanity/stap-server-basic-sanity
 - Add tests/Regression/small-tests
2021-06-09 16:28:54 +02:00

21 lines
371 B
C

#include <linux/module.h> /* Needed by all modules */
#include <linux/kernel.h> /* Needed for KERN_INFO */
int init_module(void)
{
printk(KERN_INFO "Hello world 1.\n");
return 0;
}
int some_method(void){
printk(KERN_INFO "Some method called\n");
return 0;
}
void cleanup_module(void)
{
printk(KERN_INFO "Goodbye world 1.\n");
}
MODULE_LICENSE("GPL");