summaryrefslogtreecommitdiff
path: root/source/module
diff options
context:
space:
mode:
authorzy <[email protected]>2023-11-26 22:52:56 -0500
committerzy <[email protected]>2023-11-26 22:52:56 -0500
commit70c24ad73ad8fbf83d37d56ebf3f6f1b1fc92105 (patch)
tree2bf16a892c0513269e300bf0365d1f872f0bd3f5 /source/module
parent998752bccdd2763416ffa94e8e21018232ca4fc3 (diff)
rm some printk
Diffstat (limited to 'source/module')
-rw-r--r--source/module/monitor_kernel.c10
-rw-r--r--source/module/monitor_trace.c4
2 files changed, 6 insertions, 8 deletions
diff --git a/source/module/monitor_kernel.c b/source/module/monitor_kernel.c
index fd83158..d3447d3 100644
--- a/source/module/monitor_kernel.c
+++ b/source/module/monitor_kernel.c
@@ -51,8 +51,7 @@ static long device_ioctl(struct file *file, unsigned int ioctl_num,
int ret = 0;
watch_arg warg;
ioctl_dump_param dump_param;
- ioctl_pid wpid;
-
+ // ioctl_pid wpid;
printk(KERN_INFO "variable_monitor fun: %s with ioctl_num %d\n", __FUNCTION__,
ioctl_num);
@@ -72,19 +71,18 @@ static long device_ioctl(struct file *file, unsigned int ioctl_num,
start_watch_variable(warg);
break;
case 1:
- printk(KERN_INFO "variable_monitor 1\n");
+ printk(KERN_INFO "variable_monitor ioctl_num 1\n");
ret = copy_from_user(&dump_param, (ioctl_dump_param *)ioctl_param,
sizeof(ioctl_dump_param));
- printk(KERN_INFO "variable_monitor 2\n");
printk(KERN_INFO "dump_param: %p %lu %p\n", dump_param.user_ptr_len, dump_param.user_buf_len, dump_param.user_buf);
if (!ret) {
- printk(KERN_INFO "ret\n");
+ // printk(KERN_INFO "ret\n");
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, %lu\n", ret, dump_param.user_buf_len);
}
- printk(KERN_INFO "copy_to_user \n");
+ printk(KERN_INFO "copy_to_user_variant_buffer \n");
break;
// case 0:
// printk(KERN_INFO "variable_monitor test 2\n");
diff --git a/source/module/monitor_trace.c b/source/module/monitor_trace.c
index b5cebe0..5a68cb5 100644
--- a/source/module/monitor_trace.c
+++ b/source/module/monitor_trace.c
@@ -277,7 +277,7 @@ static int diagnose_task_raw_stack_remote(struct task_struct *tsk, void *to,
ret = orig_access_remote_vm(mm, (unsigned long)from, to, n, 0);
mmput(mm);
- printk("task_raw_stack_remote %d access_remote_vm ret: %d\n", tsk->pid, ret);
+ // printk("task_raw_stack_remote %d access_remote_vm ret: %d\n", tsk->pid, ret);
return ret < 0 ? ret : 0;
}
@@ -493,7 +493,7 @@ void diag_task_raw_stack(struct task_struct *tsk, raw_stack_detail *detail) {
ret = diagnose_task_raw_stack_remote(
tsk, stack, (void __user *)sp + detail->stack_size, 1024);
}
- printk("diag_task_raw_stack %d i:%d ret:%d\n", tsk->pid, i, ret);
+ // printk("diag_task_raw_stack %d i:%d ret:%d\n", tsk->pid, i, ret);
if (ret)
break;
else