diff options
author | Peter Zijlstra <a.p.zijlstra@chello.nl> | 2009-06-04 11:08:58 -0400 |
---|---|---|
committer | Ingo Molnar <mingo@elte.hu> | 2009-06-04 11:51:38 -0400 |
commit | d99e9446200c1ffab28cb0e39b76c34a2bfafd06 (patch) | |
tree | 10cd2f67f3bffaf8dcec79c197689f440faf9265 /mm | |
parent | 60313ebed739b331e8e61079da27a11ee3b73a30 (diff) |
perf_counter: Remove munmap stuff
In name of keeping it simple, only track mmap events. Userspace
will have to remove old overlapping maps when it encounters them.
Signed-off-by: Peter Zijlstra <a.p.zijlstra@chello.nl>
Cc: Mike Galbraith <efault@gmx.de>
Cc: Paul Mackerras <paulus@samba.org>
Cc: Arnaldo Carvalho de Melo <acme@redhat.com>
LKML-Reference: <new-submission>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
Diffstat (limited to 'mm')
-rw-r--r-- | mm/mmap.c | 6 |
1 files changed, 0 insertions, 6 deletions
@@ -1756,12 +1756,6 @@ static void remove_vma_list(struct mm_struct *mm, struct vm_area_struct *vma) | |||
1756 | do { | 1756 | do { |
1757 | long nrpages = vma_pages(vma); | 1757 | long nrpages = vma_pages(vma); |
1758 | 1758 | ||
1759 | if (vma->vm_flags & VM_EXEC) { | ||
1760 | perf_counter_munmap(vma->vm_start, | ||
1761 | nrpages << PAGE_SHIFT, | ||
1762 | vma->vm_pgoff, vma->vm_file); | ||
1763 | } | ||
1764 | |||
1765 | mm->total_vm -= nrpages; | 1759 | mm->total_vm -= nrpages; |
1766 | vm_stat_account(mm, vma->vm_flags, vma->vm_file, -nrpages); | 1760 | vm_stat_account(mm, vma->vm_flags, vma->vm_file, -nrpages); |
1767 | vma = remove_vma(vma); | 1761 | vma = remove_vma(vma); |