From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-pg1-f202.google.com (mail-pg1-f202.google.com [209.85.215.202]) (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 ACD0B387341 for ; Thu, 16 Jul 2026 07:03:30 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.215.202 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1784185411; cv=none; b=cri6N5QtpzlxzQ3rwYBydYF3OKXDRGMRQBnoy3PLyP/MSXPIooAAwFxkMLh5mOBST/deZun2nfeZAbVTICzNUWlWdTxHMEsDRd2SjtUraK6PwDBiWyGJPKAjef6lDA9r/cxlJhg80ygGET7zlrRXSxh6WZDi1jSgzXOFTbenegY= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1784185411; c=relaxed/simple; bh=2zRqavbTgYkq8HwTfEKM0Me45DGRRl8qebYC5U0RZho=; h=Date:In-Reply-To:Mime-Version:References:Message-ID:Subject:From: To:Cc:Content-Type; b=CauVG4New6J7Sl6Wg1R70XjJ3WyJGBGY8n8KP+vg65jkNamUfEG3eP006LFCEsjEQQMw8aEqA0KQ0czaKJVxWzfeGzX47JuWrt6oRU7ezlWCHR4SuhzzpTvSO1R9XN2EDWRiMNPeALerDGuCq0LkB36D4Cw2tbcWWQ+VO6e8kCM= 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=Zsx6x2f1; arc=none smtp.client-ip=209.85.215.202 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="Zsx6x2f1" Received: by mail-pg1-f202.google.com with SMTP id 41be03b00d2f7-c88e0d11a3fso2656806a12.0 for ; Thu, 16 Jul 2026 00:03:30 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20251104; t=1784185410; x=1784790210; darn=vger.kernel.org; h=content-type:cc:to:from:subject:message-id:references:mime-version :in-reply-to:date:from:to:cc:subject:date:message-id:reply-to :content-type; bh=zcjJZCGcC+t8od9G4IqAATvOsW/z+G4n2l1/yDPO6Gk=; b=Zsx6x2f1eunK4mvl9zvFzNlc7yKOtsOkI426GkKgql2zhfhuFmW+O6SbfaUNMx5Pc3 GtKqvk+XG54Lii6MxmmQ3hZ93dFdS43FaXeElDJDja8kleVymeBvevOcHCtn79HmhKst paLIv4U1oDGDVBDMWtNwAdQOOh2sGwiieV5kdvT6IWygh5R24lWzQg2YqbLSM1TFfC0z vlWzxg+v3+7fYcqFmvdS+T/f8033LK2/KuSOMPs8hXdT5cYlN8Kwb+ap58SsEf+7hV0I OpMXMt5qqIcrlDaHmHRyAIWcjs/Z2+lwWrz6VpOD5lFnB14/9NXxr8+94K5CBnqK76wi KmxQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1784185410; x=1784790210; h=content-type: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:content-type; bh=zcjJZCGcC+t8od9G4IqAATvOsW/z+G4n2l1/yDPO6Gk=; b=TsVVwL3zIQDBsZ4DGXS/yB7Gkon5NkemGCtAboCeUZZV8cGGHNdGTr9qkmbkniJUIg iOGl9gpMuiK72EeztE6CAdvYl/Jl6pwkwrqw7HTlHOOwNJXCwHKOEpSz+0Z9XqQmIRi4 AsyPi+TkvPCfu1qLzGb3+99CWP4GlMdKYg3WOYV0dUmI26nvbm2YKTjUIxmHvPQA4Yho +8K4ByqePc18I6GjNAPf1kZ9hDsGTT3OWPCNME4IviaUYQmKp87vxTUt7P2gK7qMWuEp rJfLEYPQa/mZnInYIjiOzACIFOM+8B267jE1rsPxVj3v0jys6+tbsWF7Ikfzwf7ksl4D Y3UQ== X-Forwarded-Encrypted: i=1; AHgh+RrgRhlSqihzDVj6xqq4BkTJZ32niAJyZdO70FilGIeOoFbbQkKnUccjnz1PMmM50kcCkW+lB7zHUwmbEKM=@vger.kernel.org X-Gm-Message-State: AOJu0Yy9KJg9oOHioU7nYR3z5JDgAcJFNG881PfLXa0Gnsb44u9w59RN z7bDMQfh0VtKbodcoJMtKMzqTuSy66Xz8gO/oeBwGHSF6cj0xfdSDcDdFLMoeUt/O1X+4r8Ix25 JE0t4dRykkA== X-Received: from dlbph10.prod.google.com ([2002:a05:7022:370a:b0:13b:9d10:4fe5]) (user=irogers job=prod-delivery.src-stubby-dispatcher) by 2002:a05:6a21:9216:b0:3bf:bde7:d66f with SMTP id adf61e73a8af0-3c11076c6ecmr23488176637.2.1784185409798; Thu, 16 Jul 2026 00:03:29 -0700 (PDT) Date: Thu, 16 Jul 2026 00:02:58 -0700 In-Reply-To: <20260716070303.507066-1-irogers@google.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: Mime-Version: 1.0 References: <20260716043223.388233-1-irogers@google.com> <20260716070303.507066-1-irogers@google.com> X-Mailer: git-send-email 2.55.0.141.g00534a21ce-goog Message-ID: <20260716070303.507066-10-irogers@google.com> Subject: [PATCH v4 09/14] perf stat: Extend CSV output linter to test advanced PMU and metric-only checks From: Ian Rogers To: irogers@google.com, acme@kernel.org, ctshao@google.com, namhyung@kernel.org Cc: adrian.hunter@intel.com, james.clark@linaro.org, jolsa@kernel.org, linux-kernel@vger.kernel.org, linux-perf-users@vger.kernel.org, mingo@redhat.com, peterz@infradead.org Content-Type: text/plain; charset="UTF-8" This patch extends tools/perf/tests/shell/stat+csv_output.sh to run the advanced hardware PMU, topology-aware aggregation, and metric-only checks a second time under the --new CSV print flag: - check_per_cache_instance - check_per_cluster - check_metric_only This guarantees that CSV outputs produced by the decoupled printing callbacks are verified and column-valid under advanced aggregation modes and metric-only CSV row-column layouts. Signed-off-by: Ian Rogers Assisted-by: Antigravity:gemini-3.5-flash Acked-by: Chun-Tse Shao --- tools/perf/tests/shell/stat+csv_output.sh | 3 +++ 1 file changed, 3 insertions(+) diff --git a/tools/perf/tests/shell/stat+csv_output.sh b/tools/perf/tests/shell/stat+csv_output.sh index e4153a03d716..c48d9e2b6429 100755 --- a/tools/perf/tests/shell/stat+csv_output.sh +++ b/tools/perf/tests/shell/stat+csv_output.sh @@ -102,7 +102,10 @@ then check_per_core "CSV (New API)" "$perf_cmd" check_per_die "CSV (New API)" "$perf_cmd" check_per_socket "CSV (New API)" "$perf_cmd" + check_per_cache_instance "CSV (New API)" "$perf_cmd" + check_per_cluster "CSV (New API)" "$perf_cmd" fi +check_metric_only "CSV (New API)" "$perf_cmd" cleanup exit 0 -- 2.55.0.141.g00534a21ce-goog