Received: by 2002:a05:7412:419a:b0:f3:1519:9f41 with SMTP id i26csp372789rdh; Thu, 23 Nov 2023 06:18:52 -0800 (PST) X-Google-Smtp-Source: AGHT+IFB5qihKnbL5E7rZQBXEX6FX9zpswWnMxoAsts35BwJ85uPcosFJeGAGVuQtAXrcwKjUB0R X-Received: by 2002:a92:d7c3:0:b0:359:d2ed:15f4 with SMTP id g3-20020a92d7c3000000b00359d2ed15f4mr5885312ilq.8.1700749132639; Thu, 23 Nov 2023 06:18:52 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1700749132; cv=none; d=google.com; s=arc-20160816; b=vejjcOog6T7lwRXKXdmbXdkFuTr6EoiZ/MdssOB/cuXdCRsskHqjEfGyPJEjicQ11c ukMTXsZ/ozIjmpk60TmNgldd6Yy9mK7y+vNMWca8hxpjvVZ40HXQKjxXIN727RJ/A8HN mrH20LDfkarkl/iqPkoLXiU+QOTkcNVX1KbloH1mgwYCPq4WFmsnETX+5Rf3H920ATF0 HW0gg6ewQPHjkBiLCKLnRyE2lpblZ7g68eKDq9VKbgAP7CPxrPkk39k5yD/1gorgG+MV HUzgs6YcoW22D5i5oAf2rBcPPFvUJBSoe942eUELWvkgh6idUJT0et7+rddYQeILriCM Lk6A== 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=HMK2snygYYlDdcNoyb/oTb2J3TdqWQE1XYtQuh32nqY=; fh=vhwA6XT+9ncfUd7yctAL0YPGkntv4GVUHLux6DIUkWk=; b=A++vyCFuFaJmjP0eSCWUGVuEpOx6nKL5gLnmYa6OHzL7brdxdJIWFmDbk6maoVGjlI GjO1OUWDgQNJlhIZoyNiLAsLgiXmU803JFfkqJmBchbzSLNKkgK61PIzREGQ69/372JY HySxyIeU4xqCPoEjYugOHo0gR8JsJvtlj23k4qTtrn98pZWE7ZCTgBdEXeynjhAxofEl OICDyOnayZntkRwny4t3K3PL65flO98Glqxm8dJHhGEi/NsufTevwlEYaH9Gw75lCwnK 4ttiRlzomNLQngfoQS+x9uvS3SVICGqkiO8NWNoPqooI75dtvD2CmX2+R5LlbOy170hl vhjQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b="sdhEehH/"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:8 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 fry.vger.email (fry.vger.email. [2620:137:e000::3:8]) by mx.google.com with ESMTPS id t8-20020a63d248000000b005b90b2d9178si1409188pgi.796.2023.11.23.06.18.43 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 23 Nov 2023 06:18:52 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:8 as permitted sender) client-ip=2620:137:e000::3:8; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b="sdhEehH/"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:8 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 fry.vger.email (Postfix) with ESMTP id 4C19383775F5; Thu, 23 Nov 2023 06:18:41 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at fry.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1345777AbjKWOSZ (ORCPT + 99 others); Thu, 23 Nov 2023 09:18:25 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:38216 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1345780AbjKWOSU (ORCPT ); Thu, 23 Nov 2023 09:18:20 -0500 Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id BC68610DD for ; Thu, 23 Nov 2023 06:18:25 -0800 (PST) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 35997C433C7; Thu, 23 Nov 2023 14:18:25 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1700749105; bh=5dH3Z1NJbf5X4mxp0nH6utgpxlpIoWc66IrPh9xa4qg=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=sdhEehH/Lvn6xsUmZaa7Zn9iR0bMce7f6LD6JAW6bDLzFqIjJxD8Bl5bEVb6Ahihm EqwjJPRkegwijJcIsTzWndIeKmz1Ow2ocG5GHU5wY2xNQRnOsfVwSYQqjyo350lXIg 4SS0w8Xne4/DjKsZAif6vltTDfFBqgx7i5GtBJycK+1VTTyGg23R91OsfznvTNq/83 waqcF7ms9GmCtzvilcMajKyR4qQFqG75e3Phb9gEOEIYNfr0M3rIfaIzacCMG+kW6y /Xqrlgf4zqiCf760au146jJMKWCrXhHlYiACWV+l6+zmvgPEiZQUPYPb5XafHOmqxN sFp/Ap0v/yidQ== Received: by quaco.ghostprotocols.net (Postfix, from userid 1000) id 7B56140094; Thu, 23 Nov 2023 11:18:22 -0300 (-03) Date: Thu, 23 Nov 2023 11:18:22 -0300 From: Arnaldo Carvalho de Melo To: Hector Martin Cc: Mark Rutland , Ian Rogers , Marc Zyngier , 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 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=us-ascii Content-Disposition: inline In-Reply-To: X-Url: http://acmel.wordpress.com X-Spam-Status: No, score=-1.3 required=5.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on fry.vger.email 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 (fry.vger.email [0.0.0.0]); Thu, 23 Nov 2023 06:18:41 -0800 (PST) Em Thu, Nov 23, 2023 at 05:45:19PM +0900, Hector Martin escreveu: > On 2023/11/23 13:29, Ian Rogers wrote: > > The bulk of this change is updating all of the parse-events test > > expectations so that if a sysfs/json event exists for a PMU the test > > doesn't fail - a further sign, if it were needed, that the legacy > > event priority was a known and tested behavior of the perf tool. > > Signed-off-by: Ian Rogers > > --- > > 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. > > 2) a fixes tag and stable backport I don't think are appropriate. The > > real reported issue is with the PMU driver. A backport would bring the > > risk that later fixes, due to the large behavior change, wouldn't be > > backported and past releases get regressed in scenarios like > > hybrid. Backports for the perf tool are also less necessary than say a > > buggy PMU driver, as distributions should be updating to the latest > > perf tool regardless of what Linux kernel is being run (the perf tool > > is backward compatible). > > Tested-by: Hector Martin Thanks, applied locally, doing some tests and then will push for linux-next to pick it up. Mark, can I have your Reviewed-by or Acked-by? - Arnaldo > $ sudo taskset -c 2 ./perf stat -e apple_icestorm_pmu/cycles/ -e > apple_firestorm_pmu/cycles/ -e cycles echo > > > Performance counter stats for 'echo': > > apple_icestorm_pmu/cycles/ > (0.00%) > 34,622 apple_firestorm_pmu/cycles/ > > 30,751 cycles > > > 0.000429625 seconds time elapsed > > 0.000000000 seconds user > 0.000443000 seconds sys > > > $ sudo taskset -c 0 ./perf stat -e apple_icestorm_pmu/cycles/ -e > apple_firestorm_pmu/cycles/ -e cycles echo > > > Performance counter stats for 'echo': > > 13,413 apple_icestorm_pmu/cycles/ > > apple_firestorm_pmu/cycles/ > (0.00%) > cycles > (0.00%) > > 0.000898458 seconds time elapsed > > 0.000908000 seconds user > 0.000000000 seconds sys > > (It would be nice to have "cycles" match/aggregate both PMUs, but that's > a story for another day. The behavior above is what was there in 6.4 and > earlier.)