mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-29 03:01:39 -04:00
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 <[email protected]> Cc: Mike Galbraith <[email protected]> Cc: Paul Mackerras <[email protected]> Cc: Arnaldo Carvalho de Melo <[email protected]> LKML-Reference: <new-submission> Signed-off-by: Ingo Molnar <[email protected]>
This commit is contained in:
parent
60313ebed7
commit
d99e944620
3 changed files with 4 additions and 51 deletions
|
|
@ -1756,12 +1756,6 @@ static void remove_vma_list(struct mm_struct *mm, struct vm_area_struct *vma)
|
|||
do {
|
||||
long nrpages = vma_pages(vma);
|
||||
|
||||
if (vma->vm_flags & VM_EXEC) {
|
||||
perf_counter_munmap(vma->vm_start,
|
||||
nrpages << PAGE_SHIFT,
|
||||
vma->vm_pgoff, vma->vm_file);
|
||||
}
|
||||
|
||||
mm->total_vm -= nrpages;
|
||||
vm_stat_account(mm, vma->vm_flags, vma->vm_file, -nrpages);
|
||||
vma = remove_vma(vma);
|
||||
|
|
|
|||
Loading…
Reference in a new issue