Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754185AbcLLJ2W (ORCPT ); Mon, 12 Dec 2016 04:28:22 -0500 Received: from bombadil.infradead.org ([198.137.202.9]:51444 "EHLO bombadil.infradead.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752338AbcLLJ2U (ORCPT ); Mon, 12 Dec 2016 04:28:20 -0500 Date: Mon, 12 Dec 2016 10:28:13 +0100 From: Peter Zijlstra To: Andres Freund Cc: linux-kernel@vger.kernel.org, Stephane Eranian , acme@kernel.org, jolsa@redhat.com, mingo@elte.hu, anton@ozlabs.org, namhyung@kernel.org, Stephane Eranian Subject: Re: perf/jit doesn't cope well with mprotect() to jit containing pages Message-ID: <20161212092813.GA3124@twins.programming.kicks-ass.net> References: <20161210050218.jw4bak5jf766iqpb@alap3.anarazel.de> <20161212084903.GZ3124@twins.programming.kicks-ass.net> <1E8A5038-EDD2-446D-958E-80227AD12845@anarazel.de> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1E8A5038-EDD2-446D-958E-80227AD12845@anarazel.de> User-Agent: Mutt/1.5.23.1 (2014-03-12) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 527 Lines: 17 On Mon, Dec 12, 2016 at 01:01:48AM -0800, Andres Freund wrote: > > > On December 12, 2016 12:49:03 AM PST, Peter Zijlstra 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?