summaryrefslogtreecommitdiff
path: root/mm/mmap.c
diff options
context:
space:
mode:
Diffstat (limited to 'mm/mmap.c')
-rw-r--r--mm/mmap.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/mm/mmap.c b/mm/mmap.c
index 9aa554b7e620..93cbba8e0047 100644
--- a/mm/mmap.c
+++ b/mm/mmap.c
@@ -36,6 +36,7 @@
#include <linux/sched/sysctl.h>
#include <linux/notifier.h>
#include <linux/memory.h>
+#include <linux/tegra_profiler.h>
#include <asm/uaccess.h>
#include <asm/cacheflush.h>
@@ -1608,6 +1609,7 @@ munmap_back:
atomic_inc(&inode->i_writecount);
out:
perf_event_mmap(vma);
+ quadd_event_mmap(vma);
vm_stat_account(mm, vm_flags, file, len >> PAGE_SHIFT);
if (vm_flags & VM_LOCKED) {
@@ -2171,6 +2173,7 @@ int expand_upwards(struct vm_area_struct *vma, unsigned long address)
spin_unlock(&vma->vm_mm->page_table_lock);
perf_event_mmap(vma);
+ quadd_event_mmap(vma);
}
}
}
@@ -2240,6 +2243,7 @@ int expand_downwards(struct vm_area_struct *vma,
spin_unlock(&vma->vm_mm->page_table_lock);
perf_event_mmap(vma);
+ quadd_event_mmap(vma);
}
}
}
@@ -2693,6 +2697,8 @@ static unsigned long do_brk(unsigned long addr, unsigned long len)
vma_link(mm, vma, prev, rb_link, rb_parent);
out:
perf_event_mmap(vma);
+ quadd_event_mmap(vma);
+
mm->total_vm += len >> PAGE_SHIFT;
if (flags & VM_LOCKED)
mm->locked_vm += (len >> PAGE_SHIFT);
@@ -2977,6 +2983,7 @@ int install_special_mapping(struct mm_struct *mm,
mm->total_vm += len >> PAGE_SHIFT;
perf_event_mmap(vma);
+ quadd_event_mmap(vma);
return 0;