🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: linux.kernel.netdev
Article #10071

Re: [PATCH net-next v3 1/4] selftests: net: py: add metric output

#10071
From: Björn Töpel
Date: Tue, 03 Nov 2026 04:54
15 lines
8232 bytes
Stanislav Fomichev <sdf.kernel@gmail.com> writes:

> Add ksft_metric() to report a numeric measurement of the current test case
> as JSON, right before the test result. Each metric states its goal: higher
> or lower for a performance metric, depending on which way is better, or
> zero for an error metric, so a consumer can tell wins from regressions.
>
> Values are plain numbers without a timestamp. A helper for other kinds of
> values, or a timestamp for values sampled over time, can be added when a
> test needs one.
>
> Signed-off-by: Stanislav Fomichev <sdf@fomichev.me>

Reviewed-by: Björn Töpel <bjorn@kernel.org>
Technical Details
Message-ID: <87a4nq4irl.fsf@all.your.base.are.belong.to.us>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!usenet.network!.POSTED!vger.kernel.org!netdev+bounces-355218-linux-kernel-netdev=dewy.ru
References: <20261102190827.989117-1-sdf@fomichev.me> <20261102190827.989117-2-sdf@fomichev.me>

Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!usenet.network!.POSTED!vger.kernel.org!netdev+bounces-355218-linux-kernel-netdev=dewy.ru
From: bjorn@kernel.org (Björn Töpel)
Newsgroups: linux.kernel.netdev
Subject: Re: [PATCH net-next v3 1/4] selftests: net: py: add metric output
Date: Tue, 03 Nov 2026 05:54:22 +0100
Organization: Usenet Network
Message-ID: <87a4nq4irl.fsf@all.your.base.are.belong.to.us>
References: <20261102190827.989117-1-sdf@fomichev.me>
 <20261102190827.989117-2-sdf@fomichev.me>
MIME-Version: 1.0
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: quoted-printable
Injection-Info: usenet.network;
	logging-data="3098044"; mail-complaints-to="abuse@usenet.network"
Cancel-Lock: sha1:XOCLyEELdjhP9bk9ql+wJKaZvBs= sha256:PWnY/c6t8Moi83N4WkZgawKXSdxeVjrJ4pL8bysAWLk=
	sha1:Hj2fu53ZW4agz4P2C6xKEqTHmSI= sha256:qIETd//nNeObppmtG3IF/1bDMbjMbBmBkjYzReX8xwU=
List-ID: <netdev.vger.kernel.org>
X-Mailpost-Empty-Hdrs: X-Spam-Level
X-Received: from localhost (localhost [127.0.0.1])
	by mail.dewy.ru (Postfix) with ESMTP id 9967411273D; Tue,  3 Nov 2026 07:56:10 +0300 (MSK)
X-Virus-Scanned: Debian amavisd-new at usenet.network
X-Spam-Flag: NO
X-Spam-Score: -3.401
X-Spam-Status: No, score=-3.401 tagged_above=-9999 required=6.31
	tests=[DCC_REPUT_70_89=0.1, DKIMWL_WL_HIGH=-0.001, DKIM_SIGNED=0.1,
	DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1,
	MAILING_LIST_MULTI=-1, RCVD_IN_DNSWL_MED=-2.3, SPF_HELO_NONE=0.001,
	SPF_PASS=-0.001] autolearn=ham autolearn_force=no
X-Authentication-Results: mail.dewy.ru (amavisd-new); dkim=pass (2048-bit key)
	header.d=kernel.org
X-Received: from mail.dewy.ru ([127.0.0.1])
	by localhost (mail.dewy.ru [127.0.0.1]) (amavisd-new, port 10024)
	with ESMTP id OTI_JuX9aRdj;
	Tue,  3 Nov 2026 07:56:04 +0300 (MSK)
X-Received-SPF: Pass (mailfrom) identity=mailfrom; client-ip=172.234.253.10; helo=sea.lore.kernel.org; envelope-from=netdev+bounces-355218-linux-kernel-netdev=dewy.ru@vger.kernel.org; receiver=<UNKNOWN> 
X-Authentication-Results: OpenDMARC; dmarc=pass (p=quarantine dis=none) header.from=kernel.org
X-Received: from sea.lore.kernel.org (sea.lore.kernel.org [172.234.253.10])
	by mail.dewy.ru (Postfix) with ESMTPS id 9FB11112700; Tue,  3 Nov 2026 07:55:54 +0300 (MSK)
