Skip to content

Commit 10d66f1

Browse files
committed
clock_gettime: Convert docs to docparse
Signed-off-by: Petr Vorel <pvorel@suse.cz>
1 parent 0d01d0b commit 10d66f1

File tree

5 files changed

+27
-29
lines changed

5 files changed

+27
-29
lines changed

testcases/kernel/syscalls/clock_gettime/clock_gettime01.c

Lines changed: 10 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -3,17 +3,18 @@
33
* Copyright (c) 2019 Linaro Limited. All rights reserved.
44
* Author: Rafael David Tinoco <rafael.tinoco@linaro.org>
55
*/
6-
/*
6+
7+
/*\
78
* Basic test for clock_gettime(2) on multiple clocks:
89
*
9-
* 1) CLOCK_REALTIME
10-
* 2) CLOCK_MONOTONIC
11-
* 3) CLOCK_PROCESS_CPUTIME_ID
12-
* 4) CLOCK_THREAD_CPUTIME_ID
13-
* 5) CLOCK_REALTIME_COARSE
14-
* 6) CLOCK_MONOTONIC_COARSE
15-
* 7) CLOCK_MONOTONIC_RAW
16-
* 8) CLOCK_BOOTTIME
10+
* #. CLOCK_REALTIME
11+
* #. CLOCK_MONOTONIC
12+
* #. CLOCK_PROCESS_CPUTIME_ID
13+
* #. CLOCK_THREAD_CPUTIME_ID
14+
* #. CLOCK_REALTIME_COARSE
15+
* #. CLOCK_MONOTONIC_COARSE
16+
* #. CLOCK_MONOTONIC_RAW
17+
* #. CLOCK_BOOTTIME
1718
*/
1819

1920
#include "config.h"

testcases/kernel/syscalls/clock_gettime/clock_gettime02.c

Lines changed: 12 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -3,19 +3,20 @@
33
* Copyright (c) 2019 Linaro Limited. All rights reserved.
44
* Author: Rafael David Tinoco <rafael.tinoco@linaro.org>
55
*/
6-
/*
6+
7+
/*\
78
* Bad argument tests for clock_gettime(2) on multiple clocks:
89
*
9-
* 1) MAX_CLOCKS
10-
* 2) MAX_CLOCKS + 1
11-
* 3) CLOCK_REALTIME
12-
* 4) CLOCK_MONOTONIC
13-
* 5) CLOCK_PROCESS_CPUTIME_ID
14-
* 6) CLOCK_THREAD_CPUTIME_ID
15-
* 7) CLOCK_REALTIME_COARSE
16-
* 8) CLOCK_MONOTONIC_COARSE
17-
* 9) CLOCK_MONOTONIC_RAW
18-
* 10) CLOCK_BOOTTIME
10+
* #. MAX_CLOCKS
11+
* #. MAX_CLOCKS + 1
12+
* #. CLOCK_REALTIME
13+
* #. CLOCK_MONOTONIC
14+
* #. CLOCK_PROCESS_CPUTIME_ID
15+
* #. CLOCK_THREAD_CPUTIME_ID
16+
* #. CLOCK_REALTIME_COARSE
17+
* #. CLOCK_MONOTONIC_COARSE
18+
* #. CLOCK_MONOTONIC_RAW
19+
* #. CLOCK_BOOTTIME
1920
*/
2021

2122
#include "config.h"

testcases/kernel/syscalls/clock_gettime/clock_gettime03.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
* Copyright (c) 2020 Cyril Hrubis <chrubis@suse.cz>
44
*/
55

6-
/*
6+
/*\
77
* After a call to unshare(CLONE_NEWTIME) a new timer namespace is created, the
88
* process that has called the unshare() can adjust offsets for CLOCK_MONOTONIC
99
* and CLOCK_BOOTTIME for its children by writing to the '/proc/self/timens_offsets'.

testcases/kernel/syscalls/clock_gettime/clock_gettime04.c

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -8,13 +8,8 @@
88
* Check time difference between successive readings and report a bug if
99
* difference found to be over 5 ms.
1010
*
11-
* This test reports a s390x BUG which has been fixed in:
12-
*
13-
* commit 5b43bd184530af6b868d8273b0a743a138d37ee8
14-
* Author: Heiko Carstens <hca@linux.ibm.com>
15-
* Date: Wed Mar 24 20:23:55 2021 +0100
16-
*
17-
* s390/vdso: fix initializing and updating of vdso_data
11+
* This test reports a s390x BUG which has been fixed in kernel v5.12 in
12+
* 5b43bd184530 ("s390/vdso: fix initializing and updating of vdso_data")
1813
*/
1914

2015
#include "config.h"

testcases/kernel/syscalls/clock_gettime/leapsec01.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,8 @@
88
* Ported to new library:
99
* 07/2019 Christian Amann <camann@suse.com>
1010
*/
11-
/*
11+
12+
/*\
1213
* Regression test for hrtimer early expiration during and after leap seconds
1314
*
1415
* A bug in the hrtimer subsystem caused all TIMER_ABSTIME CLOCK_REALTIME

0 commit comments

Comments
 (0)