From nobody Wed Oct 8 05:57:59 2025 Received: from galois.linutronix.de (Galois.linutronix.de [193.142.43.55]) (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 208E527935C; Tue, 1 Jul 2025 13:59:16 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=193.142.43.55 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1751378358; cv=none; b=Q8l46to+3pasGT40rwHSnzWd/kmvYw6yeZ702YhnCe1qVFmoqVmf/D9ARlcxvsak5g90GAptkAQ3aW1RpCxdD76tKF+QIh2v9UNgTolf25swwoMv5ixzavq4WupYpt17r0DgOwxC6cQ9z+EqS6Hv8e8/5beZaeEJ1CNYdwiSkwA= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1751378358; c=relaxed/simple; bh=hMOqvR/Yc65WBvmajTl/+Rd8ycl+uMG027OZLfPxOmE=; h=Date:From:To:Subject:Cc:In-Reply-To:References:MIME-Version: Message-ID:Content-Type; b=cJwi/C1CjldvMhONAnqwWGeZiJqhbvwURvj2XPDabKKEEAiskp5T5JFo4YHsU1180GPdNcuUMvkSz/jKOlcUSHnFBKenrPY5hGMenblHF2nTc45Drzzshko3PIHpdM6JZmzd5eiyN0AXFnOCpVXgp/mZvisUPMuCczJw0WRLm4E= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linutronix.de; spf=pass smtp.mailfrom=linutronix.de; dkim=pass (2048-bit key) header.d=linutronix.de header.i=@linutronix.de header.b=YsfgCQWS; dkim=permerror (0-bit key) header.d=linutronix.de header.i=@linutronix.de header.b=o1jxJpdu; arc=none smtp.client-ip=193.142.43.55 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linutronix.de Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linutronix.de Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linutronix.de header.i=@linutronix.de header.b="YsfgCQWS"; dkim=permerror (0-bit key) header.d=linutronix.de header.i=@linutronix.de header.b="o1jxJpdu" Date: Tue, 01 Jul 2025 13:59:14 -0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020; t=1751378355; h=from:from:sender:sender:reply-to:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=LFZ1wNVNadzQBNchdLo7SzYRU3dwfBraIy+yDsNLVXo=; b=YsfgCQWSpEhGaZmCwRQiJDmKh9po++6ZaT7rSScJ2qqGhdUUImW0UfKYfNVW2GTcy7pNsW wWSoyXPQkR1IyJGVsfX9uESP7Pb4zbJ6kVuXmTGatlEG617KF863yodrCZKlBcxBKDDheD /IwBsWgDYm+wLni/IzkL2tJrgKjWltSVapzU/AjAC3PkHsBaYzCTpTyjNoFx3okZxMb5gC nL35fOqk7r3B3WgCh7g1fgtY+dpzfp1k98co3i7+Am3WsVajbxwkjZ2gIhsAqBsg2zJmDb GzSFBukzvnUG+lBOAmE6dQqDJQKqGoy/ItJSQOR+YoPUZ8ML6bv8PuN/tWnywA== DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020e; t=1751378355; h=from:from:sender:sender:reply-to:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=LFZ1wNVNadzQBNchdLo7SzYRU3dwfBraIy+yDsNLVXo=; b=o1jxJpduenqpisH4Ofms0xG51FR1sU/8ewVm8utS6rfnxR8Pipi1t9a/vNqhG9oE0fnAag O6uy0MOoZ3jqwLAQ== From: tip-bot2 for Thomas =?utf-8?q?Wei=C3=9Fschuh?= Sender: tip-bot2@linutronix.de Reply-to: linux-kernel@vger.kernel.org To: linux-tip-commits@vger.kernel.org Subject: [tip: timers/vdso] selftests: vDSO: vdso_test_getrandom: Always print TAP header Cc: thomas.weissschuh@linutronix.de, Thomas Gleixner , Muhammad Usama Anjum , x86@kernel.org, linux-kernel@vger.kernel.org In-Reply-To: <20250611-selftests-vdso-fixes-v3-8-e62e37a6bcf5@linutronix.de> References: <20250611-selftests-vdso-fixes-v3-8-e62e37a6bcf5@linutronix.de> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Message-ID: <175137835415.406.17786155179703712391.tip-bot2@tip-bot2> Robot-ID: Robot-Unsubscribe: Contact to get blacklisted from these emails Precedence: bulk Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable The following commit has been merged into the timers/vdso branch of tip: Commit-ID: 1158220b24674edaf885433153deb4f0e5c7d331 Gitweb: https://git.kernel.org/tip/1158220b24674edaf885433153deb4f0e= 5c7d331 Author: Thomas Wei=C3=9Fschuh AuthorDate: Wed, 11 Jun 2025 12:33:58 +02:00 Committer: Thomas Gleixner CommitterDate: Tue, 01 Jul 2025 15:50:42 +02:00 selftests: vDSO: vdso_test_getrandom: Always print TAP header The TAP specification requires that the output begins with a header line. If vgetrandom_init() fails and skips the test, that header line is missing. Call vgetrandom_init() after ksft_print_header(). Signed-off-by: Thomas Wei=C3=9Fschuh Signed-off-by: Thomas Gleixner Reviewed-by: Muhammad Usama Anjum Link: https://lore.kernel.org/all/20250611-selftests-vdso-fixes-v3-8-e62e37= a6bcf5@linutronix.de --- tools/testing/selftests/vDSO/vdso_test_getrandom.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/tools/testing/selftests/vDSO/vdso_test_getrandom.c b/tools/tes= ting/selftests/vDSO/vdso_test_getrandom.c index 389ead4..dd11325 100644 --- a/tools/testing/selftests/vDSO/vdso_test_getrandom.c +++ b/tools/testing/selftests/vDSO/vdso_test_getrandom.c @@ -242,6 +242,7 @@ static void kselftest(void) pid_t child; =20 ksft_print_header(); + vgetrandom_init(); ksft_set_plan(2); =20 for (size_t i =3D 0; i < 1000; ++i) { @@ -295,8 +296,6 @@ static void usage(const char *argv0) =20 int main(int argc, char *argv[]) { - vgetrandom_init(); - if (argc =3D=3D 1) { kselftest(); return 0; @@ -306,6 +305,9 @@ int main(int argc, char *argv[]) usage(argv[0]); return 1; } + + vgetrandom_init(); + if (!strcmp(argv[1], "bench-single")) bench_single(); else if (!strcmp(argv[1], "bench-multi"))