root@raspberrypi:/opt/raspberrypi/xenomai-2.6.1/examples/native# make
gcc -I/usr/xenomai/include -D_GNU_SOURCE -D_REENTRANT -D__XENO__ -lnative -L/usr/xenomai/lib -lxenomai -lpthread -lrt -Xlinker -rpath -Xlinker /usr/xenomai/lib trivial-periodic.c -o trivial-periodic
gcc -I/usr/xenomai/include -D_GNU_SOURCE -D_REENTRANT -D__XENO__ -lnative -L/usr/xenomai/lib -lxenomai -lpthread -lrt -Xlinker -rpath -Xlinker /usr/xenomai/lib sigdebug.c -o sigdebug
gcc -I/usr/xenomai/include -D_GNU_SOURCE -D_REENTRANT -D__XENO__ rtprint.c -lnative -L/usr/xenomai/lib -lxenomai -lpthread -lrt -Xlinker -rpath -Xlinker /usr/xenomai/lib -o rtprint... read more
After you prepared the kernel for xenomai you can install the user space tools
- Run the configure script of xenomai
./configure --
- Build xenomai tools
make
- Install the build tools
make install
- Run the latency test script of xenomai
... read more
root@raspberrypi:/opt/raspberrypi/xenomai-2.6.1# /usr/xenomai/bin/latency -T 25
== Sampling period: 1000 us
== Test mode: periodic user-mode task
== All results in microseconds
warming up...
RTT| 00:00:01 (periodic user-mode task, 1000 us period, priority 99)
RTH|----lat min|----lat avg|----lat max|-overrun|---msw|---lat best|--lat worst
RTD| -4.000| -1.000| 26.000| 0| 0| -4.000| 26.000
RTD| -4.000| 0.000| 27.000| 0| 0| -4.000| 27.000
RTD| -4.000| 0.000| 25.000| 0| 0| -4.000| 27.000
RTD| -4.000| -1.000| 27.000| 0| 0| -4.000| 27.000
RTD| -4.000| -1.000| 28.000| 0| 0| -4.000| 28.000
RTD| -4.000| -1.000| 24.000| 0| 0| -4.000| 28.000
RTD| -4.000| 0.000| 27.000| 0| 0| -4.000| 28.000
RTD| -5.000| -1.000| 29.000| 0| 0| -5.000| 29.000
RTD| -4.000| -1.000| 26.000| 0| 0| -5.000| 29.000
RTD| -6.000| -1.000| 30.000| 0| 0| -6.000| 30.000
RTD| -4.000| 0.000| 29.000| 0| 0| -6.000| 30.000
RTD| -4.000| 0.000| 28.000| 0| 0| -6.000| 30.000
RTD| -4.000| 0.000| 30.000| 0| 0| -6.000| 30.000
RTD| -4.000| -1.000| 25.000| 0| 0| -6.000| 30.000
RTD| -4.000| -1.000| 25.000| 0| 0| -6.000| 30.000
RTD| -4.000| -1.000| 28.000| 0| 0| -6.000| 30.000
RTD| -4.000| 0.000| 27.000| 0| 0| -6.000| 30.000
RTD| -4.000| -1.000| 22.000| 0| 0| -6.000| 30.000
RTD| -4.000| -1.000| 27.000| 0| 0| -6.000| 30.000
RTD| -4.000| 0.000| 29.000| 0| 0| -6.000| 30.000
RTD| -4.000| -1.000| 26.000| 0| 0| -6.000| 30.000
RTT| 00:00:22 (periodic user-mode task, 1000 us period, priority 99)
RTH|----lat min|----lat avg|----lat max|-overrun|---msw|---lat best|--lat worst
RTD| -5.000| -1.000| 32.000| 0| 0| -6.000| 32.000
RTD| -4.000| -1.000| 33.000| 0| 0| -6.000| 33.000
RTD| -5.000| 0.000| 27.000| 0| 0| -6.000| 33.000
---|-----------|-----------|-----------|--------|------|-------------------------
RTS| -6.000| 0.000| 33.000| 0| 0| 00:00:25/00:00:25