From nobody Mon Dec 1 23:03:59 2025 Received: from mail-ot1-f50.google.com (mail-ot1-f50.google.com [209.85.210.50]) (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 C50312459FD for ; Fri, 28 Nov 2025 14:21:00 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.210.50 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1764339663; cv=none; b=azCZGjfPczfWpdLDipNr3isqgwm3yOIksVhW6NW5w8Hppuset0LhKjAxEh4SYMtSRS6Y0hr0qwL+UWR7KxGogj8BZ7lb4Jm7lEzBHuJXoqllv7LoT9uLQ2Nkf9Z0KhWZ3AyEWIbh6Ayd9Oivy12/a6u0AUVvCED3uFKqfnXwYzg= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1764339663; c=relaxed/simple; bh=l5BDYV3IccAjXWnERTb8MoqCQSYX50xpCWmO7VFIcqA=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=rlb4xAHgB3tf65ckrKu3oALHqVwEYpQB7y4tCZPLo3AEY5+mOPYmaf0i38ekOrR1jd37wLvmWCFQ6BD+eH12pvwSqK1N4SsiUx1OtgNbPxR2mmLnO48USYkptbvijtGCQKJt3ujnl5wiMxFwpMGBrgGaKlsDxzMw1jtBrcEgGys= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=debian.org; spf=pass smtp.mailfrom=gmail.com; arc=none smtp.client-ip=209.85.210.50 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=debian.org Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=gmail.com Received: by mail-ot1-f50.google.com with SMTP id 46e09a7af769-7c77fc7c11bso1408657a34.1 for ; Fri, 28 Nov 2025 06:21:00 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1764339660; x=1764944460; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:subject:date:from:x-gm-gg:x-gm-message-state:from:to :cc:subject:date:message-id:reply-to; bh=45CbFMqcYO42MAEiVkhbYfNu1XqAKx1obOpQGrYaXm0=; b=S8K10H/4SSEmlI/DpW9xc59ADIj1PkcpoLopkqhAmTADQcnWp7b1jFA0UX6ZlueuUt 99Su0TfLYg8kjHWw5Sjek7ObGGRTKJd+fey31iX0wCRyEUm3QKvxDZgNg08IveY+WZ6W BsU/2xYe+AxHQziCvWvfBDJqLxLE2i4HnXKcHLl7LN0sfKLCxKAYTXh6NfPTC28b2Eqr DGGJvl5X3hr1s3ICdS6p6GB5ZsqtGgH1C4UCzZ6AjaUh6JgOR47QVy7A3uLnkH6//52j m2Heve4zvoqul9MjdC+dRohzJcoGp7w0z5wA0YCnMeWJEusBqM1q0nw08dAiSN2m/TwA WLBQ== X-Forwarded-Encrypted: i=1; AJvYcCVbMRh30aA8iIY0TwB8r88PQJT2ANmfhQjknrM/B42cVB8yM+vLX4mNPJS+GOcSA+Ij4FgcCvDnW8rs248=@vger.kernel.org X-Gm-Message-State: AOJu0Yx9MqYk+RMclGYrEQH5RWY9fVKELgW12OCuzWpOXpY1ePlMqs75 s9xy/bL++I2m0H5EmwWewyFAxWj0RZz609o481U3LKpurgOXtb6CoWIh X-Gm-Gg: ASbGncvdgpgndSRXNKrO+AX9G0BBbsfgWUQ+xER2GtAcgh0H1h1vwqY0nhGX3fOixso +1uVYRBdbqWCzQB41FUL97xUSc9pLfjmj2Zim9tdlY6F+LXf3XGREJl2DXoen7ykqTZf78rfImA o+piKQ8De8zvp0yj3YKJ5hj9tf4zE4GDnguWXKBaoDKIngCWQcuoaTOd8sw48uW7ipi4TJ3m1/n sVzD7UEfZaW81ZHEx1I0zMzmY70Ius7MLI04gT7H0a1FTDJfx3bXvBD10Ko0HKEt7FkEmGXKO0N 4eIwmxzMuG1WCXVgtRfO1/xc8auWh5UGZE09xYrwxdd1OTidvf6YmFBNlU1TmIXYvyow60c5iRo MNRoq9arzcefi/gwX6qkoXGYeGrSZNM4rAymIB0Qs8rBVRrgCIrdGc0kQZwiCDtJtBuO6NC4IwJ 4tZrwF57UbjcvXOQ== X-Google-Smtp-Source: AGHT+IEzB0fmoP2bk7BNz4KK7LqOyyEGrRZVUZxjqjd+26Lvgjym0892sx3oCpX5I9zgbNEQhbrK6w== X-Received: by 2002:a9d:738c:0:b0:7c6:d01f:591b with SMTP id 46e09a7af769-7c78eb15f9fmr12369680a34.13.1764339659731; Fri, 28 Nov 2025 06:20:59 -0800 (PST) Received: from localhost ([2a03:2880:10ff:40::]) by smtp.gmail.com with ESMTPSA id 46e09a7af769-7c90fe0f49esm1579149a34.22.2025.11.28.06.20.58 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 28 Nov 2025 06:20:58 -0800 (PST) From: Breno Leitao Date: Fri, 28 Nov 2025 06:20:48 -0800 Subject: [PATCH net-next 3/4] selftests/netconsole: Switch to configfs send_msg interface Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Message-Id: <20251128-netconsole_send_msg-v1-3-8cca4bbce9bc@debian.org> References: <20251128-netconsole_send_msg-v1-0-8cca4bbce9bc@debian.org> In-Reply-To: <20251128-netconsole_send_msg-v1-0-8cca4bbce9bc@debian.org> To: Breno Leitao , Andrew Lunn , "David S. Miller" , Eric Dumazet , Jakub Kicinski , Paolo Abeni , Shuah Khan , Simon Horman , Jonathan Corbet Cc: netdev@vger.kernel.org, linux-kernel@vger.kernel.org, linux-kselftest@vger.kernel.org, linux-doc@vger.kernel.org, gustavold@gmail.com, asantostc@gmail.com, calvin@wbinvd.org, kernel-team@meta.com X-Mailer: b4 0.15-dev-a6db3 X-Developer-Signature: v=1; a=openpgp-sha256; l=1273; i=leitao@debian.org; h=from:subject:message-id; bh=l5BDYV3IccAjXWnERTb8MoqCQSYX50xpCWmO7VFIcqA=; b=owEBbQKS/ZANAwAIATWjk5/8eHdtAcsmYgBpKa/FRW/67U+WfAFgUFVwZVdflUFfJRqi0ktFm ozlZltyLqeJAjMEAAEIAB0WIQSshTmm6PRnAspKQ5s1o5Of/Hh3bQUCaSmvxQAKCRA1o5Of/Hh3 beRHD/9sucB/RenAtgjyPz0c01Pjjs1qonmSFXA+Qo2wPXUjADkRgiRN8e+n7tecoQlgtkwo34a Jh/a58GexNgGEqc52t6je8Gm4qnrZXQDti8K1vuKGn1tZbtSlifvfZtwnKehE4N2cOOYrs5rEBl h7XM2EOpZMioSBxfBRBiNmOs7obYwvmmjF4R6ey/iDu9U9uYlJczdXzkfw9cWyWDvTqDMsQgG9q GrzPgydotvWYViFSZcmItclgyLyeomX9QRrg9LTGLqlLB7euY5tRwu5NFNZO5CLCA/Q/PiMmM4P SFK1LdsT9Mi4mZ5Etf97p4jyJPX9zc/C7lKPuuKTl1W4Zm9Y3dVuONVc4ohfLWcgVpktN0mXsDI l7eDH+1cnYGIjAP40cSOOHTlVCNuiV0NP8yLVqV38DggoGtAtY9pyqJ+evGVgrVWV44BsYDXdru OtSeTCfMfa9laDUgIlFwLZzf7+LO+QeyN50FD6VY/0khgn+acdh9f+utb3NS37lK+JVxe3qPrKN IR2U4V/awXjN/UDQFygcR39H85Fp5rSDJGoMGdnPzuZUnltlBLDmpFi286BkAjEdBIdzCqAfNNi Hk8wAA4v1np+MKZn5DxX1JRq4J9pxg9fPHfADw30G+c8Bq26V6S1rt2bajghy78YKavon21RH3h XK4wd908Tz1a1PQ== X-Developer-Key: i=leitao@debian.org; a=openpgp; fpr=AC8539A6E8F46702CA4A439B35A3939FFC78776D Update the netcons_sysdata test to use the configfs send_msg attribute for message injection instead of /dev/kmsg. This validates the new direct message sending functionality that bypasses the kernel's printk infrastructure. Only move this test to the new mechanism, given the traditional printk() flow continues to be default path, and the one that should be mostly tested. Signed-off-by: Breno Leitao Reviewed-by: Simon Horman --- tools/testing/selftests/drivers/net/netcons_sysdata.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/testing/selftests/drivers/net/netcons_sysdata.sh b/tools= /testing/selftests/drivers/net/netcons_sysdata.sh index baf69031089e..27df730dc8f3 100755 --- a/tools/testing/selftests/drivers/net/netcons_sysdata.sh +++ b/tools/testing/selftests/drivers/net/netcons_sysdata.sh @@ -195,7 +195,7 @@ function runtest { # Wait for socat to start and listen to the port. wait_local_port_listen "${NAMESPACE}" "${PORT}" udp # Send the message - taskset -c "${CPU}" echo "${MSG}: ${TARGET}" > /dev/kmsg + taskset -c "${CPU}" echo "${MSG}: ${TARGET}" > "$NETCONS_PATH"/send_msg # Wait until socat saves the file to disk busywait "${BUSYWAIT_TIMEOUT}" test -s "${OUTPUT_FILE}" } --=20 2.47.3