3 * Test printk effect on timer interrupt.
7 #include <linux/init.h>
8 #include <linux/module.h>
9 #include <linux/ltt-core.h>
11 #define NR_LOOPS 20000
13 static int ltt_test_init(void)
17 printk(KERN_ALERT
"test init\n");
19 for(i
=0; i
<NR_LOOPS
; i
++) {
20 printk(KERN_ALERT
"Flooding the console\n");
22 printk(KERN_ALERT
"test end\n");
24 return -EAGAIN
; /* Fail will directly unload the module */
27 static void ltt_test_exit(void)
29 printk(KERN_ALERT
"test exit\n");
32 module_init(ltt_test_init
)
33 module_exit(ltt_test_exit
)
35 MODULE_LICENSE("GPL");
36 MODULE_AUTHOR("Mathieu Desnoyers");
37 MODULE_DESCRIPTION("Linux Trace Toolkit Test");
This page took 0.029229 seconds and 4 git commands to generate.