* [Xenomai-help] native kernel task example
@ 2010-05-12 20:05 Ramon
2010-05-12 20:26 ` Wolfgang Grandegger
0 siblings, 1 reply; 5+ messages in thread
From: Ramon @ 2010-05-12 20:05 UTC (permalink / raw)
To: xenomai
Hi,
I'm looking for a very simple kernel task using native api.
A very simple one would be nice, a periodical task for example.
I'm interested in the .c file and its Makefile.
Thank you in advance.
Ramon
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [Xenomai-help] native kernel task example
2010-05-12 20:05 [Xenomai-help] native kernel task example Ramon
@ 2010-05-12 20:26 ` Wolfgang Grandegger
2010-05-12 21:22 ` Jan Kiszka
0 siblings, 1 reply; 5+ messages in thread
From: Wolfgang Grandegger @ 2010-05-12 20:26 UTC (permalink / raw)
To: ramoncostacastello; +Cc: xenomai
On 05/12/2010 10:05 PM, Ramon wrote:
> Hi,
>
> I'm looking for a very simple kernel task using native api.
> A very simple one would be nice, a periodical task for example.
>
> I'm interested in the .c file and its Makefile.
You can find examples in the "examples" directory of the Xenomai tree
as documented here:
http://xenomai.org/index.php/Examples
http://www.rts.uni-hannover.de/xenomai/lxr/source/examples/native/trivial-periodic.c
might be what you are looking for.
Wolfgang.
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [Xenomai-help] native kernel task example
2010-05-12 20:26 ` Wolfgang Grandegger
@ 2010-05-12 21:22 ` Jan Kiszka
2010-05-13 8:28 ` Ramon
0 siblings, 1 reply; 5+ messages in thread
From: Jan Kiszka @ 2010-05-12 21:22 UTC (permalink / raw)
To: ramoncostacastello; +Cc: xenomai
[-- Attachment #1: Type: text/plain, Size: 733 bytes --]
Wolfgang Grandegger wrote:
> On 05/12/2010 10:05 PM, Ramon wrote:
>> Hi,
>>
>> I'm looking for a very simple kernel task using native api.
>> A very simple one would be nice, a periodical task for example.
>>
>> I'm interested in the .c file and its Makefile.
>
> You can find examples in the "examples" directory of the Xenomai tree
> as documented here:
>
> http://xenomai.org/index.php/Examples
>
> http://www.rts.uni-hannover.de/xenomai/lxr/source/examples/native/trivial-periodic.c
>
> might be what you are looking for.
>
> Wolfgang.
Just be warned that the in-kernel skin usage is considered deprecated
(with exception of RTDM). It may not be the best choice when starting
something new.
Jan
[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 257 bytes --]
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [Xenomai-help] native kernel task example
2010-05-12 21:22 ` Jan Kiszka
@ 2010-05-13 8:28 ` Ramon
2010-05-13 9:06 ` Jan Kiszka
0 siblings, 1 reply; 5+ messages in thread
From: Ramon @ 2010-05-13 8:28 UTC (permalink / raw)
To: Jan Kiszka; +Cc: xenomai
Hi,
I have a system developed (teaching and research purposes) developed in
RTLinuxfree and currently I'm trying to migrate
this system to Xenomai (several task periodical task with period of
100us (one at 50us)).
As a first step I would like to run them at kernel level to preserve
performance (hard realtime), latter I will try to migrate
user space.
This task contains low level commands (out, in commands to access AD/DA
card registers)
Any suggestion ?
Best wishes
Ramon
On 12/05/2010 23:22, Jan Kiszka wrote:
> Wolfgang Grandegger wrote:
>
>> On 05/12/2010 10:05 PM, Ramon wrote:
>>
>>> Hi,
>>>
>>> I'm looking for a very simple kernel task using native api.
>>> A very simple one would be nice, a periodical task for example.
>>>
>>> I'm interested in the .c file and its Makefile.
>>>
>> You can find examples in the "examples" directory of the Xenomai tree
>> as documented here:
>>
>> http://xenomai.org/index.php/Examples
>>
>> http://www.rts.uni-hannover.de/xenomai/lxr/source/examples/native/trivial-periodic.c
>>
>> might be what you are looking for.
>>
>> Wolfgang.
>>
> Just be warned that the in-kernel skin usage is considered deprecated
> (with exception of RTDM). It may not be the best choice when starting
> something new.
>
> Jan
>
>
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [Xenomai-help] native kernel task example
2010-05-13 8:28 ` Ramon
@ 2010-05-13 9:06 ` Jan Kiszka
0 siblings, 0 replies; 5+ messages in thread
From: Jan Kiszka @ 2010-05-13 9:06 UTC (permalink / raw)
To: ramoncostacastello; +Cc: xenomai
[-- Attachment #1: Type: text/plain, Size: 1300 bytes --]
Ramon wrote:
> Hi,
>
> I have a system developed (teaching and research purposes) developed in
> RTLinuxfree and currently I'm trying to migrate
> this system to Xenomai (several task periodical task with period of
> 100us (one at 50us)).
> As a first step I would like to run them at kernel level to preserve
> performance (hard realtime),
Unless your system is already running on its limits with this 20 KHz
job, kernel vs. user space won't make the big difference. Check the
results of the latency test while loading the system with I/O and memory
cache stress to get a first impression.
> latter I will try to migrate
> user space.
Specifically while trying to stabilize the port, you will quickly love
the robustness of user space: if something crashes or hangs, just attach
gdb - but don't forget to enable the Xenomai watchdog in order to catch
runaway tasks.
>
> This task contains low level commands (out, in commands to access AD/DA
> card registers)
iopl(3) will grant your root user space process in/out privileges. Not
nice, but probably easier as a first step than porting over the Analogy
framework.
Jan
PS: Specifically for educational purposes, it is a bad idea to continue
spreading the legacy concept of kernel-based RT applications.
[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 257 bytes --]
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2010-05-13 9:06 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-05-12 20:05 [Xenomai-help] native kernel task example Ramon
2010-05-12 20:26 ` Wolfgang Grandegger
2010-05-12 21:22 ` Jan Kiszka
2010-05-13 8:28 ` Ramon
2010-05-13 9:06 ` Jan Kiszka
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.