[PATCH 6/9] alchemytests: Fix gcc warning in task-9

2022-04-13 Thread Richard Weinberger via Xenomai
Make it static, no prototype needed anymore. Fixes: task-9.c:13:6: error: no previous prototype for ‘sighandler’ [-Werror=missing-prototypes] void sighandler(int sig) Signed-off-by: Richard Weinberger --- testsuite/alchemytests/task-9.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)

[PATCH v2] testsuite: Add test for x86 port io

2022-04-13 Thread Richard Weinberger via Xenomai
Test case for the following regression: https://www.xenomai.org/pipermail/xenomai/2022-March/047451.html Signed-off-by: Richard Weinberger --- Changes since v1: - Make sure to restore SA upon failure. --- configure.ac | 2 + testsuite/smokey/Makefile.am | 7

[PATCH v2 0/9] Revive alchemy, pSOS and VxWorks tests

2022-04-13 Thread Richard Weinberger via Xenomai
This patch series is a first attempt to integrate the currently abandoned alchemy, pSOS and VxWorks tests into Xenomai's test suite. Since each test assumes running as own process a test driver is needed which executes each tests separately. The driver makes use of the smokey framework. Test

[PATCH 3/9] testsuite: Add a simple test driver for alchemytests

2022-04-13 Thread Richard Weinberger via Xenomai
In their current shape, every alchemy test has to be a single program and does not use the smokey test framework. alchemytest_driver uses smokey and runs each test as new process. Signed-off-by: Richard Weinberger --- testsuite/alchemytests/Makefile.am | 11 +++

[PATCH 1/9] testsuite: Move alchemy tests into testsuite/

