Received: by 2002:a05:6a10:16a7:0:0:0:0 with SMTP id gp39csp648799pxb; Thu, 12 Nov 2020 12:42:02 -0800 (PST) X-Google-Smtp-Source: ABdhPJw1EaI+zYUVNI2W8b8c6RbtixW9KA+T8BTaxXTHVPmxuvLvKx7C5e/hKG7cehjQUE0KAlbv X-Received: by 2002:a17:906:3a97:: with SMTP id y23mr1142969ejd.250.1605213721949; Thu, 12 Nov 2020 12:42:01 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1605213721; cv=none; d=google.com; s=arc-20160816; b=oEOTEjh19cEkPy+pNI04lAjZ1a7Sl8L5z3WXxKJKhblr2Yp5KAk+rYfC6Oxe1W2i9L akljfxxREus9+r/G3f8xYtj8vf5s7uki6RcxMfRd7TUydk3h7tgbvStYqDp8H+ZbkW7N oihx+2dGZKrBlqtMSWvhvOY6IPYPDv+ayS7wnihffHIDLmXfudJirXuwh5ozqOvQmtqo Izwt2ay1rnNXBV9qKWoJre0yg6ciewAcmtlpqsJtq1dKKPm22rFaB2l7ys7B1MGSYutg BuoTst2L2iUfGrglNlDnt9ktrwbCFZcrc7iL+78pNGSRSl0MicNGFs52CH1k//VVikCl jdfg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=qaq2YFtwefyYyN2Mg6zywYPN8FkjIKcjd4RmLG7Bewk=; b=u9xYTj80YHEDi3FnNvETRlDW83bQFOjtillBPWO38fn7mTilJo50oJY2PamloIcJRQ LBYMkOihncYbyOJF6ES1UZ2XCvNos8A6Txj74PE0Md9sK/NZ4xdOOBUVubTKbqS7FJsU tlsL3l7BdBAMnQENrwBpAaxlmyBVHOsQaONfmWd2Ns2Uwl1DgACaYWrFr1WbDYO58y/c dZ88XNpYSgsEmjBwkbWVTnegZpC0b0Mk1gvsunbkdzND8wAQOAaQL32edRZUoDXCLkbS X5KfkdZ+aIgw1UrE5ooATnNCORkdDPkRz3btSYQ5SlZhQR11mh5V2ol6Hj1OfHI4RGGi oXpw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=DgLA807v; 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 gs24si4638403ejb.74.2020.11.12.12.41.38; Thu, 12 Nov 2020 12:42:01 -0800 (PST) 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=DgLA807v; 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 S1727126AbgKLUjz (ORCPT + 99 others); Thu, 12 Nov 2020 15:39:55 -0500 Received: from mail.kernel.org ([198.145.29.99]:54646 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726566AbgKLUjz (ORCPT ); Thu, 12 Nov 2020 15:39:55 -0500 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 5B60C216C4; Thu, 12 Nov 2020 20:39:54 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1605213594; bh=HzMiKq9A/i4kjo48D727cdLmgIACBPKIT2rdg3Wsk34=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=DgLA807vDygo60JfvjQM4TBcySje0QzuP7RpTTY06VU8MSpE5bLKzFOVvCAOyze6d mXcdayOOorj6p7T+hO7YNPY8VTpO/H2BH4TRAyA04535ZJXR5Fd/oeAWoMnDO6V+XO jjcIrgmJrSkPhKgyIBkwH9CA2cxKQzheEzdvEGyY= Received: by quaco.ghostprotocols.net (Postfix, from userid 1000) id 4FB4E411D1; Thu, 12 Nov 2020 17:39:52 -0300 (-03) Date: Thu, 12 Nov 2020 17:39:52 -0300 From: Arnaldo Carvalho de Melo To: Jiri Olsa Cc: Andi Kleen , Jiri Olsa , lkml , Peter Zijlstra , Ingo Molnar , Mark Rutland , Namhyung Kim , Alexander Shishkin , Michael Petlan , Song Liu , Ian Rogers , Stephane Eranian , Alexey Budankov , Adrian Hunter Subject: Re: [PATCH 24/24] perf record: Add --buildid-mmap option to enable mmap's build id Message-ID: <20201112203952.GA393548@kernel.org> References: <20201109215415.400153-1-jolsa@kernel.org> <20201109215415.400153-25-jolsa@kernel.org> <20201111170046.GB466880@tassilo.jf.intel.com> <20201112115710.GE619201@krava> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20201112115710.GE619201@krava> X-Url: http://acmel.wordpress.com Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Em Thu, Nov 12, 2020 at 12:57:10PM +0100, Jiri Olsa escreveu: > On Wed, Nov 11, 2020 at 09:00:46AM -0800, Andi Kleen wrote: > > On Mon, Nov 09, 2020 at 10:54:15PM +0100, Jiri Olsa wrote: > > > Adding --buildid-mmap option to enable build id in mmap2 events. > > > It will only work if there's kernel support for that and it disables > > > build id cache (implies --no-buildid). > > What's the point of the option? Why not enable it by default > > if the kernel supports it? > > With the option most user won't get the benefit. > > The only reason I can think of for an option would be to disable > > so that old tools can still process. > yes, that was request in the rfc post, we want the new default > perf.data be still readable by older perf tools We need to change perf so that when it finds some option it doesn't grok, it just ignores extra things in a record like MMAP2 and just warns the user that things are being ignored. So that we can add new stuff by default without requiring an ever longer command line option, like with --all-cgroups, etc. And provide the options to avoid using new stuff if we know that the perf.data file will be processed by someone with an older tool that can't update. - Arnaldo