From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-dl1-f73.google.com (mail-dl1-f73.google.com [74.125.82.73]) (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 9E0CD37E2EE for ; Fri, 22 May 2026 22:34:16 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=74.125.82.73 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1779489257; cv=none; b=t2sqMslGSDaQu1h/I3Z1zUBgiaGrfKXlpRLb2UjtPI6BqBTkfBxvfLPVILzbiea9MXeOK8FXsQ/bDS/9e6ZOqg6nuJAKC8MGm00dUg1IweSanfuSu6LwkJ/LrYobKxGSJDsrxVkxrbJ/O65xfqnt7zaWQs1HBsxeBobC3GwAcrU= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1779489257; c=relaxed/simple; bh=BI4TEobKkCnWm6fjmCNLDXLWLzD9tRE7a0S9TIuMpIY=; h=Date:In-Reply-To:Mime-Version:References:Message-ID:Subject:From: To:Content-Type; b=QAAAZqtlb8Y6DHabXHgUceREbBzd9vHy65EanA/oUD6LdST2mJWtvKudMwYEJPS8cFi0OwDesO3T726VWXa/u5tUcPgcK6coZeMtKPoFDCr/zGuEwEsJTjhzeU5swG4VJnVQafuzlhZxUFqZ/qzUZaf0M4BWedt7fQWNsz4ZX3I= 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=IMtjuhXu; arc=none smtp.client-ip=74.125.82.73 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="IMtjuhXu" Received: by mail-dl1-f73.google.com with SMTP id a92af1059eb24-135de949041so6534831c88.0 for ; Fri, 22 May 2026 15:34:16 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20251104; t=1779489256; x=1780094056; darn=vger.kernel.org; h=to:from:subject:message-id:references:mime-version:in-reply-to:date :from:to:cc:subject:date:message-id:reply-to; bh=FbuxZ66k165gjxfcqkOHiRnswir15qirhXLxfhhwE3Q=; b=IMtjuhXus0EGHkY2YWcbrK2oGyFNpquF9u+9fqHZANa7aodFFIg86MZunmoHAdCZJi qInPZCDESCh3dDycIgKcm3w4JypWnkhuqwTdqfLD70TfE2zb+Gj/BL6JvDTojBQjAu9n KrUb5ujRGU1v/dDXv3Xi1xT2iUDXX7bI525/ACfBiYj0Bzq91Y+D2HtyRd91rMTIVcDt yAWCjqy9BZt5D3pti+WRkRzoaK8gKVUTWvCyL+fkr+Vq4c0fAKsWuGIL6WdxZHSf6nIe Jyh2qk6h62zHNilnUOLGA+BTnoOZM68jQHNaMGD7VWwm81o2SZEl+aaDZsMEFcVVQ8Ug RETw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1779489256; x=1780094056; h=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=FbuxZ66k165gjxfcqkOHiRnswir15qirhXLxfhhwE3Q=; b=kzdZmWsIp1pqJqr2TPIaPx+5PzVY6NALueqMKQs0m15L9qgRQEwbYxLtOept7edt3R 7EMaL7OVQNG2Ga+wWKqyOY+wIJwsPSrv/Uo/84C5Gv6NLgMbRcBzpcRD3njhuBUfAquL o6AuoGZK0f0bdFrHvxQ6swZPeLFowQ4nMc7XTyo7zvJJjthbgRZWMFENeUk0PA2t+6Ub mOnpoGAXh2UL3EbGufn9Dtfvi94JPp84GDkucoN+BsNFpaEvO/+8n7ELlXu8Dprm+qUC j7gdhuKHbXXbEoUJlO45UBLhh3EMBzsN2AZ5RcNCJT7L5VwD1Ov0vp4p3ENErPCWGr/F uk+A== X-Forwarded-Encrypted: i=1; AFNElJ9284JZ3wsBlbfagmsmVm351+YUYr3Xu5vmhjgQTyofFA+O7KpO0vk1o4L1xLiPwBojb+NpfFTKk09+obE=@vger.kernel.org X-Gm-Message-State: AOJu0Yzes7NVD33meM/aHEGCwyK9QKG2uDh58VsY/iuPZRWx0nu8IX1u fApdUidNXfV5hMu2c/i7sQOa3Medj9tNv2rJEK/ESZo46/qmbEnbXUMwbVCTuTJts9Jq2dXN5oZ H3446aqxt/w== X-Received: from dlbsn12.prod.google.com ([2002:a05:7022:b90c:b0:135:cac1:fe63]) (user=irogers job=prod-delivery.src-stubby-dispatcher) by 2002:a05:7022:6197:b0:128:d375:f1d4 with SMTP id a92af1059eb24-1365fb403admr2032094c88.28.1779489255446; Fri, 22 May 2026 15:34:15 -0700 (PDT) Date: Fri, 22 May 2026 15:33:34 -0700 In-Reply-To: <20260522223342.2393553-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: <20260522223342.2393553-1-irogers@google.com> X-Mailer: git-send-email 2.54.0.794.g4f17f83d09-goog Message-ID: <20260522223342.2393553-7-irogers@google.com> Subject: [RFC PATCH v1 06/14] perf stat: Extend STD output linter to test metric-only checks From: Ian Rogers To: Peter Zijlstra , Ingo Molnar , Arnaldo Carvalho de Melo , Namhyung Kim , Jiri Olsa , Ian Rogers , Adrian Hunter , James Clark , linux-kernel@vger.kernel.org, linux-perf-users@vger.kernel.org Content-Type: text/plain; charset="UTF-8" This patch extends tools/perf/tests/shell/stat+std_output.sh to run the metric-only check under the --new print flag: - check_metric_only This guarantees that standard console metric-only outputs produced by the decoupled printing callbacks are formally validated by the test linter. Signed-off-by: Ian Rogers TAG=agy CONV=7c33d6a0-70a2-454a-82f7-4de2101a5b9c --- tools/perf/tests/shell/stat+std_output.sh | 1 + 1 file changed, 1 insertion(+) diff --git a/tools/perf/tests/shell/stat+std_output.sh b/tools/perf/tests/shell/stat+std_output.sh index e4e8e4238ae0..b48f0ebe2921 100755 --- a/tools/perf/tests/shell/stat+std_output.sh +++ b/tools/perf/tests/shell/stat+std_output.sh @@ -137,6 +137,7 @@ then check_per_cache_instance "STD (New API)" "$perf_cmd" check_per_cluster "STD (New API)" "$perf_cmd" fi +check_metric_only "STD (New API)" "$perf_cmd" cleanup exit 0 -- 2.54.0.794.g4f17f83d09-goog