[PATCH] testsuite/smokey: Fixing a registry leak of the posix_select test

2021-08-12 Thread Florian Bezdeka via Xenomai
According to POSIX message queues have kernel persistence, which means they are not cleaned up until the next reboot. The test has a mq_unlink() as "precondition", so it will clean up failed test runs silently but /proc/xenomai/registry/usage will still report a "leak" once the test has

[PATCH v4 3/5] y2038: cobalt/posix/muqueue: Adding mq_timedreceive64

2021-08-12 Thread Florian Bezdeka via Xenomai
From: Song Chen Add a syscall specific for mq_timedreceive64 with 64bit time_t. Signed-off-by: Song Chen [Florian: - Reformat commit msg - relocate code - tracing - fix syscall declarations ] Signed-off-by: Florian Bezdeka --- @Jan: This should replace 76607e1a7237 in next. Other

Re: posix_select seems to leak a registry element

2021-08-12 Thread Jan Kiszka via Xenomai
On 12.08.21 16:39, Bezdeka, Florian (T RDA IOT SES-DE) wrote: > On Thu, 2021-08-12 at 14:45 +0200, Jan Kiszka wrote: >> On 12.08.21 14:39, Bezdeka, Florian (T RDA IOT SES-DE) wrote: >>> Hi all, >>> >>> I just noticed that the posix_select test of smokey is leaking one >>> registry element: >>> >>>

Re: posix_select seems to leak a registry element

2021-08-12 Thread Bezdeka, Florian via Xenomai
On Thu, 2021-08-12 at 14:45 +0200, Jan Kiszka wrote: > On 12.08.21 14:39, Bezdeka, Florian (T RDA IOT SES-DE) wrote: > > Hi all, > > > > I just noticed that the posix_select test of smokey is leaking one > > registry element: > > > > $ cat /proc/xenomai/registry/usage > > 8/512 > > > > $

Re: posix_select seems to leak a registry element

2021-08-12 Thread Jan Kiszka via Xenomai
On 12.08.21 14:39, Bezdeka, Florian (T RDA IOT SES-DE) wrote: > Hi all, > > I just noticed that the posix_select test of smokey is leaking one > registry element: > > $ cat /proc/xenomai/registry/usage > 8/512 > > $ /smokey --run=posix_select > posix_select OK > > $ cat

posix_select seems to leak a registry element

2021-08-12 Thread Bezdeka, Florian via Xenomai
Hi all, I just noticed that the posix_select test of smokey is leaking one registry element: $ cat /proc/xenomai/registry/usage 8/512 $ /smokey --run=posix_select posix_select OK $ cat /proc/xenomai/registry/usage 9/512 The following diff would fix that, but I assume the resource cleanup

Re: cannot link 32 bit app

2021-08-12 Thread C Smith via Xenomai
OK, yeah I had mistakenly put --ldflags in the xeno-config line for CFLAGS = This was also problem: LDLIBS= $(shell $(XENOCONFIG) --skin=native --ldflags) \ $(shell $(XENOCONFIG) --skin=rtdm --ldflags) \ $(shell $(XENOCONFIG) --skin=posix --ldflags) That used to work in Xenomai 2.6 but not in

[PATCH v4 3/3] y2038: testsuite/smokey/y2038: Adding tests for event_wait64

2021-08-12 Thread Florian Bezdeka via Xenomai
Based on the tests provided by Song with the following adjustments: - #includes cleaned up - making sure all resources used during tests have are cleaned up - Switched to CLOCK_MONOTONIC for time measurement __cobalt_event_wait sets the time mode to XN_ABSOLUTE, so we have to use

[PATCH v4 2/3] y2038: lib/cobalt/internal: dispatch event_wait

2021-08-12 Thread Florian Bezdeka via Xenomai
From: Song Chen If sizeof time_t bigger than 4, which means glibc supports 64bit timespec, go to event_wait64. otherwise, go to original event_wait. Signed-off-by: Song Chen Signed-off-by: Florian Bezdeka --- lib/cobalt/internal.c | 5 + 1 file changed, 5 insertions(+) diff --git

[PATCH v4 1/3] y2038: cobalt/posix/event: Adding event_wait64

2021-08-12 Thread Florian Bezdeka via Xenomai
From: Song Chen Add a syscall specific for event_wait with 64bit time_t. Signed-off-by: Song Chen [Florian: Tracing, reformatting/rebasing] Signed-off-by: Florian Bezdeka --- include/cobalt/uapi/syscall.h | 1 + kernel/cobalt/posix/event.c| 34 +++---

[PATCH v4 0/3] y2038: Adding event_wait64()

2021-08-12 Thread Florian Bezdeka via Xenomai
Hi! Just another y2038 related syscall, once again based on v1 sent out by Song and rebased to current next with some code- and test-cleanups applied. @Song: This one was the last one in my inbox. Please make sure that all following patches are based on next. IIRC there are 3 or 4 syscalls

Re: [PATCH v2 0/3] y2038: Adding event_wait64()

2021-08-12 Thread chensong_2000--- via Xenomai
在 2021/8/11 下午9:36, Florian Bezdeka 写道: Hi! Just another y2038 related syscall, once again based on v1 sent out by Song and rebased to current next with some code- and test-cleanups applied. @Song: This one was the last one in my inbox. Please make sure that all following patches are based

Re: [PATCH v3 0/5] y2038: Adding support for mq_timed{send,recv}64

2021-08-12 Thread chensong_2000--- via Xenomai
在 2021/8/10 下午6:24, Florian Bezdeka 写道: Hi all, this is kind of a re-send of the patch series originall published by Song. There were some things that had to be addressed: - Code formattings - Copy paste errors in the test suite - Failing / incomplete tests, missing test cleanups -

Re: cannot link 32 bit app

2021-08-12 Thread Jan Kiszka via Xenomai
On 12.08.21 07:50, C Smith wrote: > Hi Jan,Thanks for your prompt reply.  I reduced my very large app to > about 200 lines, it only starts one periodic process. but I still get > this error during linkage: > > /usr/xenomai/lib/xenomai/bootstrap.o: In function `xenomai_main': >