first test
[lttv.git] / tests / kernel / module-template.c
CommitLineData
884367fd 1/* test-time-probe.c
2 *
3 * Test time spent in a LTTng instrumentation probe.
4 */
5
6
7#include <linux/init.h>
8#include <linux/module.h>
9#include <linux/ltt-core.h>
10
11static int ltt_test_init(void)
12{
13 printk(KERN_ALERT "test init\n");
14
97dcdc7c 15
16
17 printf(KERN_ALERT "test end\n");
18
19 return -EAGAIN; /* Fail will directly unload the module */
884367fd 20}
21
22static void ltt_test_exit(void)
23{
24 printk(KERN_ALERT "test exit\n");
25}
26
27module_init(ltt_test_init)
28module_exit(ltt_test_exit)
29
30MODULE_LICENSE("GPL");
31MODULE_AUTHOR("Mathieu Desnoyers");
32MODULE_DESCRIPTION("Linux Trace Toolkit Test");
33
This page took 0.023462 seconds and 4 git commands to generate.