From nobody Fri Jun 19 23:20:50 2026 Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id D29823C4561; Mon, 20 Apr 2026 19:30:48 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1776713448; cv=none; b=nrjOw9Cp1ZbOK/f/zlFbDUVnIaz46y8qpwpahzlLwajcauba18/dGqCAUSDfWVKhMzAWKIFInXX6lIYY0tDj7WdWrICFE4/miYDtkbVQFcyo2Y1Grt18BtFSP2D35/9kx1HZh+ZZtZb3V+1v/AfXmMw7if3irWd8CH9HuMeo1FI= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1776713448; c=relaxed/simple; bh=EzkrBWV7mo4RuGZ2Otih5js1m7BD0KaWPQdKFp2cNwo=; h=Message-ID:Date:From:To:Cc:Subject:References:MIME-Version: Content-Type; b=VclhOXGM7GsLul1h091bZUQkKxj3XQcnCFurVGmzno3PFkD31oBWtg0seNKJZkInzCFh1EWSEo4HK4Af7X6rvN+xpqMrYTwxxqnujizdAbvQqGwTFfkYj2YVUjTiyX8gIyIu12GOUur010Te6eKfcK7cYCU+4QMSs4fBFkZ6vrQ= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=h+E2JdQd; arc=none smtp.client-ip=10.30.226.201 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="h+E2JdQd" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 9CFDFC2BCB4; Mon, 20 Apr 2026 19:30:48 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1776713448; bh=EzkrBWV7mo4RuGZ2Otih5js1m7BD0KaWPQdKFp2cNwo=; h=Date:From:To:Cc:Subject:References:From; b=h+E2JdQdLjtcTlNMgRluHKjQoBg2IhjctsS5VqxOmCQxRNfLBh+Rn6AQa35bPycAk GxqmPeA3wkvbBrv4OgOxCW5ozShzWvt8OyVANYqWlXu/EFMWdH7d3M5mQ7aUWOkV0a 7lncNtIm5aSijzH8FzX/xsNYS6f8EDSGgX/dy/xTsnFE9MX8qwMeulJ+CFtkaf4/a2 xAV9qv7cqiwApmcvAUVfRBaTIyezeg3po0/q4hRHDRXB7t/ONb9l6WuCHh9UtMNe0t 25cJbl/OPGXGXnWWuVUNZaUjF+EeOi2Ocw2/vyJrd1wOSwhF5h+4RNWDt/TwG8B7hW xICjaPQ10Orwg== Received: from rostedt by gandalf with local (Exim 4.99.1) (envelope-from ) id 1wEuMD-00000006vwl-0Vw2; Mon, 20 Apr 2026 15:32:33 -0400 Message-ID: <20260420193232.981751367@kernel.org> User-Agent: quilt/0.69 Date: Mon, 20 Apr 2026 15:32:04 -0400 From: Steven Rostedt To: linux-kernel@vger.kernel.org Cc: "John Warthog9 Hawley" , stable@vger.kernel.org Subject: [for-linus][PATCH 1/2] ktest: Fix the month in the name of the failure directory References: <20260420193203.993782513@kernel.org> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" From: Steven Rostedt The Perl localtime() function returns the month starting at 0 not 1. This caused the date produced to create the directory for saving files of a failed run to have the month off by one. machine-test-useconfig-fail-20260314073628 The above happened in April, not March. The correct name should have been: machine-test-useconfig-fail-20260414073628 This was somewhat confusing. Cc: stable@vger.kernel.org Cc: John 'Warthog9' Hawley Link: https://patch.msgid.link/20260420142426.33ad0293@fedora Fixes: 7faafbd69639b ("ktest: Add open and close console and start stop mon= itor") Signed-off-by: Steven Rostedt --- tools/testing/ktest/ktest.pl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/testing/ktest/ktest.pl b/tools/testing/ktest/ktest.pl index 112f9ca2444b..dd55eea15070 100755 --- a/tools/testing/ktest/ktest.pl +++ b/tools/testing/ktest/ktest.pl @@ -1855,7 +1855,7 @@ sub save_logs { my ($result, $basedir) =3D @_; my @t =3D localtime; my $date =3D sprintf "%04d%02d%02d%02d%02d%02d", - 1900+$t[5],$t[4],$t[3],$t[2],$t[1],$t[0]; + 1900+$t[5],$t[4]+1,$t[3],$t[2],$t[1],$t[0]; =20 my $type =3D $build_type; if ($type =3D~ /useconfig/) { --=20 2.51.0 From nobody Fri Jun 19 23:20:50 2026 Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 347FD3C553B for ; Mon, 20 Apr 2026 19:30:49 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1776713449; cv=none; b=IemxVdMek/oTkoGK37GDKnavAgngT+Z4x+dDdZkcFsiZ9nAIkAChrvIEkATVrm6BZghykD7C0Y3FFftZThdtzLMxMPXXAj6uxOMUhF6Qco8Pr2B5fgxX93VEnRWoi4mQt9ODdgwh3GmwfP1mQmlXOKvIM5aSbJ1pjtbJYShVWCo= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1776713449; c=relaxed/simple; bh=v2K417AxR/NARBRPvELUqVWI6PPxL2hcLb3QeXVHBNY=; h=Message-ID:Date:From:To:Cc:Subject:References:MIME-Version: Content-Type; b=N1LxBklD2ueXARjMQrPilARzGNbuyGU8sxfLqr0U0KnbY2Nb2IjZ+9kvUeriI6m1ExEPHWveOzjh1rBS+eIuckGLLz+XTs8IpB/x8StVfTzn3W8mhz3r7/IGPce0rodH5CO+w0fYv0HMn6x019GrWJgdpVgzBEft4lHbD2YGDQw= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=b3ad9gZe; arc=none smtp.client-ip=10.30.226.201 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="b3ad9gZe" Received: by smtp.kernel.org (Postfix) with ESMTPSA id D91A8C2BCB7; Mon, 20 Apr 2026 19:30:48 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1776713448; bh=v2K417AxR/NARBRPvELUqVWI6PPxL2hcLb3QeXVHBNY=; h=Date:From:To:Cc:Subject:References:From; b=b3ad9gZeaezZ8tCH49gqG5UhXceQ3L2wG0ydq1uPHy0MgYGzteZYSiOnpbWDnxEWV DOwY4doj57pcNB+B5rE+B1INXv0TSic/1I8vIJLDslP2Mgj9FgLhcmLsRDuLsrk9Ki Mz89jpHt6hDCFWLO6ZBQskDZryZfftJweKuUsoopYdCJpTOaUEqNnTn+v7GKSeO0x7 5Zo0lnrWBsbsN1Ot16Fb75bHgQDHjsLoSrwMxVTQ+TaqhOSy8YVvZpnKkMJHu/4rCR NOdIRY5G6+kNYpzIAfhcV4zFUH6c0ki1Ub0PWBN3gOGDakVvMlbCimbjokvPgorQfO Dvn9q3OQgRcaw== Received: from rostedt by gandalf with local (Exim 4.99.1) (envelope-from ) id 1wEuMD-00000006vxG-1BqX; Mon, 20 Apr 2026 15:32:33 -0400 Message-ID: <20260420193233.141675403@kernel.org> User-Agent: quilt/0.69 Date: Mon, 20 Apr 2026 15:32:05 -0400 From: Steven Rostedt To: linux-kernel@vger.kernel.org Cc: "John Warthog9 Hawley" Subject: [for-linus][PATCH 2/2] ktest: Add logfile to failure directory References: <20260420193203.993782513@kernel.org> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" From: Steven Rostedt The logfile contains a lot of useful information about the tests being run. Add it to the stored failure directory when the test fails. Cc: John 'Warthog9' Hawley Link: https://patch.msgid.link/20260420142315.7bbc3624@fedora Signed-off-by: Steven Rostedt --- tools/testing/ktest/ktest.pl | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/tools/testing/ktest/ktest.pl b/tools/testing/ktest/ktest.pl index dd55eea15070..f94ed2e98887 100755 --- a/tools/testing/ktest/ktest.pl +++ b/tools/testing/ktest/ktest.pl @@ -1878,6 +1878,12 @@ sub save_logs { "testlog" =3D> $testlog, ); =20 + if (defined($opt{"LOG_FILE"})) { + if (-f $opt{"LOG_FILE"}) { + cp $opt{"LOG_FILE"}, "$dir/logfile"; + } + } + while (my ($name, $source) =3D each(%files)) { if (-f "$source") { cp "$source", "$dir/$name" or --=20 2.51.0