From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-ot1-f48.google.com (mail-ot1-f48.google.com [209.85.210.48]) (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 BB201302CA3 for ; Fri, 28 Nov 2025 14:21:00 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.210.48 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1764339662; cv=none; b=he9bZVhvvMUnf3pti2A6P6vylGx+JgRL/m+7klYkG/V0yYuOWEwR5ZglH6/xU4U/TTfxf1r2rNeS0HJ3Rw5a9qcQIG8GzaDP/P2fVbn6lRSFpGBXVLv4+T49sExIIUOnqLj73V5jtbsnnPWm6c8PMRibnqCahlV6SPr4kkEbMmQ= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1764339662; c=relaxed/simple; bh=l5BDYV3IccAjXWnERTb8MoqCQSYX50xpCWmO7VFIcqA=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=uYgTEFvYvfow5iLrR5qUP/mSxi0aPS+2Dism6RmzOdwHVgGboasJCrwbW9GAc+Ctkca1RpTjlNxFWzd0h68qGDMw0LPXfzmzQksAH+4A1uc0XE2AdmLWMaobpW1YeUWxtp4kLGsYEt6REmv5XDPRw1UlQxTEQGn4uF4L0sEddOw= 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.48 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-f48.google.com with SMTP id 46e09a7af769-7c77fc7c11bso1408655a34.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=VI0GyQxLkpjElHqLlI4tF23MmVPc5UhmXxz8WJytpsc2wJLwjqJwpQaJ2CTX4IfdEA djbZmSn99v6gUvjm5MLJrt8g/y+o7oVFhxQvocDIFfwjuF+yL1ZCxly2250HmOaVVJmV j1JSVaeWTt6YdTuIRJwpDegELRIGyb4Zmw99KlGc1G0r1Vss099jovxZ/U8RNFPG+K8r TW8ev154cguNA9EDdH/WkCU92dlcQLnkb/MLpPh42Uur8cK4L501+GJn5v4CrhwdhqAc 6qFzDU+cr7V/AWu/UyHDf0w4UmZlDeJDNipQPln3x0KD76bkFcLFDN12data19qJW3KH dOPg== X-Gm-Message-State: AOJu0YxPTPB6qsdIlE++UfJPrudjor7GD///Srb/eQDT7eR01vyfd9c6 SNxryk7Sa5FX29o+PWDTED7nBTolHc5KK1WMOrc5MQnKYyvAXijpOmly X-Gm-Gg: ASbGncsrLUigjuxPEIeVblx7ERnNamAujOg69/ob2LR9xT0ZIs8MIMx6YVdKbnXOQBK VO+kF34bqkc3Hbu/qtB1gCADgiHSMmiS+/AQXppQzEdUt5GPIZnHyGkrpruXbhYKokM3B3OrDf5 WT2wkUB0fWseOOtSLFD90sXhBIWMhvCslbKUT8dHcSiqzrlxEgfeBJ0SfzPPQ6xtWvLj2xZetV4 DHpp7hif/pYX+E8/TXuKmplSDzL5gb18D82gwjy8w+okoaTaXAxXYGiKfaabm0L9NVwiemuh92S 68Spma/wLfvUM8x80S3AkOqktkLNnIj3iKJlJ7g0A5RBY2DKIsxS/aUPv1cWecnocE2eJ/wnqUc JPakiB0ToaCjM02Iw54VT8iwALF636fK+ElEpRwRs4L7vmatcA5tlLGhGvd768BPL5yLItKuPZX N0EKAKybdhGYc0YQ== 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: netdev@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit 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 --- 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}" } -- 2.47.3