From: Peter Zijlstra Date: Mon, 8 Jun 2009 18:11:57 +0000 (+0300) Subject: perf_counter: Add mmap event hooks to mprotect() X-Git-Tag: v2.6.31-rc1~383^2~23 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=dab5855b12411334355ba21349a06700e4ae7a3b;p=pandora-kernel.git perf_counter: Add mmap event hooks to mprotect() Some JIT compilers allocate memory for generated code with posix_memalign() + mprotect() so we need to hook into mprotect() to make sure 'perf' is aware that we're executing code in anonymous memory. [ penberg@cs.helsinki.fi: move the hook to sys_mprotect() ] Cc: Arnaldo Carvalho de Melo Signed-off-by: Pekka Enberg LKML-Reference: Signed-off-by: Ingo Molnar --- Reading git-diff-tree failed