Commit | Line | Data |
---|---|---|
40652b65 MD |
1 | /* |
2 | * probes/lttng-types.c | |
3 | * | |
4 | * Copyright 2010 (c) - Mathieu Desnoyers <mathieu.desnoyers@efficios.com> | |
5 | * | |
6 | * LTTng types. | |
7 | */ | |
8 | ||
9 | #include <linux/module.h> | |
10 | #include <linux/types.h> | |
b13f3ebe | 11 | #include "../wrapper/vmalloc.h" /* for wrapper_vmalloc_sync_all() */ |
c099397a | 12 | #include "../ltt-events.h" |
40652b65 | 13 | #include "lttng-types.h" |
c099397a | 14 | #include <linux/hrtimer.h> |
40652b65 MD |
15 | |
16 | #define STAGE_EXPORT_ENUMS | |
17 | #include "lttng-types.h" | |
18 | #include "lttng-type-list.h" | |
19 | #undef STAGE_EXPORT_ENUMS | |
20 | ||
c099397a | 21 | struct lttng_enum lttng_enums[] = { |
40652b65 MD |
22 | #define STAGE_EXPORT_TYPES |
23 | #include "lttng-types.h" | |
24 | #include "lttng-type-list.h" | |
25 | #undef STAGE_EXPORT_TYPES | |
26 | }; | |
27 | ||
40652b65 MD |
28 | static int lttng_types_init(void) |
29 | { | |
30 | int ret = 0; | |
31 | ||
6d2a620c | 32 | wrapper_vmalloc_sync_all(); |
c099397a | 33 | /* TODO */ |
40652b65 MD |
34 | return ret; |
35 | } | |
36 | ||
37 | module_init(lttng_types_init); | |
38 | ||
39 | static void lttng_types_exit(void) | |
40 | { | |
40652b65 MD |
41 | } |
42 | ||
43 | module_exit(lttng_types_exit); | |
44 | ||
45 | MODULE_LICENSE("GPL and additional rights"); | |
46 | MODULE_AUTHOR("Mathieu Desnoyers <mathieu.desnoyers@efficios.com>"); | |
47 | MODULE_DESCRIPTION("LTTng types"); |