mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-29 19:21:31 -04:00
perf_counter: Generate mmap events for install_special_mapping()
In order to track the vdso also generate mmap events for install_special_mapping(). 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
f7b6eb3fa0
commit
089dd79db9
3 changed files with 33 additions and 20 deletions
|
|
@ -1220,8 +1220,7 @@ munmap_back:
|
|||
if (correct_wcount)
|
||||
atomic_inc(&inode->i_writecount);
|
||||
out:
|
||||
if (vm_flags & VM_EXEC)
|
||||
perf_counter_mmap(addr, len, pgoff, file);
|
||||
perf_counter_mmap(vma);
|
||||
|
||||
mm->total_vm += len >> PAGE_SHIFT;
|
||||
vm_stat_account(mm, vm_flags, file, len >> PAGE_SHIFT);
|
||||
|
|
@ -2309,6 +2308,8 @@ int install_special_mapping(struct mm_struct *mm,
|
|||
|
||||
mm->total_vm += len >> PAGE_SHIFT;
|
||||
|
||||
perf_counter_mmap(vma);
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue