From: Markus Franke <Markus.Franke@domain.hid>
To: Anders Blomdell <anders.blomdell@domain.hid>
Cc: xenomai@xenomai.org
Subject: Re: [Xenomai-help] parallelport module for measuring external interrupt latency
Date: Thu, 04 Jan 2007 19:27:28 +0100 [thread overview]
Message-ID: <459D4710.3070403@domain.hid> (raw)
In-Reply-To: <459CC4D9.9080404@domain.hid>
[-- Attachment #1: Type: text/plain, Size: 834 bytes --]
Anders Blomdell wrote:
> The code looks OK, but if you hit some unsigned - signed - unsigned
> conversion during wraparounds, the latencies experienced suggest that
> you run a 1.5 GHz computer (or possibly a 3GHz, never get the 2^32 vs
> 2^31 stuff right):
>
> 2^31/1.5 -> 1.4317e+09 Hz
>
> BTW: Why not use the 64 bit value from rdtsc (but storing the diff in a
> 32 bit quantity to get the divide right in kernel space)?.
This was a rather good idea. I changed it in a way you suggested.
Another problem was that I wrote something like:
outb(...)
rdtsc(start_time)
Sometimes the ISR set up end_time before the start_time could be set.
This was another problem. I just swapped the two lines above and reduced
the measured time by the overhead which is incured by rdtsc(). The
results look quite reasonable.
Regards,
Markus
[-- Attachment #2: Markus.Franke.vcf --]
[-- Type: text/x-vcard, Size: 245 bytes --]
begin:vcard
fn:Markus Franke
n:Franke;Markus
adr;quoted-printable:;;Vettersstra=C3=9Fe 64/722;Chemnitz;Saxony;09126;Germany
email;internet:Markus.Franke@domain.hid
x-mozilla-html:FALSE
url:http://www.tu-chemnitz.de/~franm
version:2.1
end:vcard
prev parent reply other threads:[~2007-01-04 18:27 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-01-03 8:47 [Xenomai-help] parallelport module for measuring external interrupt latency Markus Franke
2007-01-03 9:50 ` Jan Kiszka
2007-01-03 10:20 ` Markus Franke
2007-01-03 10:48 ` Jan Kiszka
2007-01-03 20:36 ` Markus Franke
2007-01-03 20:58 ` Jan Kiszka
[not found] ` <459CC4D9.9080404@domain.hid>
2007-01-04 18:27 ` Markus Franke [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=459D4710.3070403@domain.hid \
--to=markus.franke@domain.hid \
--cc=anders.blomdell@domain.hid \
--cc=xenomai@xenomai.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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.