Skip to contentSkip to conversation

timerbench tests don't work with SVN

Xenomai-core Jan Kiszka 2 participants 5 messages Jan 4, 2007 – Jan 5, 2007

lore
Share & tools
lore

Jan Kiszka

author
#0 lore raw

Hi Philippe,

likely a regression of latest timer base patches: with periodic support enabled (haven't tested the off case yet), latency -t1/2 no longer work. I have no time to look at this, so I just dump my report here. :)

Jan

PS: Is there an official nucleus API to convert dates between timebases? I'm asking because of the open question how to share RTDM drivers between skins on different timer bases. Right now it looks to me like RTDM is locked to one base (configured at compile or module load time) and cannot be shared.

#1 lore raw
Quoted 6 lines · Jan Kiszka

Hi Philippe,

likely a regression of latest timer base patches: with periodic support enabled (haven't tested the off case yet), latency -t1/2 no longer work. I have no time to look at this, so I just dump my report here. :)

Quoted 9 lines

Jan

PS: Is there an official nucleus API to convert dates between timebases? I'm asking because of the open question how to share RTDM drivers between skins on different timer bases. Right now it looks to me like RTDM is locked to one base (configured at compile or module load time) and cannot be shared.

This is the same situation than before, except that now, RTDM can choose the timebase it is locked on. There is no conversion API right now, but we could define xntbase_convert(inbase, rtdm_base), with inbase being extracted from xnthread_timebase(xnpod_current_thread()) for primary context services. The question remains open on how to get the inbase pointer for seconday mode callers though.

Signature · 1 line
Philippe.
#3 lore raw
In reply to Jan Kiszka
Quoted 6 lines · Jan Kiszka

Hi Philippe,

likely a regression of latest timer base patches: with periodic support enabled (haven't tested the off case yet), latency -t1/2 no longer work. I have no time to look at this, so I just dump my report here. :)

Btw, it works fine on my testboxes UP/SMP, so this may be a config-dependent issue which I have overlooked. Please send me your .config. TIA,

Quoted 9 lines

Jan

PS: Is there an official nucleus API to convert dates between timebases? I'm asking because of the open question how to share RTDM drivers between skins on different timer bases. Right now it looks to me like RTDM is locked to one base (configured at compile or module load time) and cannot be shared.

Signature · 1 line
Philippe.
#2 lore raw
In reply to Philippe Gerum
Quoted 17 lines · Philippe Gerum
Quoted 6 lines · Jan Kiszka

Hi Philippe,

likely a regression of latest timer base patches: with periodic support enabled (haven't tested the off case yet), latency -t1/2 no longer work. I have no time to look at this, so I just dump my report here. :)

Quoted 9 lines

Jan

PS: Is there an official nucleus API to convert dates between timebases? I'm asking because of the open question how to share RTDM drivers between skins on different timer bases. Right now it looks to me like RTDM is locked to one base (configured at compile or module load time) and cannot be shared.

Quoted 7 lines

This is the same situation than before, except that now, RTDM can choose the timebase it is locked on. There is no conversion API right now, but we could define xntbase_convert(inbase, rtdm_base), with inbase being extracted from xnthread_timebase(xnpod_current_thread()) for primary context services. The question remains open on how to get the inbase pointer for seconday mode callers though.

Mm, silly me: xnthread_timebase(xnshadow_thread(current)) if the argument is non-null, or we would force the master time base if current is not a real-time shadow, IOW plain Linux tasks would always call -nrt services with nanosecond based timeout and delays. So this should be a no-brainer.

Signature · 1 line
Philippe.
#4 lore raw
In reply to Jan Kiszka
Quoted 5 lines · Jan Kiszka

Hi Philippe,

likely a regression of latest timer base patches: with periodic support enabled (haven't tested the off case yet), latency -t1/2 no longer work. I have no time to look at this, so I just dump my report here. :)

Ok, fixed by #2054.

Signature · 1 line
Philippe.