aboutsummaryrefslogtreecommitdiffstats
path: root/mm
diff options
context:
space:
mode:
authorPeter Zijlstra <a.p.zijlstra@chello.nl>2009-06-05 08:04:55 -0400
committerIngo Molnar <mingo@elte.hu>2009-06-05 08:46:41 -0400
commit089dd79db9264dc0da602bad45d42f1b3e7d1e07 (patch)
tree017b1efd0bc4f3d15b92ed6fae5dfc3d1b164872 /mm
parentf7b6eb3fa07269da20dbbde8ba37a0273fdbd9c9 (diff)
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 <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.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/mm/mmap.c b/mm/mmap.c
index 6451ce2854b9..8101de490c73 100644
--- a/mm/mmap.c
+++ b/mm/mmap.c
@@ -1220,8 +1220,7 @@ munmap_back:
1220 if (correct_wcount) 1220 if (correct_wcount)
1221 atomic_inc(&inode->i_writecount); 1221 atomic_inc(&inode->i_writecount);
1222out: 1222out:
1223 if (vm_flags & VM_EXEC) 1223 perf_counter_mmap(vma);
1224 perf_counter_mmap(addr, len, pgoff, file);
1225 1224
1226 mm->total_vm += len >> PAGE_SHIFT; 1225 mm->total_vm += len >> PAGE_SHIFT;
1227 vm_stat_account(mm, vm_flags, file, len >> PAGE_SHIFT); 1226 vm_stat_account(mm, vm_flags, file, len >> PAGE_SHIFT);
@@ -2309,6 +2308,8 @@ int install_special_mapping(struct mm_struct *mm,
2309 2308
2310 mm->total_vm += len >> PAGE_SHIFT; 2309 mm->total_vm += len >> PAGE_SHIFT;
2311 2310
2311 perf_counter_mmap(vma);
2312
2312 return 0; 2313 return 0;
2313} 2314}
2314 2315