From nobody Tue Oct 7 21:01:00 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 9BD6E2D94B6; Mon, 7 Jul 2025 14:23:47 +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=1751898229; cv=none; b=erLtrvOzwucBt8kJ6ufrvOPIR55zew8bt3HB/xK+hlRLA0jsBZnlZOAQE+uj0rLZvaTqYfxevCvbjIWRup7eBunANq/8uuH1oOAKyv6nzCd16eD2L8izEkGFjnHQrjKlMs02uWCFuDDO9kNX5MlFWKyzM85VR9jdvIO/Cepdfbw= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1751898229; c=relaxed/simple; bh=202eE0zeDU7+HUUBg0x+87B7hcMlBCKZldbKn5GARlY=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=CcVggpTWFqBLxhGpobisVIuNga64RM9Or01JtOdNc/+szlhmYaGTJSYkaNAiOKKJrHyVt+vonqFv/Nji2RLfFBgLuel//QQW9mtK9B4ecWbNOvrqMyRhFKqj1NZTKJdPL/UZVSJSNX+VXmagSF8vxdha82rfLYBdLc55ctravWM= 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=MBMtFoy/; dkim=permerror (0-bit key) header.d=linutronix.de header.i=@linutronix.de header.b=9SoTZlgV; 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="MBMtFoy/"; dkim=permerror (0-bit key) header.d=linutronix.de header.i=@linutronix.de header.b="9SoTZlgV" From: =?utf-8?q?Thomas_Wei=C3=9Fschuh?= DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020; t=1751898226; h=from:from: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=9gA6/FzdcDZ1OiNdUSIXGLqRE2/eOLi8nixIKqmz03I=; b=MBMtFoy/EwJyHePKacClzU/1GzV9Rr5KKyVaYj4LGATkt0AHBY+/pmGj3JFr38lAzXBX72 XsblNG8Qv39PK/jjdKcQQ3OihUmlKPJvW40ju7uAn1w+X65Y6/e7IJTiZWrMOA/EUT45jD KUA3p/0EN4uqjo9nDW1M1MPpzz+lOj5Idd/TZMFRmTXdAlC+Rlc6WCeflsqfkPk/9H71Kp zciG3zEYsogsOG+3uwKJuNrvhh15SZz256xlIvVdwuXkhkgRYRwZmlFXS72kRfoeGMiKvu e7nKNpOOdP7KE4ryLB39hsm64+GfCEaa02kAuwn/euCCVZNixO3U8yCvBhWDFw== DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020e; t=1751898226; h=from:from: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=9gA6/FzdcDZ1OiNdUSIXGLqRE2/eOLi8nixIKqmz03I=; b=9SoTZlgV7KocbRPCexI9NTkFyzUlqGFo6KDuk4IfrNU2woHDwUk0ywGpcyh8aPCGzV1IJA 8ySF/DTKIBjZccDg== Date: Mon, 07 Jul 2025 16:23:42 +0200 Subject: [PATCH 4/5] selftests: vDSO: vdso_test_abi: Test CPUTIME clocks 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: <20250707-vdso-tests-fixes-v1-4-545be9781b0c@linutronix.de> References: <20250707-vdso-tests-fixes-v1-0-545be9781b0c@linutronix.de> In-Reply-To: <20250707-vdso-tests-fixes-v1-0-545be9781b0c@linutronix.de> To: Andy Lutomirski , Thomas Gleixner , Vincenzo Frascino , Shuah Khan Cc: linux-kernel@vger.kernel.org, linux-kselftest@vger.kernel.org, =?utf-8?q?Thomas_Wei=C3=9Fschuh?= X-Developer-Signature: v=1; a=ed25519-sha256; t=1751898221; l=1087; i=thomas.weissschuh@linutronix.de; s=20240209; h=from:subject:message-id; bh=202eE0zeDU7+HUUBg0x+87B7hcMlBCKZldbKn5GARlY=; b=VS2tHHgjAUSlFaq2psunhleNFpzY8tOCh9hZoryfhN8/UsqGCAv0qWZvatQQu6mWbArNNGGT/ y7jUKaetyBlDI9SaMFWW9OvIrvhlGq7ZxH/7cgTVAza9/gVi6leTRiV X-Developer-Key: i=thomas.weissschuh@linutronix.de; a=ed25519; pk=pfvxvpFUDJV2h2nY0FidLUml22uGLSjByFbM6aqQQws= As the framework is already there anyways also test the CPUTIME clocks. Signed-off-by: Thomas Wei=C3=9Fschuh --- tools/testing/selftests/vDSO/vdso_test_abi.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/tools/testing/selftests/vDSO/vdso_test_abi.c b/tools/testing/s= elftests/vDSO/vdso_test_abi.c index 96d0dd3677b357876e92f6d2d962d43d642e9bee..08ed8ddd18edcd5a9f5d8239124= 833882a0b5dec 100644 --- a/tools/testing/selftests/vDSO/vdso_test_abi.c +++ b/tools/testing/selftests/vDSO/vdso_test_abi.c @@ -175,7 +175,7 @@ static inline void vdso_test_clock(clockid_t clock_id) vdso_test_clock_getres(clock_id); } =20 -#define VDSO_TEST_PLAN 16 +#define VDSO_TEST_PLAN 20 =20 int main(int argc, char **argv) { @@ -205,6 +205,8 @@ int main(int argc, char **argv) vdso_test_clock(CLOCK_MONOTONIC); vdso_test_clock(CLOCK_MONOTONIC_RAW); vdso_test_clock(CLOCK_MONOTONIC_COARSE); + vdso_test_clock(CLOCK_PROCESS_CPUTIME_ID); + vdso_test_clock(CLOCK_THREAD_CPUTIME_ID); =20 vdso_test_time(); =20 --=20 2.50.0