]> git.ipfire.org Git - thirdparty/kernel/stable.git/commitdiff
selftests: vDSO: vdso_test_abi: Test CPUTIME clocks
authorThomas Weißschuh <thomas.weissschuh@linutronix.de>
Tue, 12 Aug 2025 05:39:07 +0000 (07:39 +0200)
committerThomas Gleixner <tglx@linutronix.de>
Tue, 9 Sep 2025 08:57:39 +0000 (10:57 +0200)
The structure is already there anyways, so test the CPUTIME clocks, too.

Signed-off-by: Thomas Weißschuh <thomas.weissschuh@linutronix.de>
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Link: https://lore.kernel.org/all/20250812-vdso-tests-fixes-v2-6-90f499dd35f8@linutronix.de
tools/testing/selftests/vDSO/vdso_test_abi.c

index a9a65f0deef3c32a96d7907620184ca541a3637d..c25f09998b82d797d690228e6ff026150b28934b 100644 (file)
@@ -175,7 +175,7 @@ static inline void vdso_test_clock(clockid_t clock_id)
        vdso_test_clock_getres(clock_id);
 }
 
-#define VDSO_TEST_PLAN 16
+#define VDSO_TEST_PLAN 20
 
 int main(int argc, char **argv)
 {
@@ -204,6 +204,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);
 
        vdso_test_time();