Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754074AbcLLJBw (ORCPT ); Mon, 12 Dec 2016 04:01:52 -0500 Received: from out4-smtp.messagingengine.com ([66.111.4.28]:34830 "EHLO out4-smtp.messagingengine.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753050AbcLLJBv (ORCPT ); Mon, 12 Dec 2016 04:01:51 -0500 X-ME-Sender: X-Sasl-enc: 5famkXnR4p3dpSYowQNyUAYNpyAxsUZCVYHW/cRoWPph 1481533310 User-Agent: K-9 Mail for Android In-Reply-To: <20161212084903.GZ3124@twins.programming.kicks-ass.net> References: <20161210050218.jw4bak5jf766iqpb@alap3.anarazel.de> <20161212084903.GZ3124@twins.programming.kicks-ass.net> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Type: text/plain; charset=UTF-8 Subject: Re: perf/jit doesn't cope well with mprotect() to jit containing pages From: Andres Freund Date: Mon, 12 Dec 2016 01:01:48 -0800 To: Peter Zijlstra 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 Message-ID: <1E8A5038-EDD2-446D-958E-80227AD12845@anarazel.de> Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 651 Lines: 14 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. Possibly the inject --jit pass needs to do something about this? A hack might be to re-emit the fake mmap2 records after ones potentially overwriting previously emitted records. Don't know perf internals well enough to suggest something prettier. Andres -- Sent from my Android device with K-9 Mail. Please excuse my brevity.