3 * Test time spent in a LTTng instrumentation probe.
7 #include <linux/init.h>
8 #include <linux/module.h>
9 #include <linux/ltt-core.h>
11 static int ltt_test_init(void)
13 printk(KERN_ALERT
"test init\n");
17 printf(KERN_ALERT
"test end\n");
19 return -EAGAIN
; /* Fail will directly unload the module */
22 static void ltt_test_exit(void)
24 printk(KERN_ALERT
"test exit\n");
27 module_init(ltt_test_init
)
28 module_exit(ltt_test_exit
)
30 MODULE_LICENSE("GPL");
31 MODULE_AUTHOR("Mathieu Desnoyers");
32 MODULE_DESCRIPTION("Linux Trace Toolkit Test");
This page took 0.041949 seconds and 5 git commands to generate.