Received: by 2002:a05:6a10:22f:0:0:0:0 with SMTP id 15csp2257203pxk; Mon, 14 Sep 2020 08:35:36 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxZzfaizdPaJZBk7YAlN802uqbmoabiONemmyl6TPD0pSTCaxsBmNrNfaqLzWk1nWae7Yzp X-Received: by 2002:a17:906:d14e:: with SMTP id br14mr14338708ejb.299.1600097736694; Mon, 14 Sep 2020 08:35:36 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1600097736; cv=none; d=google.com; s=arc-20160816; b=k8RBC5PyoTc7oIelafa87Yr89cu61z2uySMfO4t9BxSsVmIGQ8ZDQNb5ldyRXPNHVr 6J2MbeJuyQtMQTIOxvEYbna5s/ewV/hK5gqrQfTIBWxjc3Qhnjg84vMEvOvjW0Mqo9OC RgxgimMXjDicmeX63kQIThTiZv06wdfXpblR1v++/WBQNh3V8BOPVl1oJD3asf6PWwSK 35Nf/nP4Zbn/CBnXU+UmDwz+tLE5KKhBPPTzkvjAR3RY2kJpDMa2pjjFwVj331lJ9Qwo avq4m72yhLPOuhBABTEKG6GvcfQ/deiCASiG0v5FUxjglsqa4JsoFGbiKbUVTWOWIO6s 6/4A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date :dkim-signature; bh=uCuimAmMOPKpkDjlAP+iHtUMt+7SWf+RA3VTMblSJMk=; b=R6PzJBor0Sy6KLdYpwxfjmqO7d2BsPvYeiQdZg1FduVWYF2nmTAjeUQVvOb2c5EFhK cCN8lZuwDeRwZUus0NLE3BanOsudHGCVUvcY3BtyREFEi5ZRAX4GiaOUGxdVoTmEiZve 04M7h/4s/RyR22dxNqcNtJcIBf2WQ9deaUkvDGJKgM5NAF6bFQRwUPujCHIRY2A9zH7s Difh6DonOKwZqoyZa5WiaEyXxk5ie1hIbq2hFejnfln0j6bs/7A2WecH1CKcivq2TfKT HTR5YFNV2WjHHtfutA+ZzIpkqkmyVHhrE7Wfcf3GD7PrLMAbBOyY2UTBUefais/vOTEn Z7JQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=zxVrkaYY; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id dr5si7888149ejc.370.2020.09.14.08.35.14; Mon, 14 Sep 2020 08:35:36 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=zxVrkaYY; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726301AbgINPeT (ORCPT + 99 others); Mon, 14 Sep 2020 11:34:19 -0400 Received: from mail.kernel.org ([198.145.29.99]:44096 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726198AbgINPco (ORCPT ); Mon, 14 Sep 2020 11:32:44 -0400 Received: from quaco.ghostprotocols.net (unknown [179.97.37.151]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 1DAEB206E9; Mon, 14 Sep 2020 15:32:44 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1600097564; bh=gTKPtzpMtztC4ctRjQPPjEeiA/8BCcW7/oPDOu+9JCU=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=zxVrkaYYu1Fag8lBzLeWxE0v4qmohn6eo8S2oCTGBGk6Yj5cnNybruzMZd0fSlZ/1 sVESJfG7xVQXAaxSErJNjjrDQi8gDof8zuXSaoBIWuubR5TzyEJpJdGGhHNqh/CE+Z 2K0pJ3epzyAKS5wz7JuY/bnZlgp6DZbzAMUMkJeg= Received: by quaco.ghostprotocols.net (Postfix, from userid 1000) id 3E29340D3D; Mon, 14 Sep 2020 12:32:42 -0300 (-03) Date: Mon, 14 Sep 2020 12:32:42 -0300 From: Arnaldo Carvalho de Melo To: peterz@infradead.org Cc: Stephane Eranian , Jiri Olsa , lkml , Ingo Molnar , Mark Rutland , Namhyung Kim , Alexander Shishkin , Michael Petlan , Song Liu , "Frank Ch. Eigler" , Ian Rogers , Alexey Budankov , Andi Kleen , Adrian Hunter Subject: Re: [PATCH 02/26] perf: Introduce mmap3 version of mmap event Message-ID: <20200914153242.GE160517@kernel.org> References: <20200913210313.1985612-1-jolsa@kernel.org> <20200913210313.1985612-3-jolsa@kernel.org> <20200914090811.GM1362448@hirez.programming.kicks-ass.net> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20200914090811.GM1362448@hirez.programming.kicks-ass.net> X-Url: http://acmel.wordpress.com Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Em Mon, Sep 14, 2020 at 11:08:11AM +0200, peterz@infradead.org escreveu: > On Sun, Sep 13, 2020 at 11:41:00PM -0700, Stephane Eranian wrote: > > On Sun, Sep 13, 2020 at 2:03 PM Jiri Olsa wrote: > > what happens if I set mmap3 and mmap2? > > > > I think using mmap3 for every mmap may be overkill as you add useless > > 20 bytes to an mmap record. > > I am not sure if your code handles the case where mmap3 is not needed > > because there is no buildid, e.g, anonymous memory. > > It seems to me you've written the patch in such a way that if the user > > tool supports mmap3, then it supersedes mmap2, and thus > > you need all the fields of mmap2. But if could be more interesting to > > return either MMAP2 or MMAP3 depending on tool support > > and type of mmap, that would certainly save 20 bytes on any anon mmap. > > But maybe that logic is already in your patch and I missed it. > > That, and what if you don't want any of that buildid nonsense at all? I > always kill that because it makes perf pointlessly slow and has > absolutely no upsides for me. So, for you nothing should change, no MMAP3 used, no collection at the end (which is your pet peeve). I'm not saying this is what is in his patches right now, but what I think his patches should be doing. - Arnaldo