]> git.karo-electronics.de Git - linux-beck.git/commit
perf_counter: Add mmap event hooks to mprotect()
authorPeter Zijlstra <a.p.zijlstra@chello.nl>
Mon, 8 Jun 2009 18:11:57 +0000 (21:11 +0300)
committerIngo Molnar <mingo@elte.hu>
Mon, 8 Jun 2009 21:10:43 +0000 (23:10 +0200)
commitdab5855b12411334355ba21349a06700e4ae7a3b
treeab4e5c1893fc24e0bdb39ab8fc291aba39278c35
parent820a644211bc1ac7715333abdb0f0b9ea4fbb549
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 <acme@redhat.com>
Signed-off-by: Pekka Enberg <penberg@cs.helsinki.fi>
LKML-Reference: <Pine.LNX.4.64.0906082111030.12407@melkki.cs.Helsinki.FI>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
mm/mprotect.c