Received: by 2002:ab2:1149:0:b0:1f3:1f8c:d0c6 with SMTP id z9csp2951351lqz; Wed, 3 Apr 2024 13:24:15 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCWQQgVOQKNoWv5UHZ6c3kUquwSHRftr8D6jCfBDyJ17KRmhb0eN8+jdY1u/UUX4K01zib8vN0xwEPxFMfvFSN0Wou8uTew3s2X6W5W4Rw== X-Google-Smtp-Source: AGHT+IEI447IfVelOijCzcwpcsd5h04kTTXknLjQS+DSgIrBCNg3yyfZRn+duVGwja0ox6yamC5N X-Received: by 2002:a05:6214:19cd:b0:696:8bc4:6cb4 with SMTP id j13-20020a05621419cd00b006968bc46cb4mr527057qvc.47.1712175854794; Wed, 03 Apr 2024 13:24:14 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1712175854; cv=pass; d=google.com; s=arc-20160816; b=EJBc244pFI8lrQSrlHMI3zbGLhQL+E9HvpwDUahFqebjgwPVxtcButCIQhMWcRG5nx 3PRwRg/9sM5XkYMZC8JVuziR7ce7pv+8qKHw0kdxvink819wGUJjBDyMtS4AXIMcX3Cg LBRnZkqMghGmxn/zKRYz22KHDkzJjYT3R3uTfKYBSfcrAVCiNK1PIr4wJOK4x2AH+u0x IOOKs9+iNhlRBt246uS7pJD5eKZK8H8GkKTQ1u8L58Ky5j2QjhrccqYKVk4udlPPRXQk mzXHUcedIh98mh4LaXlHXfugQoATPxA+YbUfBRQv4AlIwAnxiX5C3vBr9K7OJM+a4w+V AB9g== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:list-unsubscribe:list-subscribe :list-id:precedence:dkim-signature; bh=EKlQoR2IwAcNBhIZaP0pvhBaPu27ciSZd+tBUsZpkgU=; fh=08gsrFQqThEYt4ZwzeBvkJJeHWk9kcXli3+VACDR5FU=; b=wI64pWv4T8smF+w7iaeBLkJIZh9r1lc3ZvITshF/1jjP+R9pr4lbGstIzIIAkn7nI9 0iOM3rVqX+wqbFVbyTWGFPMSmi/cUOkwmAjXMVEG96feIcfkANrGtZufOLvu29k30JEe ybpblI+EQiD3M7OohAukJTbl/q2K/SAkBwpovCn03prNcLj9yQUpiL16ROwh9pZGcyKD rsa2XQLfv3okZxKTorIM+qIppGkG417TxYnnnzod5H2b2rclFdAn9zFZE05eQALeuJBs BcmWRTGXe1Tg1+2yssPxDj2HBRQtt1H8aq47GRfxF3YgPdDBka7rYH3kXEno2EKpsmRK 8MmA==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@google.com header.s=20230601 header.b=W9n3T+Jw; arc=pass (i=1 spf=pass spfdomain=google.com dkim=pass dkdomain=google.com dmarc=pass fromdomain=google.com); spf=pass (google.com: domain of linux-kernel+bounces-130544-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-130544-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [147.75.199.223]) by mx.google.com with ESMTPS id p10-20020ad452ea000000b0069685a3332fsi15187672qvu.463.2024.04.03.13.24.14 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 03 Apr 2024 13:24:14 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-130544-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) client-ip=147.75.199.223; Authentication-Results: mx.google.com; dkim=pass header.i=@google.com header.s=20230601 header.b=W9n3T+Jw; arc=pass (i=1 spf=pass spfdomain=google.com dkim=pass dkdomain=google.com dmarc=pass fromdomain=google.com); spf=pass (google.com: domain of linux-kernel+bounces-130544-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-130544-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.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 ny.mirrors.kernel.org (Postfix) with ESMTPS id 5C09C1C214B0 for ; Wed, 3 Apr 2024 20:24:14 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 799C5155A56; Wed, 3 Apr 2024 20:24:08 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=google.com header.i=@google.com header.b="W9n3T+Jw" Received: from mail-pl1-f169.google.com (mail-pl1-f169.google.com [209.85.214.169]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 45888155301 for ; Wed, 3 Apr 2024 20:24:06 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.214.169 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1712175847; cv=none; b=s7EDr9GLO4z6j4x5FR0MIZFPwZFDIdJY6zuQLEwml1C3/KAWlGB38tw+xCAvgOuWvZOtZhHFxWLPhvfhsk1JiMXff3qLS68FRvO7wEG3cEKRLIf2uDkYdJcBibntyBRdY5yxLXoeU0o4fE4yXWH6hTEX9F39NJLnfDux2Cpsbss= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1712175847; c=relaxed/simple; bh=EKlQoR2IwAcNBhIZaP0pvhBaPu27ciSZd+tBUsZpkgU=; h=MIME-Version:References:In-Reply-To:From:Date:Message-ID:Subject: To:Cc:Content-Type; b=loKPdFisIRJczQ+xt48pSn671VpyZDz1UtVSJIaDS41B5gyORzGipxyl1qD2z7Ni/CVbP8a9v3L1TOl2q9ZjGN5+szMc50S33387zsT9y6p+SU5yuaD7KA90+Dxaw58LpI9mH1HANICrgwS2wTcMbv6PX6kWp6infYJjKNSqE/8= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=google.com; spf=pass smtp.mailfrom=google.com; dkim=pass (2048-bit key) header.d=google.com header.i=@google.com header.b=W9n3T+Jw; arc=none smtp.client-ip=209.85.214.169 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=google.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=google.com Received: by mail-pl1-f169.google.com with SMTP id d9443c01a7336-1e277154d4cso10685ad.1 for ; Wed, 03 Apr 2024 13:24:06 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20230601; t=1712175845; x=1712780645; darn=vger.kernel.org; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:from:to:cc:subject:date :message-id:reply-to; bh=EKlQoR2IwAcNBhIZaP0pvhBaPu27ciSZd+tBUsZpkgU=; b=W9n3T+JwHYw8by+O13xUUQf3XoAo9/+pu3NuIpyQyS6Ar+0iSr047lRELjtnm3cOCM /eU/F6qdRAc8Q3OiIaL06C5pvGg+XnfKXycCT4WHg88W+SQM3uRB29CQNdk5qP6Vy2OL 4QOY0phQEkKKzCdUKh2WtZVmoySDOyixzdOcRwthxPSGcQWOIHknT7QuGwgYwIgrs0kb djJ+O3SDwH38lJTMs16zEdGHUwthf5Y2CJbEkQYHJ/bBpZH7bh15phcrPultLz7I7wwk GV2oxjqy6A11t+CCE2QCkCRN6F4/Zo+FsuR+bgfmj13pjGbzpgC/UfxoEqRzqd22hLJn kFCA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1712175845; x=1712780645; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=EKlQoR2IwAcNBhIZaP0pvhBaPu27ciSZd+tBUsZpkgU=; b=TcWNktMWV49m9M++mgvAVcAWorM9/hn4RwFc0pPe+/CZtXwIDO5XxgcTbiKaf+lIJ2 st3uuY78h0mcOCCEVVssBuJ9X5SpAf8w07ns/aGvMJk5eo/4mmsrqNKTHQy4gQpWLGVM /qLUz5E7iVPxFi/Hgrr4/cBAIf4mJpZWRYJSMTC7qwcBm70b/zPJGCeBBvvbhC0e7eXI yMNH9GP0zBVumg2Bugu6by6/dlK2fNDjyb7J0Fp1616lj1eAQWS2bC2qZMlKPav1fOL+ kNvXzvEx6TJSzZMjdBUtqradnQVgyEFI8X+SIXggTXENdHwGb8vTQ4QZiiELm2jNhmVO OQuw== X-Forwarded-Encrypted: i=1; AJvYcCVuWK8W/bfFLBlKCya+jq15INuXuvtY0N3BujGQ75dz3PB8d9UvaNgBxf9Ms5Cs8+Nh2LBSulIarBX8cQGmJWt09OjqGZsOvzNeH2ib X-Gm-Message-State: AOJu0Yw7q/BsGH+iFEo6BQdjJ+8GVYAnSZdcllG2yI0NBJE+3K0NuaEM 8qjaCDjDEqvDruzsX6SBOThVjUBvodEqSQWhHxBx//lUcLv27L2LMEJg9bEahRDpiAidohyF48m zGLOK6LEmmoU8UMadNgVIh+stMPbnvVY4ya6L X-Received: by 2002:a17:902:f551:b0:1e0:a977:d88 with SMTP id h17-20020a170902f55100b001e0a9770d88mr306363plf.13.1712175845279; Wed, 03 Apr 2024 13:24:05 -0700 (PDT) Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 References: <20240403164636.3429091-1-irogers@google.com> In-Reply-To: From: Ian Rogers Date: Wed, 3 Apr 2024 13:23:51 -0700 Message-ID: Subject: Re: [PATCH v1] perf metrics: Remove the "No_group" metric group To: Andi Kleen Cc: Peter Zijlstra , Ingo Molnar , Arnaldo Carvalho de Melo , Namhyung Kim , Mark Rutland , Alexander Shishkin , Jiri Olsa , Adrian Hunter , Kan Liang , linux-perf-users@vger.kernel.org, linux-kernel@vger.kernel.org Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable On Wed, Apr 3, 2024 at 11:44=E2=80=AFAM Andi Kleen wro= te: > > On Wed, Apr 03, 2024 at 09:46:36AM -0700, Ian Rogers wrote: > > Rather than place metrics without a metric group in "No_group" place > > them in a a metric group that is their name. Still allow such metrics > > to be selected if "No_group" is passed, this change just impacts perf > > list. > > But what's the point of it? It will just make perf list more verbose, > but I don't see any advantage. So it is possible to list all metrics, that's not changed here. The thing I'm looking to change is that when a metric is standalone it appears in "perf list metricgroups". The reason is that a metric group can gather a bunch of related metrics, say some form of read, write and total bandwidth, whereas something like an idle metric ("d_ratio(max(msr@tsc@ - msr@mperf@, 0), msr@tsc@)") that could get placed in No_group is more useful if it appears in a metric group of "idle". I'd put forward that nobody ever wants to run "idle" as part of "No_group" whereas being able to see it as a thing in metricgroups is useful. I want to be able to run "perf list metricgroups" and get groups of 1 or more metrics that someone might want to pass to "perf stat -M", currently this just shows when there is a group of more than 1 metric as there is no practice of putting a metric like "idle" into a metric group called "idle". We could update all metrics to make it so that when they don't have a metric group we add them to one with their name. We could do this in jevents.py. Those changes would make the No_group logic redundant, so we should remove it. Just updating the No_group logic in the perf command seemed like the minimal approach. Thanks, Ian > -Andi