Received: by 2002:ac0:aa62:0:0:0:0:0 with SMTP id w31-v6csp1250995ima; Wed, 24 Oct 2018 17:45:12 -0700 (PDT) X-Google-Smtp-Source: AJdET5dNtELPwF93eFnZWPs5Krhq3ShpCqAJXsRlOSFsvYRA45JPLlX4PX7MJyFTQe7glC/gD4Bo X-Received: by 2002:a17:902:aa0a:: with SMTP id be10-v6mr4535020plb.294.1540428312174; Wed, 24 Oct 2018 17:45:12 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1540428312; cv=none; d=google.com; s=arc-20160816; b=u1wFhh+o7pNHmVMYc+i+hKVDbPQi/lWMAmLkn2pi04oDyyLRKgDIy8w5FJ1Umk7vJk hO4EY+A/8pM83RHlQyHtDVbUvht9YrJQBJJYqDRzstziaF2ae0LZn39rQckyXnmZdLM5 MjhVh6rioT7BkSQKS4YX8hS5LkVTQjE2uMUXmCufLyz8ANBWDGn7mtNzuDu+yhqpT0+C IwinYcRIUJJgAU4PH/FNuudqZMO1kGxm1/g0LLw9TtQAnYr8+UtVtbO1RT4cQ0ZCVPsA aQcUbreScbZrXfVCa8z+BJTEjSEdaWzgcvsfEKh1cn4IAfV411wh3o1fzjtfw0QTbjp4 Hd0A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:dkim-signature; bh=62cdOIV1L9nQC9Ob55U8Yfb1Ux9VJAu/jXLY0usxbUo=; b=biHI144goveXhFy6Rz7b5tAsrmF5uG/1lwORytO7qXsWaYHEZ8mNHCeFdAEe6a7wMY fTpOt0mA8NctMVBNA3BP4UYu3tErumRaTQJcdVylc/iTgKg8bN0yH9WfPYWeBB7aT8rq qWE2vtrH/iW0m13kJmsmHuX8g/stmmHjBzN2jTxmzvyLdpH/nwq2kMG8OM9pCns+0ERu LnNDNAp+dSeGCl2SPuJhTwHwOyJ9DuXjpTFb/teAxU/TrY2OT6hsco33MK1IBblE3dgF gkNgcSKFNzAH+18nq2KYca/CoS7yJMiedTaxpEHfs63unJbJIVY40O8tW2TEeyXsU1rU e6cA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20161025 header.b=dcxCxqJG; 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; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id d1-v6si6354394pld.217.2018.10.24.17.44.56; Wed, 24 Oct 2018 17:45:12 -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=pass header.i=@google.com header.s=20161025 header.b=dcxCxqJG; 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; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727147AbeJYJOm (ORCPT + 99 others); Thu, 25 Oct 2018 05:14:42 -0400 Received: from mail-vs1-f68.google.com ([209.85.217.68]:43009 "EHLO mail-vs1-f68.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726117AbeJYJOl (ORCPT ); Thu, 25 Oct 2018 05:14:41 -0400 Received: by mail-vs1-f68.google.com with SMTP id k14so2517738vsm.10 for ; Wed, 24 Oct 2018 17:44:21 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=62cdOIV1L9nQC9Ob55U8Yfb1Ux9VJAu/jXLY0usxbUo=; b=dcxCxqJGYloCnwWS5TycdMRZMrxAYWi67ZAXLX7rC/34GmjD8Ee7WNeqXdezQ6mD7j Rsc3PGxxd9aAXB1uBiQyO9uxLP4KpcISDVfxi6Q4t5/t3XtNlPEjx1nP1sP17d01+EJ3 FHE4i0mIdwbIC8Qzh5WcR+LZN8Jyz9jj7AHTidX8X748HTMyT2oAXoXVZnGRWm2yZKvi zZeQTh2k8eJHqFQL9F7+0btbBgIjm8L9lF/j2dWGIu4FzrrDQzRCyeM4uVrH8hcbF5zM Arl69giYh0OrOEC+dy58ANy7DhVJzqCxReflSlad5Db2D2lzkLxLpS1Gn6obdTX+aJ6n SHSw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=62cdOIV1L9nQC9Ob55U8Yfb1Ux9VJAu/jXLY0usxbUo=; b=Lgare45UDLNoNdYrBd6GI9/CHrwz/u+6/9EkQKT232H+7qeiibP19BvXbntdDWnglX DGb4wEokoJUVz/2nlHswpwr5c0L7DsSFkja8BIBCSRTqJ+W++8BGZ2bY+2NfR7sJNCg1 QagHMuX80r/YFBl68kPkWKRnr9Z/5ynWUX7KatcPNP6XpueKZG0HViKUYTJzzNZTgVIj 4LqVW5Wd/D0Ed9CHRAJ2lYHIvXXg/XwGsvZlgMfPUixn5OlYH8F0BByKvws8s6uPxlab aa+KcU0eKMArO8we0xgsa/pXT7k77Blp1Jacxri948A9+51JQLGyzPO1EBe17Jp9bFdA 13Fg== X-Gm-Message-State: AGRZ1gIILGdf5bkCqqQFgvdFR2Ih4JoeoxbPZXqnAfrN1/1muUNLBQfu 9DUV/giKRTWWe+DTFp7yntiHZV22rt5RS4nkr66LQw== X-Received: by 2002:a67:7a49:: with SMTP id v70mr2155145vsc.165.1540428260580; Wed, 24 Oct 2018 17:44:20 -0700 (PDT) MIME-Version: 1.0 References: <20181024151116.30935-1-kan.liang@linux.intel.com> <20181025002312.GS3109@worktop.c.hoisthospitality.com> <20181025003444.GV3109@worktop.c.hoisthospitality.com> In-Reply-To: <20181025003444.GV3109@worktop.c.hoisthospitality.com> From: Stephane Eranian Date: Wed, 24 Oct 2018 17:44:09 -0700 Message-ID: Subject: Re: [PATCH 1/2] perf: Add munmap callback To: Peter Zijlstra Cc: "Liang, Kan" , Thomas Gleixner , Ingo Molnar , Arnaldo Carvalho de Melo , LKML , Borislav Petkov , Andi Kleen Content-Type: text/plain; charset="UTF-8" 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 5:34 PM Peter Zijlstra wrote: > > 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. > You're right. But I saw that and thought, this is going in the right direction: tracking munmap. I agree with you that we should use this opportunity to track unmap for his purpose but also the issue I raised, which needs a new record type based on the new unmap hook. > 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. Agreed.