46 lines
738 B
C
46 lines
738 B
C
// SPDX-License-Identifier: GPL-2.0
|
|
/*
|
|
* Copyright (C) 2020 MediaTek Inc.
|
|
*/
|
|
|
|
#include <linux/module.h>
|
|
|
|
#include "rs_base.h"
|
|
#include "rs_trace.h"
|
|
#include "rs_usage.h"
|
|
#include "rs_state.h"
|
|
#include "rs_index.h"
|
|
|
|
#define RS_SYSFS_DIR_NAME "resym"
|
|
|
|
struct kobject *rs_kobj;
|
|
|
|
static int __init rs_init(void)
|
|
{
|
|
rs_kobj = kobject_create_and_add(RS_SYSFS_DIR_NAME, kernel_kobj);
|
|
|
|
perf_rs_index_init();
|
|
rs_trace_init();
|
|
rs_usage_init();
|
|
rs_state_init();
|
|
|
|
return 0;
|
|
}
|
|
|
|
static void __exit rs_exit(void)
|
|
{
|
|
rs_usage_exit();
|
|
rs_state_exit();
|
|
|
|
kobject_put(rs_kobj);
|
|
rs_kobj = NULL;
|
|
}
|
|
|
|
module_init(rs_init);
|
|
module_exit(rs_exit);
|
|
|
|
MODULE_LICENSE("GPL");
|
|
MODULE_DESCRIPTION("MediaTek Resource Symphony");
|
|
MODULE_AUTHOR("MediaTek Inc.");
|
|
|