X-Received: from smtp.subspace.kernel.org (conduit.subspace.kernel.org [100.77.114.92])
	by sea.lore.kernel.org (Postfix) with ESMTP id 8878E20ABE; Tue,  3 Nov 2026 04:54:24 +0000 (UTC)
X-Authentication-Results: smtp.subspace.kernel.org; arc=pass header.oldest-pass=0 smtp.remote-ip=127.0.0.1
X-ARC-Seal: i=2; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=pass;
	t=1793681664;
	b=on8Jyp/hKU8g2MTazWqcltqrM+C7fCLhcUor+rKkOlJddxYtK1+BmPWaWh+w9QSGOqgl
	 MUplj/m039FHt8+pTuAnD4ai2IO3afOApuMXzc7AJuP3Q065+TAzU5ZCGbHDfSFiVZHLK
	 EWlC8nUISFh+ylLJKfsAvym3NQW9bu4vgxtAKiv1r9+CqaFY2QqQbyxPIxbAtzQJwMkTJ
	 QKNa1I9/X3/zfYk3xFVZQyxZ9hgDzLYDwGI3mJrEJYJ5BzADQRbYmmZlktaBHq4BEpeUy
	 gyTce/isU98Dft3hpMIgicDoi8crVy8cZrI4xvnQrGDX5w4vAOaWtURb1wZ7X08Sc5Q==
X-ARC-Message-Signature: i=2; d=subspace.kernel.org; s=arc20261015;
	a=rsa-sha256; c=relaxed/relaxed; t=1793681664;
	h=X-Original-To:Received:Received:DKIM-Signature:From:To:Cc:Subject:
	 In-Reply-To:References:Date:Message-ID:X-Mailing-List:List-Id:
	 List-Post:List-Help:List-Subscribe:List-Unsubscribe:List-Owner:
	 Precedence:MIME-Version:Content-Type:Content-Transfer-Encoding;
	bh=aYu5tL+PuCH4/RQGXsSk93otf+EFvcsy01l4zpCxadM=;
	b=vkv3riIgafpgFeJza9Ihg1ljrvUjKeV+BGfjfuhwyVZXrTYj3MvP6NOhnAJzbKXCYtPW
	 d3fex7+Hij0pcOuMz0HQiGJjMsRNxaOu0n0Sjk8RRbI8azAgdSFsQXuTfAEF2pq6oP75E
	 LPYkwHoGfiYdBd5BxGs9EGbqd7f2NkEWxymKnXQkArv417Q/hz1iomFUqIfVLa+DXv6kE
	 q/2r8XtHVsfdQPuK1Yaf2yPVWNYcZjmse3Vzh9Qmo/ypNgYoc8LyVrA8aqM0Y4Z0H4pkz
	 FYMMaVoGJSL6F9559Vcujm4WXLzeok8ULuOHYB6RfGXHF15dOlqo37DRz7eTEwrFS0w==
X-ARC-Authentication-Results: i=2; smtp.subspace.kernel.org; 
	dkim=pass header.d=kernel.org header.i=@kernel.org header.a=rsa-sha256 header.s=k20260515 header.b=VuadTE6M;
	arc=pass header.oldest-pass=0 smtp.remote-ip=127.0.0.1
X-Received: from localhost.localdomain (localhost [127.0.0.1])
	by smtp.subspace.kernel.org (Postfix) with ESMTP id 5F36B606A32E;
	Tue,  3 Nov 2026 04:54:24 +0000 (UTC)
X-Authentication-Results: smtp.subspace.kernel.org;
	dkim=pass (2048-bit key, unprotected) header.d=kernel.org header.i=@kernel.org header.a=rsa-sha256 header.s=k20260515 header.b=VuadTE6M
X-Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=100.103.45.18
X-ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none;
	t=1793681663;
	b=odtsIYMpbPIXYTqsQyLx+yJOvuUfbm1FhV3GG4Bni2tM6UMqOqSOGDh/JFrjmNTSecdz
	 QGtmkoFSHy4BnD2U7cOys4NTC7OXlbIfx7AD6sWF45braHMF983oimxch8GIYKUWblnQA
	 VOJug9j0yNwTylFXo0pZ8dydheQRS87qWHXKhUxB2SpkxcZ1eH8e1jlGk874JxgQKdFdh
	 ip5dAHrqen9dnDZEE4+gk5nCFry/2/g/x5YC/9GDxQgJL205FzkjLGs3Z9MZlIiBA+iyA
	 J4AxsrI5U+y/tMKxnK81fb2pdjOqeWovEfxEVgS+ClUn98vhy+ckGoREXS2yxk7O2dw==
