| 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> |
| 11 | #include "../wrapper/vmalloc.h" /* for wrapper_vmalloc_sync_all() */ |
| 12 | #include "../ltt-events.h" |
| 13 | #include "lttng-types.h" |
| 14 | #include <linux/hrtimer.h> |
| 15 | |
| 16 | #define STAGE_EXPORT_ENUMS |
| 17 | #include "lttng-types.h" |
| 18 | #include "lttng-type-list.h" |
| 19 | #undef STAGE_EXPORT_ENUMS |
| 20 | |
| 21 | struct lttng_enum lttng_enums[] = { |
| 22 | #define STAGE_EXPORT_TYPES |
| 23 | #include "lttng-types.h" |
| 24 | #include "lttng-type-list.h" |
| 25 | #undef STAGE_EXPORT_TYPES |
| 26 | }; |
| 27 | |
| 28 | static int lttng_types_init(void) |
| 29 | { |
| 30 | int ret = 0; |
| 31 | |
| 32 | wrapper_vmalloc_sync_all(); |
| 33 | /* TODO */ |
| 34 | return ret; |
| 35 | } |
| 36 | |
| 37 | module_init(lttng_types_init); |
| 38 | |
| 39 | static void lttng_types_exit(void) |
| 40 | { |
| 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"); |