Received: by 2002:a05:6500:1b8f:b0:1fa:5c73:8e2d with SMTP id df15csp720244lqb; Wed, 29 May 2024 08:39:51 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCV434++ePo9h0/F+oOmUZ1XUcnORtmMnex7U/M8NIul05gNC4vkIZXJR0tQUfHkncp6TD1JuScjrsYhUbR4jfr3YTZgbx+EhFuj7waiNw== X-Google-Smtp-Source: AGHT+IFmU9JiV4gClKKv50ixq9H56xyGryf5zlItxDmERlaoW8w9QXKKZXwHCs+bxo8Y7HyEzE9r X-Received: by 2002:a05:6a21:999c:b0:1b2:5437:e04c with SMTP id adf61e73a8af0-1b25437e495mr4361071637.62.1716997191398; Wed, 29 May 2024 08:39:51 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1716997191; cv=pass; d=google.com; s=arc-20160816; b=KT8Vdm5x6gEt54hC8R/1fkxpQw4bVbyH4w0+EMl2IbBKv95aVL6i3BQrayt8+tXc9b JfcisUonl8y9rwYfP3lof6wA053ZTtD7NPNeC+xXbAcD4lALHdEfpjZ1r9w08i7WXCDV aVFNuaWiZ5N8z1cnGJ/BKSIPTWSKMMoowu0k7Hb2FF/Ig8pvkDxbOUyCYrCXXTgGhbs3 CkUzlIkaGIBsoNnbgT6thgqg011iqMNAo/OCPkIRxHm4sz7Jxv9sI6GrhiyAOo6bMDpk FNCdc6J0Q155so1ibtNQPsu872v9a+Nho51zXJNW9zh9BHSLI8aCHYLgsqxtNTMGFq29 wmtw== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:in-reply-to:from:cc:content-language :references:to:subject:user-agent:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:date:message-id; bh=7aESwFgpiNhqKx7nLw974S72SCslUrdE29YRTER2FSQ=; fh=PrWUuj51Kc8mS6YPcPqaavczcHy8uTLsmmcHwNVACs0=; b=co8WdJ25L8ZnCJMIeBKrn392/XJIHJFH8IXLJTgN2c0MJZX4p9xUFC+/u6m7n6Wr9S cvZ2Bzrl0ANj8p+0WeeIgeGsYQfMRlIIkq5Z3+OLp2MbagwCSoFl3YbgnYNCeO/CNnr/ TXUUOHWMdkcQJ5fxIokCUKtDgD/TajlZ88Du28UidU+TYNkQ/JL4dE30IpsCOT5IgAB+ 7KedCfcbhs0nMfxT8EmdS7Z4B8TlGY9+snlNsmyX6PuUad77eWQdd26/I3z3p0iUfGYu tKA7C5wrtrpJED5qeYQ4UmJtjPRs6LDOR9IyRlZTeah3Ociq3MZ8LHmqda3UrWFP51+0 kMfg==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; arc=pass (i=1 spf=pass spfdomain=arm.com dmarc=pass fromdomain=arm.com); spf=pass (google.com: domain of linux-kernel+bounces-194373-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-194373-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=arm.com Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [139.178.88.99]) by mx.google.com with ESMTPS id d2e1a72fcca58-6fb231bbbacsi8981362b3a.87.2024.05.29.08.39.51 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 29 May 2024 08:39:51 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-194373-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) client-ip=139.178.88.99; Authentication-Results: mx.google.com; arc=pass (i=1 spf=pass spfdomain=arm.com dmarc=pass fromdomain=arm.com); spf=pass (google.com: domain of linux-kernel+bounces-194373-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-194373-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=arm.com Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sv.mirrors.kernel.org (Postfix) with ESMTPS id B8F45289A28 for ; Wed, 29 May 2024 15:39:50 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id A22D3181CEA; Wed, 29 May 2024 15:39:32 +0000 (UTC) Received: from foss.arm.com (foss.arm.com [217.140.110.172]) by smtp.subspace.kernel.org (Postfix) with ESMTP id F3B9F18132A; Wed, 29 May 2024 15:39:28 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=217.140.110.172 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1716997172; cv=none; b=ovilWO2Czph5XuK6/L94TY8kI4+/9XbqrBJbs/hjSylJc+pzAxvOs8wN3HB9WALpu8Dqy/K1xa6KyZxvOH9Wg85Z0zEPHx0hcOhv53MrMSJ6jG60oHjH463EChK55hhN6jPA/vb0zi6eWCjgtmcD4ftg1Zj7kkI1TiuQKQdNyiY= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1716997172; c=relaxed/simple; bh=TliaClem/BlBEA7n1ndUxu2dBztOR2NCv37zhVcHmNM=; h=Message-ID:Date:MIME-Version:Subject:To:References:Cc:From: In-Reply-To:Content-Type; b=VBj8oLVah0DMYQgXibSQzF8gLVx3ZKEahHWYZmInKYLWfFJDTV25H9TCajnrcchnakb9Qpn+gK8AiyS1XFziDAjEE/SIMVdrRfwPWJDn59qSkUQGpDv0JbS+sWSN4klzFkXZdhzYFNn8ttTMD8Za3wQkrJxhrp1hjUCYJyIugww= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=arm.com; spf=pass smtp.mailfrom=arm.com; arc=none smtp.client-ip=217.140.110.172 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=arm.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=arm.com Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.121.207.14]) by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id 51C98339; Wed, 29 May 2024 08:39:52 -0700 (PDT) Received: from [192.168.1.100] (usa-sjc-mx-foss1.foss.arm.com [172.31.20.19]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id B50063F762; Wed, 29 May 2024 08:39:25 -0700 (PDT) Message-ID: <35d6875b-9a28-4953-a187-b6659880ac66@arm.com> Date: Wed, 29 May 2024 16:39:27 +0100 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH v3 3/5] perf stat: Remove evlist__add_default_attrs use strings To: Ian Rogers References: <20240510053705.2462258-1-irogers@google.com> <20240510053705.2462258-4-irogers@google.com> Content-Language: en-US Cc: Peter Zijlstra , Ingo Molnar , Arnaldo Carvalho de Melo , Namhyung Kim , Mark Rutland , Alexander Shishkin , Jiri Olsa , Adrian Hunter , Kan Liang , Ravi Bangoria , Yang Jihong , Ze Gao , Leo Yan , Song Liu , K Prateek Nayak , Kaige Ye , Yicong Yang , linux-perf-users@vger.kernel.org, linux-kernel@vger.kernel.org From: James Clark In-Reply-To: <20240510053705.2462258-4-irogers@google.com> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit On 10/05/2024 06:37, Ian Rogers wrote: > add_default_atttributes would add evsels by having pre-created > perf_event_attr, however, this needed fixing for hybrid as the > extended PMU type was necessary for each core PMU. The logic for this > was in an arch specific x86 function and wasn't present for ARM, > meaning that default events weren't being opened on all PMUs on > ARM. Change the creation of the default events to use parse_events and > strings as that will open the events on all PMUs. > > Rather than try to detect events on PMUs before parsing, parse the > event but skip its output in stat-display. > > The previous order of hardware events was: cycles, > stalled-cycles-frontend, stalled-cycles-backend, instructions. As > instructions is a more fundamental concept the order is changed to: > instructions, cycles, stalled-cycles-frontend, stalled-cycles-backend. > > Closes: https://lore.kernel.org/lkml/CAP-5=fVABSBZnsmtRn1uF-k-G1GWM-L5SgiinhPTfHbQsKXb_g@mail.gmail.com/ Taking a look at this one now. I think some example commands and outputs in the commit message would be helpful because there are quite a few different things mentioned in the closes link. But I'm assuming this is just for the command without specifying an event: $ perf stat I didn't realise that wasn't working properly and I'd missed that Mark spotted it in that link.