From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S933100AbdA0Pnq (ORCPT ); Fri, 27 Jan 2017 10:43:46 -0500 Received: from mail.kernel.org ([198.145.29.136]:55036 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932183AbdA0PnM (ORCPT ); Fri, 27 Jan 2017 10:43:12 -0500 Date: Fri, 27 Jan 2017 12:43:05 -0300 From: Arnaldo Carvalho de Melo To: Peter Zijlstra Cc: Stephane Eranian , Andres Freund , "eranian@gmail.com" , LKML , Jiri Olsa , Ingo Molnar , Anton Blanchard , Namhyung Kim Subject: Re: perf/jit doesn't cope well with mprotect() to jit containing pages Message-ID: <20170127154304.GB9082@kernel.org> References: <20161210050218.jw4bak5jf766iqpb@alap3.anarazel.de> <20170126210052.3znejq6s4ah3l2ow@alap3.anarazel.de> <20170126221912.GF6515@twins.programming.kicks-ass.net> <20170126223820.t2564ltcu3cjmt3p@alap3.anarazel.de> <20170126230956.srv2wtlwhwihgn32@alap3.anarazel.de> <20170127130702.GI6515@twins.programming.kicks-ass.net> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20170127130702.GI6515@twins.programming.kicks-ass.net> X-Url: http://acmel.wordpress.com User-Agent: Mutt/1.7.1 (2016-10-04) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Em Fri, Jan 27, 2017 at 02:07:02PM +0100, Peter Zijlstra escreveu: > Something like the (compile tested only) below might be sufficient to > disambiguate things. It would need a corresponding tools/perf patch of > course, but I'm not too familiar with that code anymore. I'm working on patch to do feature test, fallback and handling of the event, etc, will post later. - Arnaldo