Skip to content

Commit 7b87dbf

Browse files
t-8chKAGA-KOKO
authored andcommitted
selftests: vDSO: vdso_test_abi: Test CPUTIME clocks
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
1 parent 74b408f commit 7b87dbf

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

tools/testing/selftests/vDSO/vdso_test_abi.c

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -175,7 +175,7 @@ static inline void vdso_test_clock(clockid_t clock_id)
175175
vdso_test_clock_getres(clock_id);
176176
}
177177

178-
#define VDSO_TEST_PLAN 16
178+
#define VDSO_TEST_PLAN 20
179179

180180
int main(int argc, char **argv)
181181
{
@@ -204,6 +204,8 @@ int main(int argc, char **argv)
204204
vdso_test_clock(CLOCK_MONOTONIC);
205205
vdso_test_clock(CLOCK_MONOTONIC_RAW);
206206
vdso_test_clock(CLOCK_MONOTONIC_COARSE);
207+
vdso_test_clock(CLOCK_PROCESS_CPUTIME_ID);
208+
vdso_test_clock(CLOCK_THREAD_CPUTIME_ID);
207209

208210
vdso_test_time();
209211

0 commit comments

Comments
 (0)