summaryrefslogtreecommitdiff
path: root/source/module
diff options
context:
space:
mode:
Diffstat (limited to 'source/module')
-rw-r--r--source/module/monitor_kernel.c4
-rw-r--r--source/module/monitor_kernel.h2
-rw-r--r--source/module/monitor_kernel_lib.c2
-rw-r--r--source/module/monitor_timer.h1
4 files changed, 5 insertions, 4 deletions
diff --git a/source/module/monitor_kernel.c b/source/module/monitor_kernel.c
index f12d131..a7c1383 100644
--- a/source/module/monitor_kernel.c
+++ b/source/module/monitor_kernel.c
@@ -76,13 +76,13 @@ static long device_ioctl(struct file *file, unsigned int ioctl_num,
printk(KERN_INFO "variable_monitor IOCTL_DUMP_LOG\n");
ret = copy_from_user(&dump_param, (ioctl_dump_param *)ioctl_param,
sizeof(ioctl_dump_param));
- printk(KERN_INFO "dump_param: %p %d %p\n", dump_param.user_ptr_len,
+ printk(KERN_INFO "dump_param: %p %lx %p\n", dump_param.user_ptr_len,
dump_param.user_buf_len, dump_param.user_buf);
if (!ret) {
ret = copy_to_user_variant_buffer(
&load_monitor_variant_buffer, dump_param.user_ptr_len,
dump_param.user_buf, dump_param.user_buf_len);
- printk(KERN_INFO "ret %d, %d\n", ret, dump_param.user_buf_len);
+ printk(KERN_INFO "ret %d, %lx\n", ret, dump_param.user_buf_len);
}
// printk(KERN_INFO "copy_to_user_variant_buffer \n");
break;
diff --git a/source/module/monitor_kernel.h b/source/module/monitor_kernel.h
index 7a2b56a..a7c6aa5 100644
--- a/source/module/monitor_kernel.h
+++ b/source/module/monitor_kernel.h
@@ -19,7 +19,7 @@ extern int dump_reset_sec;
extern mm_tree mm_tree_struct;
extern struct diag_variant_buffer load_monitor_variant_buffer; // global buffer
-#define LOAD_MONITOR_BUFFER_SIZE 256 * 1024 * 1024 // 10MB
+#define VARIABLE_MONITOR_BUFFER_SIZE 256 * 1024 * 1024 // 256MB
int monitor_init(void); // monitor init
void monitor_exit(void); // monitor exit
diff --git a/source/module/monitor_kernel_lib.c b/source/module/monitor_kernel_lib.c
index da46316..be8b943 100644
--- a/source/module/monitor_kernel_lib.c
+++ b/source/module/monitor_kernel_lib.c
@@ -270,7 +270,7 @@ int monitor_init(void) {
ret = init_orig_fun(); // init orig_X
if (ret)
return ret;
- ret = init_buffer(LOAD_MONITOR_BUFFER_SIZE); // 256M
+ ret = init_buffer(VARIABLE_MONITOR_BUFFER_SIZE); // 256M
if (ret)
return -1;
return 0;
diff --git a/source/module/monitor_timer.h b/source/module/monitor_timer.h
index 25dc68d..4109038 100644
--- a/source/module/monitor_timer.h
+++ b/source/module/monitor_timer.h
@@ -66,5 +66,6 @@ void start_all_hrTimer(void);
void cancel_all_hrTimer(void);
// for work
+void init_work_all_hrTimer(void);
void cancel_all_work(void);
void cancel_destory_all_work(void); \ No newline at end of file