rm some printk
This commit is contained in:
@@ -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");
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user