Received: by 2002:ac0:aa62:0:0:0:0:0 with SMTP id w31-v6csp1244375ima; Wed, 24 Oct 2018 17:35:29 -0700 (PDT) X-Google-Smtp-Source: AJdET5fLGpK0ZDDiY0My6VbpX1uoZIlbz/Cna9HNRQ++gxgY69CujuFBgM9sxR8jnHVUHAjL+zi/ X-Received: by 2002:a17:902:be01:: with SMTP id r1-v6mr4352901pls.143.1540427729039; Wed, 24 Oct 2018 17:35:29 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1540427729; cv=none; d=google.com; s=arc-20160816; b=S6mNv0pfSTrlNsIOg1cRnAdIeReTkDPEjQdTEqxss7V9PYyTvoDrCac8CiTNZosVQ0 mzsGmznJCo3oJUIfJYOQQGco3/hZvfr0i2hdBUv0NTrWi6ded4QbHpTM5NYPj9dwStLI IjmaeT1UOzJqacsIMtMYQustgBmjZiaWXsyOYparBw2BZs5PP7l+pBjdGSXqyLMW5+mO GXltix7WyWp2GMZh4n6/fJIR39Z8u7t0LCFtIckYzGX8p0wdPvzaipUWOr2myc9BpWCa U0QHfYrigzxCtrSxZuxQOgjCMk2ld8Edfr3HdjQlCeJAVSCQ3lvAZqXJ3LXSf69cITId 38Vg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature; bh=Uxtv525ctmyV7D1xX/yaiynglmzyaV/8ih02aNnrvRI=; b=wJg3qOVzqWQW4NDWHJbqRfSi0dvNLj6qqu2wFByMGnOVmiV0FXMQrW9tb040nobDOx nCAMvs5ZZzPERsEcnFIplHaoJgCFluD+BXlipY5cXeb+5NYJpcC007hNLC8fb4c/86VU TSE+xQZoX8/fJsZJM9q02drlX1WG4qzhZNA8UO1l5N+M4vq6jvvzcKmT/C3lFTp2UUjP BDja3hMNmsWLxMT342TAf9lmJ/tZ3V6lxVAijARoXca+au6enVPqO3Pn6B8wL+cvXX56 /AN/yg0VZWiYEgHDQcKuC8J2cVaduuBlhsfxbFuHtxlnYWaYw6UWCdpRtrIJ9i7CF303 qqpw== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@infradead.org header.s=bombadil.20170209 header.b=pEtgizWZ; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id x33-v6si6348671pga.246.2018.10.24.17.35.13; Wed, 24 Oct 2018 17:35:29 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=fail header.i=@infradead.org header.s=bombadil.20170209 header.b=pEtgizWZ; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726365AbeJYJFK (ORCPT + 99 others); Thu, 25 Oct 2018 05:05:10 -0400 Received: from bombadil.infradead.org ([198.137.202.133]:42048 "EHLO bombadil.infradead.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725829AbeJYJFK (ORCPT ); Thu, 25 Oct 2018 05:05:10 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=bombadil.20170209; h=In-Reply-To:Content-Type:MIME-Version :References:Message-ID:Subject:Cc:To:From:Date:Sender:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Id: List-Help:List-Unsubscribe:List-Subscribe:List-Post:List-Owner:List-Archive; bh=Uxtv525ctmyV7D1xX/yaiynglmzyaV/8ih02aNnrvRI=; b=pEtgizWZuGtXPBJg89SwfICEO UxE/IWlkF5MkZ9rRqynslKksGRC9HxeNcCrm7ggcEWzQo/FL7OoMWmkPozdbjcvlT4CITc3uxAqzG GuFWLk3u/0hPyXM+IYxVAFrsmU3dbiWwCGbvEJVLlgHQ/rEi/E7Tix7kEetV8buYt+iNBFUMasqRy c9sJg9fKiDlYSXHM0j3JpuvEzKkmjFe/AdJnPVpgm15EAg9rg1ErCjO1/w8PG1bzwSfEejP4+ScOF yCjSgvDFxInT2/m1jMjvLwmeWlm+xWzJIGd88W30v51uW+rcgL8Ju5qWmri2aV/aS/SusbsOvy+ZF LdM5iMbhw==; Received: from [167.98.65.38] (helo=worktop) by bombadil.infradead.org with esmtpsa (Exim 4.90_1 #2 (Red Hat Linux)) id 1gFTbq-0001C1-Fm; Thu, 25 Oct 2018 00:34:46 +0000 Received: by worktop (Postfix, from userid 1000) id F01E96E0794; Thu, 25 Oct 2018 02:34:44 +0200 (CEST) Date: Thu, 25 Oct 2018 02:34:44 +0200 From: Peter Zijlstra To: Stephane Eranian Cc: "Liang, Kan" , Thomas Gleixner , Ingo Molnar , Arnaldo Carvalho de Melo , LKML , Borislav Petkov , Andi Kleen Subject: Re: [PATCH 1/2] perf: Add munmap callback Message-ID: <20181025003444.GV3109@worktop.c.hoisthospitality.com> References: <20181024151116.30935-1-kan.liang@linux.intel.com> <20181025002312.GS3109@worktop.c.hoisthospitality.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.22.1 (2013-10-16) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Oct 24, 2018 at 05:25:59PM -0700, Stephane Eranian wrote: > On Wed, Oct 24, 2018 at 5:23 PM Peter Zijlstra wrote: > > That is actually a different problem. And you're right, we never did fix > > that. > > > it is a different problem but the solution is the same: PERF_RECORD_UNMAP! But he's not actually doing PERF_RECORD_UNMAP, nor is his perf_munmap() hook sufficient to actually generate those. Now I agree that if he's going to do an munmap hook, he should do it 'right' and at the very least allow for PERF_RECORD_UNMAP to be done, but ideally simply pick up and finish that patch we had back then.