From nobody Tue Sep 29 06:08:44 2026 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 9213A310784; Tue, 11 Aug 2026 16:14:03 +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=1786464845; cv=none; b=j4x0PL3CYe4AZI1LgnFu349nqoNlSYpfoppSTzUzO+pMJ2oQS5qjC2i0faUv89EIvexb+28xtjttNdYMoRuxHJvDtaElwdTn8ZQWfF4Hddfdy7NTnVMB6YUuQDKfsVbGlnB5TAFSlr+a/Ch83YaYKDi67BIVG07A3RIRa0qeO+M= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1786464845; c=relaxed/simple; bh=XQJH2lygr7VSOOP8aPN7tMfCdZ47e+Z7mJrcWtOmTAo=; h=Date:From:To:Subject:Cc:In-Reply-To:References:MIME-Version: Message-ID:Content-Type; b=dCFzpeEP8GsyxS6NOXPtaseBGijAfMVXytbewjIuCy4kWZ2pL6yqBCW33TG4zhxjArPoiVmLOOd3bFKr8luXLEoqndhP53HS2e94vJaMqGEh1RFCAzTDNHV3qq8DgQ4l0BWi48Opt1UiZPbSZTQ2lwNkZN8yj98ba8Tk5g8/9Oc= 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=rtZhSWwo; dkim=permerror (0-bit key) header.d=linutronix.de header.i=@linutronix.de header.b=UXIk3OsZ; 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="rtZhSWwo"; dkim=permerror (0-bit key) header.d=linutronix.de header.i=@linutronix.de header.b="UXIk3OsZ" Date: Tue, 11 Aug 2026 16:14:00 -0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020; t=1786464842; 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=LxJlAW9j7TTtxtr2qTuyq+BjPLA4LLlLlW7heOWTBNI=; b=rtZhSWwodWfq0bq/qsG+sRubpD9rTEzN4G0I7BQ6Bi8RwEznG0A0aaGckMH+BpkeA4zu+e ujuAE4pVk0ZLRVduyDk/cUIaK9lEkYmMeT/eIeo6V/gfAXuy4umOplWpEoXjWBuNzzA+e/ Jq4+7C/f+sXBUhrA4opIG722tFn4utTrLFvNjQBAlUnzb1CyaxR3N+M3p91zomBVp/dOaI 52m02LytnwDtZKYn4AD/lKoe+c17WKmc7AzaRBo5BWzYhddIiXbqv7x/In2Qe6wYbtH4ko o+S80cjtT9xR/r+lKKw+frAD72A/yQfpMOMjk6I6Xc1X9CcmZe/lZsgncRPHzg== DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020e; t=1786464842; 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=LxJlAW9j7TTtxtr2qTuyq+BjPLA4LLlLlW7heOWTBNI=; b=UXIk3OsZKYDHtFx4/9yww3SeXGw4Jzj1qLg8+o6k3kHS6IyD0yMmHUMOd42iSRNa9JlRkI 5sOaUkv3ig885iCA== From: tip-bot2 for Thomas =?utf-8?q?Wei=C3=9Fschuh_=28Schneider_Electric=29?= Sender: tip-bot2@linutronix.de Reply-to: linux-kernel@vger.kernel.org To: linux-tip-commits@vger.kernel.org Subject: [tip: timers/core] selftests: timers: nsleep-lat: Reuse kselftest error numbers Cc: thomas.weissschuh@linutronix.de, Thomas Gleixner , John Stultz , x86@kernel.org, linux-kernel@vger.kernel.org In-Reply-To: <20260803-auxclock-nanosleep-prep-v2-16-910cbd485390@linutronix.de> References: <20260803-auxclock-nanosleep-prep-v2-16-910cbd485390@linutronix.de> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Message-ID: <178646484063.442315.7633131815689012961.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/core branch of tip: Commit-ID: 0f474ee80c7ba1cab784c12a12232c53db5ad1fb Gitweb: https://git.kernel.org/tip/0f474ee80c7ba1cab784c12a12232c53d= b5ad1fb Author: Thomas Wei=C3=9Fschuh (Schneider Electric) AuthorDate: Mon, 03 Aug 2026 12:04:47 +02:00 Committer: Thomas Gleixner CommitterDate: Tue, 11 Aug 2026 18:11:21 +02:00 selftests: timers: nsleep-lat: Reuse kselftest error numbers The test currently defines its own custom error numbers. These mirror the semantics from the standard KFST_* constants. To make the code easier to read, use the standard result constants. Signed-off-by: Thomas Wei=C3=9Fschuh (Schneider Electric) Signed-off-by: Thomas Gleixner Acked-by: John Stultz Link: https://patch.msgid.link/20260803-auxclock-nanosleep-prep-v2-16-910cb= d485390@linutronix.de --- tools/testing/selftests/timers/nsleep-lat.c | 19 ++++++------------- 1 file changed, 6 insertions(+), 13 deletions(-) diff --git a/tools/testing/selftests/timers/nsleep-lat.c b/tools/testing/se= lftests/timers/nsleep-lat.c index af47c28..266ca0c 100644 --- a/tools/testing/selftests/timers/nsleep-lat.c +++ b/tools/testing/selftests/timers/nsleep-lat.c @@ -29,8 +29,6 @@ =20 #define UNRESONABLE_LATENCY (40 * NSEC_PER_MSEC) =20 -#define UNSUPPORTED 0xf00f - struct timespec timespec_add(struct timespec ts, unsigned long long ns) { ts.tv_nsec +=3D ns; @@ -60,9 +58,9 @@ int nanosleep_lat_test(int clockid, long long ns) target.tv_nsec =3D ns%NSEC_PER_SEC; =20 if (clock_gettime(clockid, &start)) - return UNSUPPORTED; + return KSFT_SKIP; if (clock_nanosleep(clockid, 0, &target, NULL)) - return UNSUPPORTED; + return KSFT_SKIP; =20 count =3D 10; =20 @@ -74,7 +72,7 @@ int nanosleep_lat_test(int clockid, long long ns) =20 if (((timespec_sub(start, end)/count)-ns) > UNRESONABLE_LATENCY) { ksft_print_msg("Large rel latency: %lld ns :", (timespec_sub(start, end)= /count)-ns); - return -1; + return KSFT_FAIL; } =20 /* Next check absolute latency */ @@ -88,10 +86,10 @@ int nanosleep_lat_test(int clockid, long long ns) =20 if (latency/count > UNRESONABLE_LATENCY) { ksft_print_msg("Large abs latency: %lld ns :", latency/count); - return -1; + return KSFT_FAIL; } =20 - return 0; + return KSFT_PASS; } =20 int main(int argc, char **argv) @@ -123,12 +121,7 @@ int main(int argc, char **argv) =20 } =20 - if (ret =3D=3D UNSUPPORTED) { - ksft_test_result_skip("%s\n", clock_name(clockid)); - } else { - ksft_test_result(ret >=3D 0, "%s\n", - clock_name(clockid)); - } + ksft_test_result_report(ret, "%s\n", clock_name(clockid)); } =20 ksft_finished();