Received: by 2002:a05:7412:419a:b0:f3:1519:9f41 with SMTP id i26csp639393rdh; Thu, 23 Nov 2023 14:08:07 -0800 (PST) X-Google-Smtp-Source: AGHT+IHBix2J8k0ponh2G2F7K/Pffssx194TI+lLHlxqGW2rUWLk0SGBI/caiwqY+4vSHndlQqgA X-Received: by 2002:a17:902:c283:b0:1cc:449b:68a8 with SMTP id i3-20020a170902c28300b001cc449b68a8mr779584pld.46.1700777287253; Thu, 23 Nov 2023 14:08:07 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1700777287; cv=none; d=google.com; s=arc-20160816; b=Cnuj32SM8+V69Q+tMxZJmV4RNc7EIV4a/bJkMaDzJUdxqyAcH7xt0pFVajsJ0TRhiR k61Pd/97Cz9hj5dYoo6IQHSR8GD8pKxUwPdAV3KH/85qtddy2MmIth2upQQsyjKFOGxW tIO23PDRiCNQdOIhTExCex7+lK0Y33qbYil1DkI3ZvxMfZui7bQD+0cC7HDvhNYRLnST T3mV7G88qS2NvrX8GjtGyeW2k3yFLlNKgrPrtABEH49txDn/hfi+O68jlMzf/iMNXTjj jc3N8IKWQ0K7Wh96IOduMRXeqHBGPVrwhai0IeOtnZQZmyFcoAuEv0uqYsJTO6/Dp1Sc nSRw== 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-transfer-encoding :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature; bh=g8gv4Qfw1kKy45Wo0Sg/0FF7wycg+5of7abulll6sKs=; fh=Tk8ALcKR9tZBIfhdDKM4Yv6Ugxv+L9ilj/ay48xzW3E=; b=XY6Yr4Nfu/wcjWaQDud2TJtFPKhOMlGZ6rD5B0/KX3/IQt2JoaSG6bdzyYr5KznD6q 7eDjz6VOxs46TabAirdOo2S4os9JuqxN0F0SCNdxX3W1RATx26dneRSRyAxFt6M51VIR xTIkzt34sN9Nkj4tW7Rzur5uUfwL2HlvUNQQGET7Iln6G4KnoQHkDd42ugtPWAZhgRb6 Pkx+2Qb170cKZ8wOzMplMFlH8LaLbh+6UnGIvpARCXLyZDFCL72fg1b5/YO1ZRs09Vju ZDZIKeLxyrhSB/AYooUDfeTbmix9JGwE/VjultcpD/RYP9vqMqWB8e4uj07ROh4WtVW6 tdCw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b="NPvW/UXm"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:7 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 snail.vger.email (snail.vger.email. [2620:137:e000::3:7]) by mx.google.com with ESMTPS id t9-20020a170902bc4900b001ce663d7930si1960346plz.47.2023.11.23.14.08.06 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 23 Nov 2023 14:08:07 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:7 as permitted sender) client-ip=2620:137:e000::3:7; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b="NPvW/UXm"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:7 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by snail.vger.email (Postfix) with ESMTP id 90EF88040E97; Thu, 23 Nov 2023 14:05:15 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at snail.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229588AbjKWVts (ORCPT + 99 others); Thu, 23 Nov 2023 16:49:48 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:49236 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229453AbjKWVtq (ORCPT ); Thu, 23 Nov 2023 16:49:46 -0500 Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 52090D62 for ; Thu, 23 Nov 2023 13:49:53 -0800 (PST) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 844DCC433C7; Thu, 23 Nov 2023 21:49:52 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1700776192; bh=ChruaeO872rftytl509GOtmQz0j11PGUCH8A/6iytsI=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=NPvW/UXmQAkbjpaCxOG4Pi2qMzTjyn9qSa5VYZ1sNPcssByNblU9o9LLcvT1yIt8g xqAdKGHTdo40MqRWSj0y2cOrU3Sk80EkPVIZMXOSBezR7cKDb6bIqK8giI+E3VFnQo Ju+DyMGeSXYEN2KMQMXQyH7cgyduWHsv83UHTv19RsChb8iQVkFFZzGKSS1eIiV/kg c3aYogpMsqqcHg/+Fj6yZ08wCKdgp/fExbpAIVp4yrPZT0K3j5BnSPt1sZnIXD1Oa4 C3xBPcov+lyzaM2uHhr4TInpO8dFmkPwi/icoWZw9/G3YbGqb0uLxMnuDyHOMjdeEU jvp28jEodMVsA== Received: by quaco.ghostprotocols.net (Postfix, from userid 1000) id AED2840094; Thu, 23 Nov 2023 18:49:49 -0300 (-03) Date: Thu, 23 Nov 2023 18:49:49 -0300 From: Arnaldo Carvalho de Melo To: Ian Rogers , Mark Rutland , Marc Zyngier , Hector Martin Cc: Namhyung Kim , Peter Zijlstra , Ingo Molnar , Alexander Shishkin , Jiri Olsa , Adrian Hunter , Kan Liang , James Clark , linux-perf-users@vger.kernel.org, linux-kernel@vger.kernel.org, Thomas Gleixner Subject: Re: [RFC PATCH v1] perf parse-events: Make legacy events lower priority than sysfs/json Message-ID: References: <20231123042922.834425-1-irogers@google.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: X-Url: http://acmel.wordpress.com X-Spam-Status: No, score=-2.2 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF, RCVD_IN_DNSWL_BLOCKED,SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (snail.vger.email [0.0.0.0]); Thu, 23 Nov 2023 14:05:15 -0800 (PST) Em Thu, Nov 23, 2023 at 07:18:57AM -0800, Ian Rogers escreveu: > On Thu, Nov 23, 2023 at 6:37 AM Mark Rutland wrote: > > On Wed, Nov 22, 2023 at 08:29:22PM -0800, Ian Rogers wrote: > > > This is a large behavioral change: > > > 1) the scope of the change means it should bake on linux-next and I > > > don't believe should be a 6.7-rc fix. > > I'm happy for this to bake, but I do think it needs to be backported for the > > sake of users, especially given that it *restores* the old behaviour. > It is going to change the behavior for a far larger set of users. I'm > also concerned that: > ``` > $ perf list > ... > cpu-cycles OR cpu/cpu-cycles/ [Kernel PMU event] > ... > ``` > implies that cpu/cpu-cycles/ is a synonym for cpu-cycles, which is no > longer true (or pick another event from sysfs whose name is the same > as a legacy event). I'm not sure what a fix in perf list for this > would look like. It is a mess, indeed, cpu-cycles should be equivalent to cpu/cpu-cycles/, map to the same HW PMU counter. But by now I think we need to just reword the output of perf list to not equate those events, and instead provide a more informative output, if that is at all possible. Something like: Legacy events: cpu-cycles: some nice explanation about the intent for this one (Ingo's probably). And then: PMU events: (and this is even less clear :-() cpu/cpu-cycles/: other nice explanation about the intent for this one, if different, on this arch, for the "legacy" cpu-cycles one. The original intent, that I called "Ingo's" was to try to somehow generalize some concepts (CPU cycles, for instante) so that we could get a rough idea that would allow us to somehow compare results using the tools over different architectures (and micro-arches, etc). I think that with these generic names we're now in damage control mode: what matters is to keep what people got used to to continue to hold. And that is what I think is the main argument here. And I really think we should just head people like Hector (perf power users) and provide a way to aggregate "cycles" over all cores, probably not in the default output, but in a really simple way, as he seems to want that and I would'n t be surprised that that may be something useful after all 8-). So back to checking why this patch isn't working in some of the container arches I test this whole shebang, sigh. - Arnaldo