2022-04-13 Thread Richard Weinberger via Xenomai
This is the very first step to have the alchemy tests embedded into our testsuite. Signed-off-by: Richard Weinberger --- {lib/alchemy/testsuite => testsuite/alchemytests}/alarm-1.c | 0 {lib/alchemy/testsuite => testsuite/alchemytests}/buffer-1.c | 0 {lib/alchemy/testsuite =>

[PATCH 2/9] testsuite: Hook up alchemytests

2022-04-13 Thread Richard Weinberger via Xenomai
Build them using Xenomai's build system. Signed-off-by: Richard Weinberger --- configure.ac | 1 + testsuite/Makefile.am | 6 +- testsuite/alchemytests/Makefile.am | 148 + 3 files changed, 153 insertions(+), 2 deletions(-)

[PATCH 9/9] testsuite: Integrate vwworks tests into testsuite/

2022-04-13 Thread Richard Weinberger via Xenomai
Same as for alchemy and pSOS. Signed-off-by: Richard Weinberger --- configure.ac | 1 + lib/vxworks/testsuite/Makefile| 43 testsuite/Makefile.am | 6 +- testsuite/vxworkstests/Makefile.am| 100

[PATCH 5/9] alchemytests: Fix gcc warning in buffer-1

2022-04-13 Thread Richard Weinberger via Xenomai
Make n an unsigned integer, such that gcc realizes that "%.2d" cannot become negative and will fit into our 3 bytes buffer. Fixes: buffer-1.c:64:15: error: ‘%.2d’ directive writing between 2 and 10 bytes into a region of size 3 [-Werror=format-overflow=] sprintf(s, "%.2d", 11 * n);

[PATCH 7/9] testsuite: Move pSOS tests into testsuite/

2022-04-13 Thread Richard Weinberger via Xenomai
Just like for alchemy tests, integrate them into our test suite. Signed-off-by: Richard Weinberger --- configure.ac | 1 + lib/psos/testsuite/Makefile | 49 -- testsuite/Makefile.am | 6 +-

[PATCH 8/9] testsuite: Add a simple test driver for psostests

2022-04-13 Thread Richard Weinberger via Xenomai
Just like for alchemytests. Signed-off-by: Richard Weinberger --- testsuite/psostests/Makefile.am | 15 - testsuite/psostests/psostest_driver.c | 85 +++ 2 files changed, 99 insertions(+), 1 deletion(-) create mode 100644 testsuite/psostests/psostest_driver.c

[PATCH 4/9] Remove old alchemy tests Makefile

2022-04-13 Thread Richard Weinberger via Xenomai
Signed-off-by: Richard Weinberger --- lib/alchemy/testsuite/Makefile | 70 -- 1 file changed, 70 deletions(-) delete mode 100644 lib/alchemy/testsuite/Makefile diff --git a/lib/alchemy/testsuite/Makefile b/lib/alchemy/testsuite/Makefile deleted file mode 100644

Re: [PATCH 0/6] Revive alchemy tests

2022-04-13 Thread Jan Kiszka via Xenomai
On 13.04.22 16:14, Richard Weinberger wrote: > - Ursprüngliche Mail - >> Von: "Jan Kiszka" >> An: "richard" , "xenomai" >> Gesendet: Mittwoch, 13. April 2022 14:56:16 >> Betreff: Re: [PATCH 0/6] Revive alchemy tests > >> On 08.04.22 10:03, Richard Weinberger via Xenomai wrote: >>> This

Re: Does Xenomai 3.2.x work with 4.14.x kernels?

2022-04-13 Thread Jan Kiszka via Xenomai
On 13.04.22 11:25, Scott Reed via Xenomai wrote: > Hello, > > I am trying to build a 4.14.110 kernel+ipipe+xenomai_3.2.7 and running into > issues when trying to compile. Namely, the 4.14.x kernel does not seem > to understand the "__kernel_timespec" struct. > > Is it known if Xenomai 3.2.x

Re: Analogy supported DAQ

2022-04-13 Thread Jan Kiszka via Xenomai
On 12.04.22 18:36, Ivan F. Valerio via Xenomai wrote: > Hello, > > I am looking to use Xenomai's analogy to connect my application to a NI > PCIe DAQ card. I found your list of supported hardware for analogy, and > the only PCIe found in your list are no longer supported by National >

Re: [PATCH 0/6] Revive alchemy tests

2022-04-13 Thread Richard Weinberger via Xenomai
- Ursprüngliche Mail - > Von: "Jan Kiszka" > An: "richard" , "xenomai" > Gesendet: Mittwoch, 13. April 2022 14:56:16 > Betreff: Re: [PATCH 0/6] Revive alchemy tests > On 08.04.22 10:03, Richard Weinberger via Xenomai wrote: >> This patch series is a first attempt to integrate the

Re: [PATCH 0/6] Revive alchemy tests

2022-04-13 Thread Jan Kiszka via Xenomai
On 08.04.22 10:03, Richard Weinberger via Xenomai wrote: > This patch series is a first attempt to integrate the currently abandoned > alchemy tests into Xenomai's test suite. > Since each test assumes running as own process a test driver is needed > which executes each tests separately. > The

[PATCH 1/2] debian: Remove --enable-smp

2022-04-13 Thread Richard Weinberger via Xenomai
SMP is now enabled by default for all architectures. No need to use --enable-smp anymore. Signed-off-by: Richard Weinberger --- debian/rules | 1 - 1 file changed, 1 deletion(-) diff --git a/debian/rules b/debian/rules index 3fe6bece93c9..60094734630d 100755 --- a/debian/rules +++

[PATCH 2/2] doc: Remove references to --enable-smp

2022-04-13 Thread Richard Weinberger via Xenomai
SMP is enabled by default, remove usage of --enable-smp and document how to disable SMP, if needed. Signed-off-by: Richard Weinberger --- doc/asciidoc/README.INSTALL.adoc | 15 ++- 1 file changed, 6 insertions(+), 9 deletions(-) diff --git a/doc/asciidoc/README.INSTALL.adoc

Re: [PATCH] configure.ac: Enable SMP by default

2022-04-13 Thread Jan Kiszka via Xenomai
On 08.04.22 10:59, Richard Weinberger via Xenomai wrote: > In 2022 it is hard to find ARM or x86 systems without SMP. > Other CPU architectures are no longer supported by Xenomai. > So, make SMP support opt-out. > > Signed-off-by: Richard Weinberger > --- > configure.ac | 7 ++- > 1 file

Re: [PATCH 5/5] drivers: ipc: enable non-blocking write from regular threads

2022-04-13 Thread Jan Kiszka via Xenomai
On 06.04.22 17:56, Philippe Gerum via Xenomai wrote: > From: Philippe Gerum > > Regular threads should be allowed to write to RTIPC sockets provided > MSG_DONTWAIT is implicitly set for such a request. This would match > the existing behavior with other synchronization objects, such as >

Re: [PATCH 1/5] cobalt/events: add auto-clear feature

2022-04-13 Thread Jan Kiszka via Xenomai
On 07.04.22 19:09, Philippe Gerum wrote: > > Jan Kiszka writes: > >> On 07.04.22 13:16, Philippe Gerum wrote: >>> >>> Jan Kiszka writes: >>> On 06.04.22 17:56, Philippe Gerum via Xenomai wrote: > From: Philippe Gerum > > The current implementation does not atomically

Does Xenomai 3.2.x work with 4.14.x kernels?

2022-04-13 Thread Scott Reed via Xenomai
Hello, I am trying to build a 4.14.110 kernel+ipipe+xenomai_3.2.7 and running into issues when trying to compile. Namely, the 4.14.x kernel does not seem to understand the "__kernel_timespec" struct. Is it known if Xenomai 3.2.x works with 4.14.x kernels? Some background information