| 1 | |
| 2 | #include <linux/kernel.h>
|
| 3 | #include <linux/module.h>
|
| 4 | #include <linux/init.h>
|
| 5 | #include <linux/rv.h>
|
| 6 |
|
| 7 | #define MODULE_NAME "rtapp"
|
| 8 |
|
| 9 | #include "rtapp.h"
|
| 10 |
|
| 11 | struct rv_monitor rv_rtapp = {
|
| 12 | .name = "rtapp",
|
| 13 | .description = "Collection of monitors for detecting problems with real-time applications",
|
| 14 | };
|
| 15 |
|
| 16 | static int __init register_rtapp(void)
|
| 17 | {
|
| 18 | return rv_register_monitor(&rv_rtapp, NULL);
|
| 19 | }
|
| 20 |
|
| 21 | static void __exit unregister_rtapp(void)
|
| 22 | {
|
| 23 | rv_unregister_monitor(&rv_rtapp);
|
| 24 | }
|
| 25 |
|
| 26 | module_init(register_rtapp);
|
| 27 | module_exit(unregister_rtapp);
|
| 28 |
|
| 29 | MODULE_LICENSE("GPL");
|
| 30 | MODULE_AUTHOR("Nam Cao <[email protected]>");
|
| 31 | MODULE_DESCRIPTION("Collection of monitors for detecting problems with real-time applications");
|