From 1f3d352eaf1c9521be678e52d82f82f1623b34c1 Mon Sep 17 00:00:00 2001 From: Peter Zijlstra Date: Mon, 8 Jun 2009 21:11:57 +0300 Subject: [PATCH] --- yaml --- r: 147707 b: refs/heads/master c: dab5855b12411334355ba21349a06700e4ae7a3b h: refs/heads/master i: 147705: de42a180a3f9ae60c444abab08d64448919b2830 147703: 82e091dbe0db353c448bf3776557bf1d7e5cea40 v: v3 --- [refs] | 2 +- trunk/mm/mprotect.c | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/[refs] b/[refs] index 2bc40c8a886a..dca18eb6b0a8 100644 --- a/[refs] +++ b/[refs] @@ -1,2 +1,2 @@ --- -refs/heads/master: 820a644211bc1ac7715333abdb0f0b9ea4fbb549 +refs/heads/master: dab5855b12411334355ba21349a06700e4ae7a3b diff --git a/trunk/mm/mprotect.c b/trunk/mm/mprotect.c index 258197b76fb4..d80311baeb2d 100644 --- a/trunk/mm/mprotect.c +++ b/trunk/mm/mprotect.c @@ -23,6 +23,7 @@ #include #include #include +#include #include #include #include @@ -299,6 +300,7 @@ SYSCALL_DEFINE3(mprotect, unsigned long, start, size_t, len, error = mprotect_fixup(vma, &prev, nstart, tmp, newflags); if (error) goto out; + perf_counter_mmap(vma); nstart = tmp; if (nstart < prev->vm_end)