* [LTP] [PATCH] openposix: update invalid clock id to accomodate new auxiliary clock ids
@ 2025-10-03 10:13 Avinesh Kumar
2025-10-03 10:25 ` Petr Vorel
2025-10-06 8:53 ` Cyril Hrubis
0 siblings, 2 replies; 16+ messages in thread
From: Avinesh Kumar @ 2025-10-03 10:13 UTC (permalink / raw)
To: ltp
There can be 8 more clock ids reserved on systems with
CONFIG_POSIX_AUX_CLOCK=y [1]
consequently clock 17 no longer remains an invalid id.
[1] https://lkml.org/lkml/2025/5/19/341
Signed-off-by: Avinesh Kumar <akumar@suse.de>
---
.../conformance/interfaces/clock_getres/6-2.c | 4 ++--
.../conformance/interfaces/clock_gettime/8-2.c | 4 ++--
.../conformance/interfaces/clock_settime/17-2.c | 4 ++--
3 files changed, 6 insertions(+), 6 deletions(-)
diff --git a/testcases/open_posix_testsuite/conformance/interfaces/clock_getres/6-2.c b/testcases/open_posix_testsuite/conformance/interfaces/clock_getres/6-2.c
index c44809012..62de33c4f 100644
--- a/testcases/open_posix_testsuite/conformance/interfaces/clock_getres/6-2.c
+++ b/testcases/open_posix_testsuite/conformance/interfaces/clock_getres/6-2.c
@@ -17,7 +17,7 @@
* unassigned value = -1073743192 (ex. of what gcc will set to)
* unassigned value = 1073743192 (ex. of what gcc will set to)
* -1
- * 17 (currently not = to any clock)
+ * 25 (not associated to any clock, considering posix auxiliary clocks also)
*
*/
#include <stdio.h>
@@ -33,7 +33,7 @@ int main(void)
struct timespec res;
int invalid_tests[NUMINVALIDTESTS] = {
INT32_MIN, INT32_MAX, 2147483647, -2147483647, -1073743192,
- 1073743192, -1, 17
+ 1073743192, -1, 25
};
int i;
int failure = 0;
diff --git a/testcases/open_posix_testsuite/conformance/interfaces/clock_gettime/8-2.c b/testcases/open_posix_testsuite/conformance/interfaces/clock_gettime/8-2.c
index ed4cd4078..66bed9332 100644
--- a/testcases/open_posix_testsuite/conformance/interfaces/clock_gettime/8-2.c
+++ b/testcases/open_posix_testsuite/conformance/interfaces/clock_gettime/8-2.c
@@ -15,7 +15,7 @@
* unassigned value = -1073743192 (ex. of what gcc will set to)
* unassigned value = 1073743192 (ex. of what gcc will set to)
* -1
- * 17 (currently not = to any clock)
+ * 25 (not associated to any clock, considering posix auxiliary clocks also)
*/
#include <stdio.h>
#include <time.h>
@@ -27,7 +27,7 @@
static int invalid_tests[NUMINVALIDTESTS] = {
INT32_MIN, INT32_MAX, 2147483647, -2147483647, -1073743192,
- 1073743192, -1, 17
+ 1073743192, -1, 25
};
int main(void)
diff --git a/testcases/open_posix_testsuite/conformance/interfaces/clock_settime/17-2.c b/testcases/open_posix_testsuite/conformance/interfaces/clock_settime/17-2.c
index 990e41470..3580ade5b 100644
--- a/testcases/open_posix_testsuite/conformance/interfaces/clock_settime/17-2.c
+++ b/testcases/open_posix_testsuite/conformance/interfaces/clock_settime/17-2.c
@@ -16,7 +16,7 @@
* unassigned value = -1073743192 (ex. of what gcc will set to)
* unassigned value = 1073743192 (ex. of what gcc will set to)
* -1
- * 17 (currently not = to any clock)
+ * 25 (not associated to any clock, considering posix auxiliary clocks also)
*
* The date chosen is Nov 12, 2002 ~11:13am (date when test was first
* written).
@@ -34,7 +34,7 @@
static int invalid_tests[NUMINVALIDTESTS] = {
INT32_MIN, INT32_MAX, 2147483647, -2147483647, -1073743192,
- 1073743192, -1, 17
+ 1073743192, -1, 25
};
int main(void)
--
2.51.0
--
Mailing list info: https://lists.linux.it/listinfo/ltp
^ permalink raw reply related [flat|nested] 16+ messages in thread* Re: [LTP] [PATCH] openposix: update invalid clock id to accomodate new auxiliary clock ids
2025-10-03 10:13 [LTP] [PATCH] openposix: update invalid clock id to accomodate new auxiliary clock ids Avinesh Kumar
@ 2025-10-03 10:25 ` Petr Vorel
2025-10-03 11:30 ` Avinesh Kumar
2025-10-06 8:53 ` Cyril Hrubis
1 sibling, 1 reply; 16+ messages in thread
From: Petr Vorel @ 2025-10-03 10:25 UTC (permalink / raw)
To: Avinesh Kumar; +Cc: ltp
Hi Avinesh,
> There can be 8 more clock ids reserved on systems with
> CONFIG_POSIX_AUX_CLOCK=y [1]
> consequently clock 17 no longer remains an invalid id.
Thanks for fixing this! Because we don't have infrastructure to check kconfig in
open POSIX tests I agree to just bump the value.
Reviewed-by: Petr Vorel <pvorel@suse.cz>
Kind regards,
Petr
> [1] https://lkml.org/lkml/2025/5/19/341
nit: FYI I've noticed several times people suggesting to use for links
lore.kernel.org, see kernel commit 05a5f51ca5666 ("Documentation: Replace
lkml.org links with lore"):
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=05a5f51ca566
Replace the lkml.org links with lore to better use a single source
that's more likely to stay available long-term.
Therefore link would be:
[1] https://lore.kernel.org/lkml/20250519083025.905800695@linutronix.de/
--
Mailing list info: https://lists.linux.it/listinfo/ltp
^ permalink raw reply [flat|nested] 16+ messages in thread* Re: [LTP] [PATCH] openposix: update invalid clock id to accomodate new auxiliary clock ids
2025-10-03 10:13 [LTP] [PATCH] openposix: update invalid clock id to accomodate new auxiliary clock ids Avinesh Kumar
2025-10-03 10:25 ` Petr Vorel
@ 2025-10-06 8:53 ` Cyril Hrubis
2025-10-06 9:08 ` Cyril Hrubis
` (2 more replies)
1 sibling, 3 replies; 16+ messages in thread
From: Cyril Hrubis @ 2025-10-06 8:53 UTC (permalink / raw)
To: Avinesh Kumar; +Cc: ltp
Hi!
> There can be 8 more clock ids reserved on systems with
> CONFIG_POSIX_AUX_CLOCK=y [1]
> consequently clock 17 no longer remains an invalid id.
>
> [1] https://lkml.org/lkml/2025/5/19/341
>
> Signed-off-by: Avinesh Kumar <akumar@suse.de>
> ---
> .../conformance/interfaces/clock_getres/6-2.c | 4 ++--
> .../conformance/interfaces/clock_gettime/8-2.c | 4 ++--
> .../conformance/interfaces/clock_settime/17-2.c | 4 ++--
> 3 files changed, 6 insertions(+), 6 deletions(-)
>
> diff --git a/testcases/open_posix_testsuite/conformance/interfaces/clock_getres/6-2.c b/testcases/open_posix_testsuite/conformance/interfaces/clock_getres/6-2.c
> index c44809012..62de33c4f 100644
> --- a/testcases/open_posix_testsuite/conformance/interfaces/clock_getres/6-2.c
> +++ b/testcases/open_posix_testsuite/conformance/interfaces/clock_getres/6-2.c
> @@ -17,7 +17,7 @@
> * unassigned value = -1073743192 (ex. of what gcc will set to)
> * unassigned value = 1073743192 (ex. of what gcc will set to)
> * -1
> - * 17 (currently not = to any clock)
> + * 25 (not associated to any clock, considering posix auxiliary clocks also)
Technically you can have any number of clocks defined by a system that
implements POSIX. So the comment here should be:
"hopefully big enough not to be a valid clock value"
And we may possibly bump it to a larger value as well, e.g. 50
--
Cyril Hrubis
chrubis@suse.cz
--
Mailing list info: https://lists.linux.it/listinfo/ltp
^ permalink raw reply [flat|nested] 16+ messages in thread* Re: [LTP] [PATCH] openposix: update invalid clock id to accomodate new auxiliary clock ids
2025-10-06 8:53 ` Cyril Hrubis
@ 2025-10-06 9:08 ` Cyril Hrubis
2025-10-07 16:03 ` Avinesh Kumar
2025-10-06 9:43 ` Petr Vorel
2025-10-07 14:32 ` [LTP] [PATCH v2] " Avinesh Kumar
2 siblings, 1 reply; 16+ messages in thread
From: Cyril Hrubis @ 2025-10-06 9:08 UTC (permalink / raw)
To: Avinesh Kumar; +Cc: ltp
Hi!
> Technically you can have any number of clocks defined by a system that
> implements POSIX. So the comment here should be:
>
> "hopefully big enough not to be a valid clock value"
>
> And we may possibly bump it to a larger value as well, e.g. 50
Or we may be a bit smarter, for clock_gettime() or clock_getres() we can
loop starting at 0 until we get EINVAL or cross sufficiently large value.
--
Cyril Hrubis
chrubis@suse.cz
--
Mailing list info: https://lists.linux.it/listinfo/ltp
^ permalink raw reply [flat|nested] 16+ messages in thread
* Re: [LTP] [PATCH] openposix: update invalid clock id to accomodate new auxiliary clock ids
2025-10-06 9:08 ` Cyril Hrubis
@ 2025-10-07 16:03 ` Avinesh Kumar
0 siblings, 0 replies; 16+ messages in thread
From: Avinesh Kumar @ 2025-10-07 16:03 UTC (permalink / raw)
To: Cyril Hrubis; +Cc: ltp
Hi Cyril,
On Monday, October 6, 2025 11:08:35 AM CEST you wrote:
>
> Hi!
> > Technically you can have any number of clocks defined by a system that
> > implements POSIX. So the comment here should be:
> >
> > "hopefully big enough not to be a valid clock value"
> >
> > And we may possibly bump it to a larger value as well, e.g. 50
>
> Or we may be a bit smarter, for clock_gettime() or clock_getres() we can
> loop starting at 0 until we get EINVAL or cross sufficiently large value.
>
>
I thought of implementing something like this. But we get EINVAL for
smaller values also for which clocks are not defined.
./clock_getres_6-2.run-test
clock_getres(-2147483648, &res);
clock_getres(2147483647, &res);
clock_getres(2147483647, &res);
clock_getres(-2147483647, &res);
clock_getres(-1073743192, &res);
clock_getres(1073743192, &res);
clock_getres(-1, &res);
clock_getres(10, &res);
clock_getres(11, &res);
clock_getres() != -1
clock_getres(12, &res);
clock_getres(13, &res);
clock_getres(14, &res);
clock_getres(15, &res);
clock_getres(16, &res);
clock_getres() != -1
clock_getres(17, &res);
clock_getres() != -1
clock_getres(18, &res);
clock_getres() != -1
clock_getres(19, &res);
clock_getres() != -1
clock_getres(20, &res);
clock_getres() != -1
clock_getres(21, &res);
clock_getres() != -1
clock_getres(22, &res);
clock_getres() != -1
clock_getres(23, &res);
clock_getres() != -1
clock_getres(24, &res);
clock_getres(25, &res);
clock_getres(26, &res);
At least one test FAILED -- see above
--
Mailing list info: https://lists.linux.it/listinfo/ltp
^ permalink raw reply [flat|nested] 16+ messages in thread
* Re: [LTP] [PATCH] openposix: update invalid clock id to accomodate new auxiliary clock ids
2025-10-06 8:53 ` Cyril Hrubis
2025-10-06 9:08 ` Cyril Hrubis
@ 2025-10-06 9:43 ` Petr Vorel
2025-10-06 9:56 ` Cyril Hrubis
2025-10-07 14:32 ` [LTP] [PATCH v2] " Avinesh Kumar
2 siblings, 1 reply; 16+ messages in thread
From: Petr Vorel @ 2025-10-06 9:43 UTC (permalink / raw)
To: Cyril Hrubis; +Cc: ltp
Hi Cyril, Avinesh,
> Hi!
> > There can be 8 more clock ids reserved on systems with
> > CONFIG_POSIX_AUX_CLOCK=y [1]
> > consequently clock 17 no longer remains an invalid id.
> > [1] https://lkml.org/lkml/2025/5/19/341
> > Signed-off-by: Avinesh Kumar <akumar@suse.de>
> > ---
> > .../conformance/interfaces/clock_getres/6-2.c | 4 ++--
> > .../conformance/interfaces/clock_gettime/8-2.c | 4 ++--
> > .../conformance/interfaces/clock_settime/17-2.c | 4 ++--
> > 3 files changed, 6 insertions(+), 6 deletions(-)
> > diff --git a/testcases/open_posix_testsuite/conformance/interfaces/clock_getres/6-2.c b/testcases/open_posix_testsuite/conformance/interfaces/clock_getres/6-2.c
> > index c44809012..62de33c4f 100644
> > --- a/testcases/open_posix_testsuite/conformance/interfaces/clock_getres/6-2.c
> > +++ b/testcases/open_posix_testsuite/conformance/interfaces/clock_getres/6-2.c
> > @@ -17,7 +17,7 @@
> > * unassigned value = -1073743192 (ex. of what gcc will set to)
> > * unassigned value = 1073743192 (ex. of what gcc will set to)
> > * -1
> > - * 17 (currently not = to any clock)
> > + * 25 (not associated to any clock, considering posix auxiliary clocks also)
> Technically you can have any number of clocks defined by a system that
> implements POSIX. So the comment here should be:
> "hopefully big enough not to be a valid clock value"
> And we may possibly bump it to a larger value as well, e.g. 50
Thanks for info. Out of curiosity: I suppose the different approach from the
exact value for LTP Linux tests fixed in 5c0e414511 (which use lib/tst_clocks.c)
is because POSIX tests can be tested for other Unix like tests? Is the POSIX
testsuite intended for BSD or any unix like kernels/OS? If yes, I wonder if
anybody does (and if it even compiles).
Kind regards,
Petr
--
Mailing list info: https://lists.linux.it/listinfo/ltp
^ permalink raw reply [flat|nested] 16+ messages in thread
* Re: [LTP] [PATCH] openposix: update invalid clock id to accomodate new auxiliary clock ids
2025-10-06 9:43 ` Petr Vorel
@ 2025-10-06 9:56 ` Cyril Hrubis
0 siblings, 0 replies; 16+ messages in thread
From: Cyril Hrubis @ 2025-10-06 9:56 UTC (permalink / raw)
To: Petr Vorel; +Cc: ltp
Hi!
> Thanks for info. Out of curiosity: I suppose the different approach from the
> exact value for LTP Linux tests fixed in 5c0e414511 (which use lib/tst_clocks.c)
> is because POSIX tests can be tested for other Unix like tests? Is the POSIX
> testsuite intended for BSD or any unix like kernels/OS? If yes, I wonder if
> anybody does (and if it even compiles).
If I remmeber correctly we got some feedback from Haiku OS devs and BSD
uses LTP as well, even the Linux part to test their Linux compatibility
layer.
--
Cyril Hrubis
chrubis@suse.cz
--
Mailing list info: https://lists.linux.it/listinfo/ltp
^ permalink raw reply [flat|nested] 16+ messages in thread
* [LTP] [PATCH v2] openposix: update invalid clock id to accomodate new auxiliary clock ids
2025-10-06 8:53 ` Cyril Hrubis
2025-10-06 9:08 ` Cyril Hrubis
2025-10-06 9:43 ` Petr Vorel
@ 2025-10-07 14:32 ` Avinesh Kumar
2025-10-07 14:36 ` Avinesh Kumar
2025-10-13 14:11 ` Cyril Hrubis
2 siblings, 2 replies; 16+ messages in thread
From: Avinesh Kumar @ 2025-10-07 14:32 UTC (permalink / raw)
To: ltp; +Cc: pvore
Starting kernel v6.17, there are 8 more auxiliary clock ids reserved on
systems with CONFIG_POSIX_AUX_CLOCK=y [1] and moreover posix systems can
define and support any number of clocks beyond the mandatory ones.
[1] https://lore.kernel.org/lkml/20250519083025.905800695@linutronix.de/
Signed-off-by: Avinesh Kumar <akumar@suse.de>
---
.../conformance/interfaces/clock_getres/6-2.c | 5 ++---
.../conformance/interfaces/clock_gettime/8-2.c | 4 ++--
.../conformance/interfaces/clock_settime/17-2.c | 4 ++--
3 files changed, 6 insertions(+), 7 deletions(-)
diff --git a/testcases/open_posix_testsuite/conformance/interfaces/clock_getres/6-2.c b/testcases/open_posix_testsuite/conformance/interfaces/clock_getres/6-2.c
index c44809012..af45e27c9 100644
--- a/testcases/open_posix_testsuite/conformance/interfaces/clock_getres/6-2.c
+++ b/testcases/open_posix_testsuite/conformance/interfaces/clock_getres/6-2.c
@@ -17,8 +17,7 @@
* unassigned value = -1073743192 (ex. of what gcc will set to)
* unassigned value = 1073743192 (ex. of what gcc will set to)
* -1
- * 17 (currently not = to any clock)
- *
+ * 50 (hopefully big enough value not to be a valid clock id)
*/
#include <stdio.h>
#include <time.h>
@@ -33,7 +32,7 @@ int main(void)
struct timespec res;
int invalid_tests[NUMINVALIDTESTS] = {
INT32_MIN, INT32_MAX, 2147483647, -2147483647, -1073743192,
- 1073743192, -1, 17
+ 1073743192, -1, 50
};
int i;
int failure = 0;
diff --git a/testcases/open_posix_testsuite/conformance/interfaces/clock_gettime/8-2.c b/testcases/open_posix_testsuite/conformance/interfaces/clock_gettime/8-2.c
index ed4cd4078..92263ce87 100644
--- a/testcases/open_posix_testsuite/conformance/interfaces/clock_gettime/8-2.c
+++ b/testcases/open_posix_testsuite/conformance/interfaces/clock_gettime/8-2.c
@@ -15,7 +15,7 @@
* unassigned value = -1073743192 (ex. of what gcc will set to)
* unassigned value = 1073743192 (ex. of what gcc will set to)
* -1
- * 17 (currently not = to any clock)
+ * 50 (hopefully big enough value not to be a valid clock id)
*/
#include <stdio.h>
#include <time.h>
@@ -27,7 +27,7 @@
static int invalid_tests[NUMINVALIDTESTS] = {
INT32_MIN, INT32_MAX, 2147483647, -2147483647, -1073743192,
- 1073743192, -1, 17
+ 1073743192, -1, 50
};
int main(void)
diff --git a/testcases/open_posix_testsuite/conformance/interfaces/clock_settime/17-2.c b/testcases/open_posix_testsuite/conformance/interfaces/clock_settime/17-2.c
index 990e41470..7504b7692 100644
--- a/testcases/open_posix_testsuite/conformance/interfaces/clock_settime/17-2.c
+++ b/testcases/open_posix_testsuite/conformance/interfaces/clock_settime/17-2.c
@@ -16,7 +16,7 @@
* unassigned value = -1073743192 (ex. of what gcc will set to)
* unassigned value = 1073743192 (ex. of what gcc will set to)
* -1
- * 17 (currently not = to any clock)
+ * 50 (hopefully big enough value not to be a valid clock id)
*
* The date chosen is Nov 12, 2002 ~11:13am (date when test was first
* written).
@@ -34,7 +34,7 @@
static int invalid_tests[NUMINVALIDTESTS] = {
INT32_MIN, INT32_MAX, 2147483647, -2147483647, -1073743192,
- 1073743192, -1, 17
+ 1073743192, -1, 50
};
int main(void)
--
2.51.0
--
Mailing list info: https://lists.linux.it/listinfo/ltp
^ permalink raw reply related [flat|nested] 16+ messages in thread* Re: [LTP] [PATCH v2] openposix: update invalid clock id to accomodate new auxiliary clock ids
2025-10-07 14:32 ` [LTP] [PATCH v2] " Avinesh Kumar
@ 2025-10-07 14:36 ` Avinesh Kumar
2025-10-07 21:37 ` Petr Vorel
2025-10-13 14:11 ` Cyril Hrubis
1 sibling, 1 reply; 16+ messages in thread
From: Avinesh Kumar @ 2025-10-07 14:36 UTC (permalink / raw)
To: ltp; +Cc: pvore
On Tuesday, October 7, 2025 4:32:06 PM CEST Avinesh Kumar wrote:
> Starting kernel v6.17, there are 8 more auxiliary clock ids reserved on
> systems with CONFIG_POSIX_AUX_CLOCK=y [1] and moreover posix systems can
> define and support any number of clocks beyond the mandatory ones.
>
> [1] https://lore.kernel.org/lkml/20250519083025.905800695@linutronix.de/
>
> Signed-off-by: Avinesh Kumar <akumar@suse.de>
> ---
> .../conformance/interfaces/clock_getres/6-2.c | 5 ++---
> .../conformance/interfaces/clock_gettime/8-2.c | 4 ++--
> .../conformance/interfaces/clock_settime/17-2.c | 4 ++--
> 3 files changed, 6 insertions(+), 7 deletions(-)
>
> diff --git a/testcases/open_posix_testsuite/conformance/interfaces/clock_getres/6-2.c b/testcases/open_posix_testsuite/conformance/interfaces/clock_getres/6-2.c
> index c44809012..af45e27c9 100644
> --- a/testcases/open_posix_testsuite/conformance/interfaces/clock_getres/6-2.c
> +++ b/testcases/open_posix_testsuite/conformance/interfaces/clock_getres/6-2.c
> @@ -17,8 +17,7 @@
> * unassigned value = -1073743192 (ex. of what gcc will set to)
> * unassigned value = 1073743192 (ex. of what gcc will set to)
> * -1
> - * 17 (currently not = to any clock)
> - *
> + * 50 (hopefully big enough value not to be a valid clock id)
> */
> #include <stdio.h>
> #include <time.h>
> @@ -33,7 +32,7 @@ int main(void)
> struct timespec res;
> int invalid_tests[NUMINVALIDTESTS] = {
> INT32_MIN, INT32_MAX, 2147483647, -2147483647, -1073743192,
> - 1073743192, -1, 17
> + 1073743192, -1, 50
> };
> int i;
> int failure = 0;
> diff --git a/testcases/open_posix_testsuite/conformance/interfaces/clock_gettime/8-2.c b/testcases/open_posix_testsuite/conformance/interfaces/clock_gettime/8-2.c
> index ed4cd4078..92263ce87 100644
> --- a/testcases/open_posix_testsuite/conformance/interfaces/clock_gettime/8-2.c
> +++ b/testcases/open_posix_testsuite/conformance/interfaces/clock_gettime/8-2.c
> @@ -15,7 +15,7 @@
> * unassigned value = -1073743192 (ex. of what gcc will set to)
> * unassigned value = 1073743192 (ex. of what gcc will set to)
> * -1
> - * 17 (currently not = to any clock)
> + * 50 (hopefully big enough value not to be a valid clock id)
I see I added extra space in this one, please fix while merging if patch is fine.
Thanks,
Avinesh
--
Mailing list info: https://lists.linux.it/listinfo/ltp
^ permalink raw reply [flat|nested] 16+ messages in thread* Re: [LTP] [PATCH v2] openposix: update invalid clock id to accomodate new auxiliary clock ids
2025-10-07 14:36 ` Avinesh Kumar
@ 2025-10-07 21:37 ` Petr Vorel
2025-10-13 9:56 ` Andrea Cervesato via ltp
0 siblings, 1 reply; 16+ messages in thread
From: Petr Vorel @ 2025-10-07 21:37 UTC (permalink / raw)
To: Avinesh Kumar; +Cc: ltp
> On Tuesday, October 7, 2025 4:32:06 PM CEST Avinesh Kumar wrote:
> > Starting kernel v6.17, there are 8 more auxiliary clock ids reserved on
> > systems with CONFIG_POSIX_AUX_CLOCK=y [1] and moreover posix systems can
> > define and support any number of clocks beyond the mandatory ones.
> > [1] https://lore.kernel.org/lkml/20250519083025.905800695@linutronix.de/
> > Signed-off-by: Avinesh Kumar <akumar@suse.de>
> > ---
> > .../conformance/interfaces/clock_getres/6-2.c | 5 ++---
> > .../conformance/interfaces/clock_gettime/8-2.c | 4 ++--
> > .../conformance/interfaces/clock_settime/17-2.c | 4 ++--
> > 3 files changed, 6 insertions(+), 7 deletions(-)
> > diff --git a/testcases/open_posix_testsuite/conformance/interfaces/clock_getres/6-2.c b/testcases/open_posix_testsuite/conformance/interfaces/clock_getres/6-2.c
> > index c44809012..af45e27c9 100644
> > --- a/testcases/open_posix_testsuite/conformance/interfaces/clock_getres/6-2.c
> > +++ b/testcases/open_posix_testsuite/conformance/interfaces/clock_getres/6-2.c
> > @@ -17,8 +17,7 @@
> > * unassigned value = -1073743192 (ex. of what gcc will set to)
> > * unassigned value = 1073743192 (ex. of what gcc will set to)
> > * -1
> > - * 17 (currently not = to any clock)
> > - *
> > + * 50 (hopefully big enough value not to be a valid clock id)
> > */
> > #include <stdio.h>
> > #include <time.h>
> > @@ -33,7 +32,7 @@ int main(void)
> > struct timespec res;
> > int invalid_tests[NUMINVALIDTESTS] = {
> > INT32_MIN, INT32_MAX, 2147483647, -2147483647, -1073743192,
> > - 1073743192, -1, 17
> > + 1073743192, -1, 50
> > };
> > int i;
> > int failure = 0;
> > diff --git a/testcases/open_posix_testsuite/conformance/interfaces/clock_gettime/8-2.c b/testcases/open_posix_testsuite/conformance/interfaces/clock_gettime/8-2.c
> > index ed4cd4078..92263ce87 100644
> > --- a/testcases/open_posix_testsuite/conformance/interfaces/clock_gettime/8-2.c
> > +++ b/testcases/open_posix_testsuite/conformance/interfaces/clock_gettime/8-2.c
> > @@ -15,7 +15,7 @@
> > * unassigned value = -1073743192 (ex. of what gcc will set to)
> > * unassigned value = 1073743192 (ex. of what gcc will set to)
> > * -1
> > - * 17 (currently not = to any clock)
> > + * 50 (hopefully big enough value not to be a valid clock id)
> I see I added extra space in this one, please fix while merging if patch is fine.
Sure, np.
Reviewed-by: Petr Vorel <pvorel@suse.cz>
Kind regards,
Petr
> Thanks,
> Avinesh
--
Mailing list info: https://lists.linux.it/listinfo/ltp
^ permalink raw reply [flat|nested] 16+ messages in thread* Re: [LTP] [PATCH v2] openposix: update invalid clock id to accomodate new auxiliary clock ids
2025-10-07 21:37 ` Petr Vorel
@ 2025-10-13 9:56 ` Andrea Cervesato via ltp
2025-10-13 11:29 ` Petr Vorel
0 siblings, 1 reply; 16+ messages in thread
From: Andrea Cervesato via ltp @ 2025-10-13 9:56 UTC (permalink / raw)
To: Petr Vorel, Avinesh Kumar; +Cc: ltp, ltp
Hi!
On Tue Oct 7, 2025 at 11:37 PM CEST, Petr Vorel wrote:
>> On Tuesday, October 7, 2025 4:32:06 PM CEST Avinesh Kumar wrote:
>> > Starting kernel v6.17, there are 8 more auxiliary clock ids reserved on
>> > systems with CONFIG_POSIX_AUX_CLOCK=y [1] and moreover posix systems can
>> > define and support any number of clocks beyond the mandatory ones.
>
>> > [1] https://lore.kernel.org/lkml/20250519083025.905800695@linutronix.de/
>
>> > Signed-off-by: Avinesh Kumar <akumar@suse.de>
>> > ---
>> > .../conformance/interfaces/clock_getres/6-2.c | 5 ++---
>> > .../conformance/interfaces/clock_gettime/8-2.c | 4 ++--
>> > .../conformance/interfaces/clock_settime/17-2.c | 4 ++--
>> > 3 files changed, 6 insertions(+), 7 deletions(-)
>
>> > diff --git a/testcases/open_posix_testsuite/conformance/interfaces/clock_getres/6-2.c b/testcases/open_posix_testsuite/conformance/interfaces/clock_getres/6-2.c
>> > index c44809012..af45e27c9 100644
>> > --- a/testcases/open_posix_testsuite/conformance/interfaces/clock_getres/6-2.c
>> > +++ b/testcases/open_posix_testsuite/conformance/interfaces/clock_getres/6-2.c
>> > @@ -17,8 +17,7 @@
>> > * unassigned value = -1073743192 (ex. of what gcc will set to)
>> > * unassigned value = 1073743192 (ex. of what gcc will set to)
>> > * -1
>> > - * 17 (currently not = to any clock)
>> > - *
>> > + * 50 (hopefully big enough value not to be a valid clock id)
>> > */
>> > #include <stdio.h>
>> > #include <time.h>
>> > @@ -33,7 +32,7 @@ int main(void)
>> > struct timespec res;
>> > int invalid_tests[NUMINVALIDTESTS] = {
>> > INT32_MIN, INT32_MAX, 2147483647, -2147483647, -1073743192,
>> > - 1073743192, -1, 17
>> > + 1073743192, -1, 50
>> > };
>> > int i;
>> > int failure = 0;
>> > diff --git a/testcases/open_posix_testsuite/conformance/interfaces/clock_gettime/8-2.c b/testcases/open_posix_testsuite/conformance/interfaces/clock_gettime/8-2.c
>> > index ed4cd4078..92263ce87 100644
>> > --- a/testcases/open_posix_testsuite/conformance/interfaces/clock_gettime/8-2.c
>> > +++ b/testcases/open_posix_testsuite/conformance/interfaces/clock_gettime/8-2.c
>> > @@ -15,7 +15,7 @@
>> > * unassigned value = -1073743192 (ex. of what gcc will set to)
>> > * unassigned value = 1073743192 (ex. of what gcc will set to)
>> > * -1
>> > - * 17 (currently not = to any clock)
>> > + * 50 (hopefully big enough value not to be a valid clock id)
>> I see I added extra space in this one, please fix while merging if patch is fine.
>
> Sure, np.
>
> Reviewed-by: Petr Vorel <pvorel@suse.cz>
>
> Kind regards,
> Petr
>
>> Thanks,
>> Avinesh
Maybe we should merge this patch, WDYT?
Acked-by: Andrea Cervesato <andrea.cervesato@suse.com>
--
Andrea Cervesato
SUSE QE Automation Engineer Linux
andrea.cervesato@suse.com
--
Mailing list info: https://lists.linux.it/listinfo/ltp
^ permalink raw reply [flat|nested] 16+ messages in thread
* Re: [LTP] [PATCH v2] openposix: update invalid clock id to accomodate new auxiliary clock ids
2025-10-07 14:32 ` [LTP] [PATCH v2] " Avinesh Kumar
2025-10-07 14:36 ` Avinesh Kumar
@ 2025-10-13 14:11 ` Cyril Hrubis
1 sibling, 0 replies; 16+ messages in thread
From: Cyril Hrubis @ 2025-10-13 14:11 UTC (permalink / raw)
To: Avinesh Kumar; +Cc: pvore, ltp
Hi!
Reviewed-by: Cyril Hrubis <chrubis@suse.cz>
--
Cyril Hrubis
chrubis@suse.cz
--
Mailing list info: https://lists.linux.it/listinfo/ltp
^ permalink raw reply [flat|nested] 16+ messages in thread
end of thread, other threads:[~2025-10-13 14:27 UTC | newest]
Thread overview: 16+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-10-03 10:13 [LTP] [PATCH] openposix: update invalid clock id to accomodate new auxiliary clock ids Avinesh Kumar
2025-10-03 10:25 ` Petr Vorel
2025-10-03 11:30 ` Avinesh Kumar
2025-10-03 12:26 ` Petr Vorel
2025-10-06 8:53 ` Cyril Hrubis
2025-10-06 9:08 ` Cyril Hrubis
2025-10-07 16:03 ` Avinesh Kumar
2025-10-06 9:43 ` Petr Vorel
2025-10-06 9:56 ` Cyril Hrubis
2025-10-07 14:32 ` [LTP] [PATCH v2] " Avinesh Kumar
2025-10-07 14:36 ` Avinesh Kumar
2025-10-07 21:37 ` Petr Vorel
2025-10-13 9:56 ` Andrea Cervesato via ltp
2025-10-13 11:29 ` Petr Vorel
2025-10-13 14:26 ` Petr Vorel
2025-10-13 14:11 ` Cyril Hrubis
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox