Xenomai 3.0rc creating alchemy task in a shared object
Hello,
i ve got a working xenomai application using alchemy tasks and try to outource funtionallity into a shared object. If i try to create a thread (same code like in the application) in the shared object rt_create_task allways returns EEXISTS. Name parameter change or set to NULL does not change anything.
Are there any side effects if i try to create alchemy tasks inside a shared object or are there any restrictions?
Regards
Sascha
Quoted 11 lines · Registrierungen
Hello,
i ve got a working xenomai application using alchemy tasks and try to outource funtionallity into a shared object.
If i try to create a thread (same code like in the application) in the shared objectrt_create_taskallways returns EEXISTS.
Name parameter change or set to NULL does not change anything.Are there any side effects if i try to create alchemy tasks inside a shared object or are there any restrictions?
Short answer, no. However, I can't comment more on this issue, since I don't know which -rc you are currently running, whether this is a dual kernel or single kernel configuration, etc.
The output of the following command may help:
$ ./your-app --dump-config
Signature · 1 line
Philippe.
Thanks for your reply.
Please not that it works fine for the standalone application.
Just in case, the task is created inside a staticaly linked shared object the error occurs.
Here ist the config:
CONFIG_MMU=1CONFIG_SMP=1CONFIG_XENO_BUILD_ARGS=" '--prefix=/usr' '--includedir=/usr/include/xenomai' '--mandir=/usr/share/man' '--with-testdir=/usr/lib/xenomai/testsuite' '--build' 'x86_64-linux-gnu' 'build_alias=x86_64-linux-gnu'" CONFIG_XENO_BUILD_STRING="x86_64-pc-linux-gnu"CONFIG_XENO_COBALT=1CONFIG_XENO_COMPILER="gcc version 4.8.2 (Ubuntu 4.8.2-19ubuntu1) "CONFIG_XENO_DEFAULT_PERIOD=100000CONFIG_XENO_FORTIFY=1CONFIG_XENO_HOST_STRING="x86_64-pc-linux-gnu"CONFIG_XENO_LORES_CLOCK_DISABLED=1CONFIG_XENO_PREFIX="/usr"CONFIG_XENO_RAW_CLOCK_ENABLED=1CONFIG_XENO_REVISION_LEVEL=9CONFIG_XENO_SANITY=1CONFIG_XENO_TLSF=1CONFIG_XENO_TLS_MODEL="initial-exec"CONFIG_XENO_UAPI_LEVEL=9CONFIG_XENO_VERSION_MAJOR=2CONFIG_XENO_VERSION_MINOR=99CONFIG_XENO_VERSION_NAME="Exact Zero"CONFIG_XENO_VERSION_STRING="3.0-rc1"CONFIG_XENO_X86_VSYSCALL=1
---CONFIG_XENO_ARM_SA1100 is OFFCONFIG_XENO_ARM_TSC_TYPE is OFFCONFIG_XENO_ASYNC_CANCEL is OFFCONFIG_XENO_COPPERPLATE_CLOCK_RESTRICTED is OFFCONFIG_XENO_CPU_XSC3 is OFFCONFIG_XENO_DEBUG is OFFCONFIG_XENO_DEBUG_FULL is OFFCONFIG_XENO_LIBS_DLOPEN is OFFCONFIG_XENO_MERCURY is OFFCONFIG_XENO_PSHARED is OFFCONFIG_XENO_REGISTRY is OFFCONFIG_XENO_VALGRIND_API is OFF
Regards
Sascha
Am 30.04.2015 um 09:34 schrieb Philippe Gerum:
Quoted 20 lines · Registrierungen
Quoted 11 lines
Hello,
i ve got a working xenomai application using alchemy tasks and try to outource funtionallity into a shared object.
If i try to create a thread (same code like in the application) in the shared objectrt_create_taskallways returns EEXISTS.
Name parameter change or set to NULL does not change anything.Are there any side effects if i try to create alchemy tasks inside a shared object or are there any restrictions?
Short answer, no. However, I can't comment more on this issue, since I don't know which -rc you are currently running, whether this is a dual kernel or single kernel configuration, etc.
The output of the following command may help:
$ ./your-app --dump-config
Quoted 6 lines · Registrierungen
Thanks for your reply.
Please not that it works fine for the standalone application.
Just in case, the task is created inside a staticaly linked shared object the error occurs.
Could you sketch how this app is organized, and how the compilation units are linked together? e.g. is this something like this?
main executable (foo.c somelib.so)
calls do_task_init()
somelib.so (bar.c)
do_task_init() => calls rt_task_create()
Or are you doing late binding via dlopen()?
Quoted 4 lines
Here ist the config:
CONFIG_XENO_VERSION_STRING="3.0-rc1"
Please upgrade to -rc4 at the very least before more time is spent on any issue involving xenomai3.
Signature · 1 line
Philippe.