#include <linux/notifier.h>
#include <linux/cpu.h>
#include <linux/module.h>
-
+#include <master/swap_initializer.h>
#include "swap_sampler_module.h"
#include "swap_sampler_errors.h"
#include "kernel_operations.h"
}
EXPORT_SYMBOL_GPL(swap_sampler_stop);
-static int __init sampler_init(void)
+static int sampler_init(void)
{
int retval;
print_msg("Sample ininitialization success\n");
- return E_SS_SUCCESS;
+ return 0;
}
-static void __exit sampler_exit(void)
+static void sampler_uninit(void)
{
if (sampler_run)
do_swap_sampler_stop();
print_msg("Sampler uninitialized\n");
}
-module_init(sampler_init);
-module_exit(sampler_exit);
+SWAP_LIGHT_INIT_MODULE_CORE(sampler_init, sampler_uninit);
MODULE_LICENSE("GPL");
MODULE_DESCRIPTION("SWAP sampling module");