Skip to contentSkip to conversation

xenomai scheduler's ticks period

Xenomai-help Matthieu 1 participant 1 message Aug 7, 2008 1 message not in the archive

lore
Share & tools
lore

Matthieu

author
#1 lore raw
In reply to a message not in the archive

Hi

I tried to use xntslave_start/stop in my rtdm module, but it seems that, despite xntslave_start/stop instructions are present in my System.map, the linker don't archive :

Quoted 1 line

grep xntslave_start /boot/System.map-2.6.25-pae

    c01629b9 T xntslave_start
    > depmod -F /boot/System.map-2.6.25-pae -e vxworks_tick_time_module.ko
    WARNING: vxworks_tick_time_module.ko needs unknown symbol

xntslave_start
WARNING: vxworks_tick_time_module.ko needs unknown symbol xntslave_stop
I looked at the sources and found that xntbase_start/stop have the same goals, so I use this instead of xntslave_start/stop.

My RTDM driver works well and all my ioctls work too.

I encounter something not expected : when I use xntbase_update to change vxworks timebase period, /proc/xenomai/timebase file gives me the right Resolution for vxworks timebase, but my test program that calculate this value (with a task that waits for a tick thanks to a watchdog and semaphore mechanism) gives me a really wrong value. And I don't know why.

I have an other problem : my rtdm module allows me to get the master time base value using xntbase_get_time(&nktbase), but it seems like the value returned isn't given in nanosecond. I test that getting the value in an approximate 1 second interval, and when I check for the difference between the two values, I get something like 15 to 30 seconds !!

Could you tell me what can I do to find where is the problem ?

Thank you

Matthieu