1 --- fs/proc/task_nommu.c
2 +++ fs/proc/task_nommu.c.old
4 seq_printf(m, "%*c", len, ' ');
7 +#define DPRINTK(fmt, args...) printk(KERN_DEBUG "%s:%i: " fmt "\n", __FUNCTION__, __LINE__, ## args)
9 static int show_map(struct seq_file *m, void *v)
11 struct vm_list_struct *vml = v;
16 +DPRINTK("!!! BOOYA");
19 struct inode *inode = vma->vm_file->f_dentry->d_inode;
20 dev = inode->i_sb->s_dev;
23 struct vm_list_struct *vml;
25 +DPRINTK("!!! BOOYA l=%i", (int)l);
27 mm = get_task_mm(task);
31 +DPRINTK("!!! BOOYA down_read(sem)");
32 down_read(&mm->mmap_sem);
33 +DPRINTK("!!! BOOYA");
36 * Check the vml index is within the range and do
42 +DPRINTK("!!! BOOYA <-- exit");
46 /* End of vmls has been reached */
47 +DPRINTK("!!! BOOYA up_read(sem)");
48 up_read(&mm->mmap_sem);
49 +DPRINTK("!!! BOOYA mmput(mm)");
52 +DPRINTK("!!! BOOYA <-- exit");
55 static void m_stop(struct seq_file *m, void *v)
57 struct task_struct *task = m->private;
59 +DPRINTK("!!! BOOYA --> enter");
64 mm = get_task_mm(task);
67 +DPRINTK("!!! BOOYA <-- exit");
71 +DPRINTK("!!! BOOYA up_read(sem)");
72 up_read(&mm->mmap_sem);
73 +DPRINTK("!!! BOOYA mmput(mm)");
75 +DPRINTK("!!! BOOYA <-- exit");
77 static void *m_next(struct seq_file *m, void *v, loff_t *pos)
79 struct vm_list_struct *vml = v;
80 +DPRINTK("!!! BOOYA");
85 +DPRINTK("!!! BOOYA");
89 +DPRINTK("!!! BOOYA");
91 +DPRINTK("!!! BOOYA");
94 struct seq_operations proc_pid_maps_op = {