X-ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015;
	a=rsa-sha256; c=relaxed/relaxed; t=1793681663;
	h=Received:DKIM-Signature:From:To:Cc:Subject:In-Reply-To:References:
	 Date:Message-ID:MIME-Version:Content-Type:Content-Transfer-Encoding;
	bh=aYu5tL+PuCH4/RQGXsSk93otf+EFvcsy01l4zpCxadM=;
	b=U+EiMTgsC2tdPxcbJxvPCYXAIuXdmgK3MtGxyoj3+SQEg15pOTwcQgtDtSElulE8QDI9
	 TcwxXBHXNzrYYjdajftYdjVS3w6WXS0hYoFsmaUfG1v6FXeFTHcu3W9W1EXb6lMe9CMS+
	 +QNbgwlaquM+FzucTRkSD9W/FE67BBMdko6dyNTWAQMdUJlZ8JlhaIPMmHms7lRq4fSV4
	 wTBeFkQKSslj7ozobsW4j3hpayVDSDVi+hT6+zpFHTnyJt/0UEv8EuZlQ0owIvmSEgfxy
	 VxegWdPL/WXvAhYeHE9C4RQdKHHxL6afFVapibhQNny2cqm8xD/eqEv2Eh7eLzQ7n+g==
X-ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; 
	dkim=pass header.d=kernel.org header.i=@kernel.org header.a=rsa-sha256 header.s=k20260515 header.b=VuadTE6M;
	arc=none smtp.remote-ip=100.103.45.18
X-Received: from smtp.kernel.org (quasi.space.kernel.org [100.103.45.18])
	(using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)
	 key-exchange X25519 server-signature ECDSA (prime256v1))
	(No client certificate requested)
	by smtp.subspace.kernel.org (Postfix) with ESMTPS id 3F1F1606A324
	for <netdev@vger.kernel.org>; Tue,  3 Nov 2026 04:54:22 +0000 (UTC)
X-Received: by smtp.kernel.org (Postfix) with ESMTPSA id 994521F000C1;
	Tue,  3 Nov 2026 04:54:22 +0000 (UTC)
X-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kernel.org;
	s=k20260515; t=1793681662;
	bh=aYu5tL+PuCH4/RQGXsSk93otf+EFvcsy01l4zpCxadM=;
	h=From:To:Cc:Subject:In-Reply-To:References:Date;
	b=VuadTE6MoCKOx+0oPsRFSnG2rej0fmzfB+7r5UCHDy+qPvps5uuZbzwvYrhKQcHa6
	 Kg4XCJyQ3UkyVvCc+euGzdVeZL5MWKR9SCTNO2uGH2IeJyzvkPSyfUT0eSBK20Mqwr
	 U3bQRwWf082m66vmwAfg+eRRInA2muDoRf4yM2cEHZpTZKxInK/UFR5CuE8e5Sctp/
	 g3Nl2y+kW1xpiW/VdyBv2JGE2KooBReiDKUK8Ayb3QCrcGY/NH31vq1Tu0/VvbkeiK
	 5C29f08XNVnQ59i7OOkHACcgGhbG/48jZJfE1ZxdNrY2GFRiuiago4XI93AoMIArof
	 +DdtHlmnplFXg==
X-Cc: davem@davemloft.net, edumazet@google.com, kuba@kernel.org,
 pabeni@redhat.com
X-In-Reply-To: <20261102190827.989117-2-sdf@fomichev.me>
X-Mailing-List: netdev@vger.kernel.org
X-List-Post: <mailto:netdev@vger.kernel.org>
X-List-Help: <mailto:netdev+help@vger.kernel.org>
X-List-Subscribe: <mailto:netdev+subscribe@vger.kernel.org>
X-List-Unsubscribe: <mailto:netdev+unsubscribe@vger.kernel.org>
X-List-Owner: <mailto:netdev+owner@vger.kernel.org>
X-Precedence: list