diff options
Diffstat (limited to 'litmus/litmus.c')
-rw-r--r-- | litmus/litmus.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/litmus/litmus.c b/litmus/litmus.c index 6d5f317e7537..702999191203 100644 --- a/litmus/litmus.c +++ b/litmus/litmus.c | |||
@@ -472,12 +472,13 @@ asmlinkage long sys_test_call(unsigned int param) | |||
472 | down_read(¤t->mm->mmap_sem); | 472 | down_read(¤t->mm->mmap_sem); |
473 | vma_itr = current->mm->mmap; | 473 | vma_itr = current->mm->mmap; |
474 | while (vma_itr != NULL) { | 474 | while (vma_itr != NULL) { |
475 | printk(KERN_INFO "--------------------------------------------\n"); | ||
475 | printk(KERN_INFO "vm_start : %lx\n", vma_itr->vm_start); | 476 | printk(KERN_INFO "vm_start : %lx\n", vma_itr->vm_start); |
476 | printk(KERN_INFO "vm_end : %lx\n", vma_itr->vm_end); | 477 | printk(KERN_INFO "vm_end : %lx\n", vma_itr->vm_end); |
477 | printk(KERN_INFO "vm_flags : %lx\n", vma_itr->vm_flags); | 478 | printk(KERN_INFO "vm_flags : %lx\n", vma_itr->vm_flags); |
478 | printk(KERN_INFO "vm_prot : %x\n", pgprot_val(vma_itr->vm_page_prot)); | 479 | printk(KERN_INFO "vm_prot : %x\n", pgprot_val(vma_itr->vm_page_prot)); |
479 | printk(KERN_INFO "VM_SHARED? %ld\n", vma_itr->vm_flags & VM_SHARED); | 480 | printk(KERN_INFO "VM_SHARED? %ld\n", vma_itr->vm_flags & VM_SHARED); |
480 | if (vma_itr->vm_file) { | 481 | /* if (vma_itr->vm_file) { |
481 | struct file *fp = vma_itr->vm_file; | 482 | struct file *fp = vma_itr->vm_file; |
482 | unsigned long fcount = atomic_long_read(&(fp->f_count)); | 483 | unsigned long fcount = atomic_long_read(&(fp->f_count)); |
483 | printk(KERN_INFO "f_count : %ld\n", fcount); | 484 | printk(KERN_INFO "f_count : %ld\n", fcount); |
@@ -486,8 +487,10 @@ asmlinkage long sys_test_call(unsigned int param) | |||
486 | } | 487 | } |
487 | } | 488 | } |
488 | printk(KERN_INFO "vm_prot2 : %x\n", pgprot_val(vma_itr->vm_page_prot)); | 489 | printk(KERN_INFO "vm_prot2 : %x\n", pgprot_val(vma_itr->vm_page_prot)); |
490 | */ | ||
489 | vma_itr = vma_itr->vm_next; | 491 | vma_itr = vma_itr->vm_next; |
490 | } | 492 | } |
493 | printk(KERN_INFO "--------------------------------------------\n"); | ||
491 | up_read(¤t->mm->mmap_sem); | 494 | up_read(¤t->mm->mmap_sem); |
492 | 495 | ||
493 | local_irq_save(flags); | 496 | local_irq_save(flags); |