Skip to contentSkip to conversation

measuring external interrupt latency

Xenomai-help Markus Franke 2 participants 2 messages Dec 15, 2006

lore
Share & tools
lore
#0 lore raw

Dear Xenomai users/developers,

I want to measure external interrupt latencies. Therefore, I have a parallel port loopback connector (25 pins). Pin 9 (D7) and Pin 10 (ACK) are connected. I would like to trigger an interrupt via Pin 9 and measure the time till the ISR is entered.

Can somebody give me a hint how to start writing such an application. I read something about RTDM and I also had a look on the IRQ-Loop testsuite. I am wondering whether I can reuse some of this code which is written there. Besides, is it really necessary to use the RTDM framework?

Sorry, but I am really new to Xenomai. I just want to have some small hints how to start developing.

Thanks in advance,

Markus Franke

begin:vcard
fn:Markus Franke
n:Franke;Markus
adr;quoted-printable:;;Vettersstra=C3=9Fe 64/722;Chemnitz;Saxony;09126;Germany email;internet:[email protected]
x-mozilla-html:FALSE
url:http://www.tu-chemnitz.de/~franm
version:2.1
end:vcard

#1 lore raw
Quoted 6 lines · Markus Franke

Dear Xenomai users/developers,

I want to measure external interrupt latencies. Therefore, I have a parallel port loopback connector (25 pins). Pin 9 (D7) and Pin 10 (ACK) are connected. I would like to trigger an interrupt via Pin 9 and measure the time till the ISR is entered.

If you trigger the IRQ with the target itself, you do not generate realistic load. Reason: the task (RT or not) flipping the related port bit will always move the system into a similar state right before the IRQ event. With an asynchronous external IRQ source, you can hit the system in far more interesting states (given you generate adequate load, see TROUBLESHOOTING).

Quoted 3 lines

Can somebody give me a hint how to start writing such an application. I read something about RTDM and I also had a look on the IRQ-Loop

Why do you want to rewrite the existing tests? As an exercise, or is something missing? If the latter, I would rather suggest to enhance them (and post patches afterwards :) ).

Quoted 2 lines

testsuite. I am wondering whether I can reuse some of this code which is written there. Besides, is it really necessary to use the RTDM framework?

Technically, you don't need RTDM, you could achieve most features also via other skins (some scenarios will still require kernel space nevertheless). We picked RTDM for the tests to benchmark scenarios you will (should) have later on your real system as well: cleanly separated applications talking to RTDM drivers controlling the hardware.

Quoted 9 lines

Sorry, but I am really new to Xenomai. I just want to have some small hints how to start developing.

Thanks in advance,

Markus Franke

Jan