find-task中添加了print_vm_area的代码...

This commit is contained in:
gatieme
2016-05-16 21:36:31 +08:00
parent 46682f8ea5
commit eaab4e35e4
@@ -17,11 +17,6 @@
(type *)( (char *)__mptr - offsetof(type,member) );})
#endif
static int pid = 1;
module_param(pid,int,0644);
static void print_vm_area(struct vm_area_struct)
{
((tmp->vm_flags & VM_READ) == 1) ? printk("r") : printk("-");
@@ -77,3 +72,8 @@ static void print_vm_area_by_rbtree(struct task_struct *task)
print_rb_tree(root);
}
static void print_stack_vmarea(struct task_struct *task)
{
print_
}