From nobody Sat Feb 7 17:41:01 2026 Received: from mail-dy1-f201.google.com (mail-dy1-f201.google.com [74.125.82.201]) (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 86FFB199FB0 for ; Sat, 7 Feb 2026 00:50:01 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=74.125.82.201 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1770425401; cv=none; b=S9TWxMq5O0aRuZi4Inguyw94AYfOrKIhSULZMyaM+z+7F1yeg00T5G8CAszbgPPNHmii798VBIxQtgpNtaqlEQgqg9tze/YQX4EqpY8e767q+hgwdSpoIE/Jsg2REKtncDrsWtjpmQRyiVr6tUVLVoux9grpYWox4YKsKkj4KXw= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1770425401; c=relaxed/simple; bh=f+runZoEza7jJOLrHjcpbqFLHZsP7k33/O/E7Exxgug=; h=Date:In-Reply-To:Mime-Version:References:Message-ID:Subject:From: To:Cc:Content-Type; b=YDOyNqwk6S5RcNDbPsOou/kdVpM8ya7YLcm3wQRY5c+4BU9CJFWBqiujxl7ioH2PViG4p+MWqOx7Vq1lKWEFBQdtF2ZZrpceKt9X5OqiUYb6pzO9FKnt+/UtbFvzI63P1zqZKgdTBmjSBLxhR1FsoFcUIidCOeuV4gRV8tfG1NM= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=google.com; spf=pass smtp.mailfrom=flex--irogers.bounces.google.com; dkim=pass (2048-bit key) header.d=google.com header.i=@google.com header.b=m8Va4H4I; arc=none smtp.client-ip=74.125.82.201 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=flex--irogers.bounces.google.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=google.com header.i=@google.com header.b="m8Va4H4I" Received: by mail-dy1-f201.google.com with SMTP id 5a478bee46e88-2b7eddde359so1688372eec.0 for ; Fri, 06 Feb 2026 16:50:01 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20230601; t=1770425400; x=1771030200; darn=vger.kernel.org; h=cc:to:from:subject:message-id:references:mime-version:in-reply-to :date:from:to:cc:subject:date:message-id:reply-to; bh=FI58l4Db6Gvmd0p9AohQ8uhApAmdK0WUeG1k9fnDSu4=; b=m8Va4H4ImoOf7jWWGrJKnGIdUOgsgo76SaF0JNkRC4Tv+iDPXwRyFM3Mu79XKr+AfN jnUTk2TYJiXTINZDZJcjtiZJdD2npn4SnsihEx+wreGoK1OiDxApPcJ03sgJhNtC5L9J WILaCis9uwz0YjnF9/S5NpEBc845yHWHd2oCN2xYYLP5lclhswdkLvPFtcl27Y55WTg5 TmP7M6qXvSsxfJqwcXEtwLsxe2BPjGemOEpc1TF/868PkJmpADwrhZD8ldGGa1oebqIi SaoRw4nIFsBdE6uCaGyf9Ry/iMB6n5mb47g6/kLKJ4WMiSBfSkukQ/dnoIWG1C0BnGcq 40KA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1770425400; x=1771030200; h=cc:to:from:subject:message-id:references:mime-version:in-reply-to :date:x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=FI58l4Db6Gvmd0p9AohQ8uhApAmdK0WUeG1k9fnDSu4=; b=RED2P01mSCP4LcMOMJQ20Ypz5jLfUM/kvgxzcxUCwU9sCwEuCTB3lD3dHZMUJBOWej 7f3NQGGXqVK34TvF0r363Yj6FJIJnXC6aIT0p/R2oxQ06dW2+Fzyd4YrelALSGF6pXG/ anI85BIvpuqVC6BqABbFq8fcjw3bM5DmOx9c79mLEDwZi3Wzu67TxuUnyhDqsoRE/gse odq7j1mNPH1G91ysOg9+gXe8OC35gjHoZF2ajbxbn22XpEpMUg/RtWhfdV3xTGhVwQfp /QdiVNW0cJDrn6HDQaNFVWtti27UIO6tqabmh7Ea9W18eykNu+YgvXhZlglkrpyn93ky Dxgg== X-Forwarded-Encrypted: i=1; AJvYcCX9tJ6J0a44EUROi2+NcYC6L/ZYoeI/8LTedl2ahiG/dx1dsEwLI568cGrakVJK/UKefa5rCvdDa5H87Io=@vger.kernel.org X-Gm-Message-State: AOJu0YzoByYNWbNxMp+Qe4kjGYOCzijYMsrjS2mg5WH1W5LbtrNV85AJ /qEgbnwlk+Vgz++F2/9EfBmq9qSNY1dcjO6qqiNyqXptUgH3iLkwLoGzZFg8fuNJnmaeqrVwCol 694i6otvoCw== X-Received: from dykh9.prod.google.com ([2002:a05:7300:5709:b0:2b7:75b:cf5a]) (user=irogers job=prod-delivery.src-stubby-dispatcher) by 2002:a05:693c:3105:b0:2b7:da62:a611 with SMTP id 5a478bee46e88-2b856450035mr2274978eec.6.1770425400463; Fri, 06 Feb 2026 16:50:00 -0800 (PST) Date: Fri, 6 Feb 2026 16:49:56 -0800 In-Reply-To: Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: Mime-Version: 1.0 References: X-Mailer: git-send-email 2.53.0.239.g8d8fc8a987-goog Message-ID: <20260207004956.610458-1-irogers@google.com> Subject: [PATCH v1] perf metricgroup: Fix metricgroup__has_metric_or_groups From: Ian Rogers To: irogers@google.com Cc: acme@kernel.org, adrian.hunter@intel.com, alexander.shishkin@linux.intel.com, james.clark@linaro.org, jolsa@kernel.org, leo.yan@arm.com, linux-kernel@vger.kernel.org, linux-perf-users@vger.kernel.org, mingo@redhat.com, namhyung@kernel.org, peterz@infradead.org Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" Use metricgroup__for_each_metric rather than pmu_metrics_table__for_each_metric that combines the default metric table with, a potentially empty, CPUID table. Fixes: cee275edcdb1 ("perf metricgroup: Don't early exit if no CPUID table = exists") Signed-off-by: Ian Rogers --- tools/perf/util/metricgroup.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/tools/perf/util/metricgroup.c b/tools/perf/util/metricgroup.c index 46bf4dfeebc8..7e39d469111b 100644 --- a/tools/perf/util/metricgroup.c +++ b/tools/perf/util/metricgroup.c @@ -1605,9 +1605,9 @@ bool metricgroup__has_metric_or_groups(const char *pm= u, const char *metric_or_gr .metric_or_groups =3D metric_or_groups, }; =20 - return pmu_metrics_table__for_each_metric(table, - metricgroup__has_metric_or_groups_callback, - &data) + return metricgroup__for_each_metric(table, + metricgroup__has_metric_or_groups_callback, + &data) ? true : false; } =20 --=20 2.53.0.239.g8d8fc8a987-goog