Re: perf/jit doesn't cope well with mprotect() to jit containing pages

From: Peter Zijlstra
Date: Mon Dec 12 2016 - 04:28:26 EST


On Mon, Dec 12, 2016 at 01:01:48AM -0800, Andres Freund wrote:
>
>
> On December 12, 2016 12:49:03 AM PST, Peter Zijlstra <peterz@xxxxxxxxxxxxx> wrote:
> >On Fri, Dec 09, 2016 at 09:02:18PM -0800, Andres Freund wrote:
>
> >> Am I doing something wrong, or is there a bug here?
> >
> >Expected behaviour afaict
>
> So I need to prevent vma merging to use perf jit support? That seems
> a bit weird.

No idea about that, I don't really have the whole JIT stuff present atm.
I just know how the mmap stuff works.

Stephane?