* [Xenomai] Xenomai 3.0rc creating alchemy task in a shared object
@ 2015-04-30 5:37 Registrierungen
2015-04-30 7:34 ` Philippe Gerum
0 siblings, 1 reply; 4+ messages in thread
From: Registrierungen @ 2015-04-30 5:37 UTC (permalink / raw)
To: xenomai
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
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [Xenomai] Xenomai 3.0rc creating alchemy task in a shared object
2015-04-30 5:37 [Xenomai] Xenomai 3.0rc creating alchemy task in a shared object Registrierungen
@ 2015-04-30 7:34 ` Philippe Gerum
2015-04-30 8:04 ` Registrierungen
0 siblings, 1 reply; 4+ messages in thread
From: Philippe Gerum @ 2015-04-30 7:34 UTC (permalink / raw)
To: Registrierungen, xenomai
On 04/30/2015 07:37 AM, Registrierungen wrote:
> 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?
>
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
--
Philippe.
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [Xenomai] Xenomai 3.0rc creating alchemy task in a shared object
2015-04-30 7:34 ` Philippe Gerum
@ 2015-04-30 8:04 ` Registrierungen
2015-04-30 8:23 ` Philippe Gerum
0 siblings, 1 reply; 4+ messages in thread
From: Registrierungen @ 2015-04-30 8:04 UTC (permalink / raw)
To: Philippe Gerum, xenomai
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=1
CONFIG_SMP=1
CONFIG_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=1
CONFIG_XENO_COMPILER="gcc version 4.8.2 (Ubuntu 4.8.2-19ubuntu1) "
CONFIG_XENO_DEFAULT_PERIOD=100000
CONFIG_XENO_FORTIFY=1
CONFIG_XENO_HOST_STRING="x86_64-pc-linux-gnu"
CONFIG_XENO_LORES_CLOCK_DISABLED=1
CONFIG_XENO_PREFIX="/usr"
CONFIG_XENO_RAW_CLOCK_ENABLED=1
CONFIG_XENO_REVISION_LEVEL=9
CONFIG_XENO_SANITY=1
CONFIG_XENO_TLSF=1
CONFIG_XENO_TLS_MODEL="initial-exec"
CONFIG_XENO_UAPI_LEVEL=9
CONFIG_XENO_VERSION_MAJOR=2
CONFIG_XENO_VERSION_MINOR=99
CONFIG_XENO_VERSION_NAME="Exact Zero"
CONFIG_XENO_VERSION_STRING="3.0-rc1"
CONFIG_XENO_X86_VSYSCALL=1
---
CONFIG_XENO_ARM_SA1100 is OFF
CONFIG_XENO_ARM_TSC_TYPE is OFF
CONFIG_XENO_ASYNC_CANCEL is OFF
CONFIG_XENO_COPPERPLATE_CLOCK_RESTRICTED is OFF
CONFIG_XENO_CPU_XSC3 is OFF
CONFIG_XENO_DEBUG is OFF
CONFIG_XENO_DEBUG_FULL is OFF
CONFIG_XENO_LIBS_DLOPEN is OFF
CONFIG_XENO_MERCURY is OFF
CONFIG_XENO_PSHARED is OFF
CONFIG_XENO_REGISTRY is OFF
CONFIG_XENO_VALGRIND_API is OFF
Regards
Sascha
Am 30.04.2015 um 09:34 schrieb Philippe Gerum:
> On 04/30/2015 07:37 AM, Registrierungen wrote:
>> 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?
>>
> 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
>
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [Xenomai] Xenomai 3.0rc creating alchemy task in a shared object
2015-04-30 8:04 ` Registrierungen
@ 2015-04-30 8:23 ` Philippe Gerum
0 siblings, 0 replies; 4+ messages in thread
From: Philippe Gerum @ 2015-04-30 8:23 UTC (permalink / raw)
To: Registrierungen, xenomai
On 04/30/2015 10:04 AM, Registrierungen wrote:
> 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()?
>
> 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.
--
Philippe.
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2015-04-30 8:23 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-04-30 5:37 [Xenomai] Xenomai 3.0rc creating alchemy task in a shared object Registrierungen
2015-04-30 7:34 ` Philippe Gerum
2015-04-30 8:04 ` Registrierungen
2015-04-30 8:23 ` Philippe Gerum
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.