From: Leopold Palomo Avellaneda <leo@domain.hid>
To: Gilles Chanteperdrix <gilles.chanteperdrix@xenomai.org>
Cc: xenomai@xenomai.org
Subject: Re: [Xenomai-help] OT. A question about constraints in realtime
Date: Wed, 30 Jul 2008 00:39:36 +0200 [thread overview]
Message-ID: <200807300039.36610.leo@domain.hid> (raw)
In-Reply-To: <488F9869.4040003@domain.hid>
[-- Attachment #1: Type: text/plain, Size: 2257 bytes --]
A Dimecres 30 Juliol 2008, Gilles Chanteperdrix va escriure:
> Leopold Palomo Avellaneda wrote:
> > A Dilluns 28 Juliol 2008, Gilles Chanteperdrix va escriure:
> >> Leopold Palomo Avellaneda wrote:
> >>> The sensable people claims that their driver works with some versions
> >>> of Linux (till fedora 4 and some suse) but I'm not be able to run it in
> >>> a debian etch. I don't know if the distros provide a kernel with some
> >>> kind of modifications that solve it, but I don't think so.
> >>>
> >>>
> >>> Well, thanks in advance and I'm sorry for the noise. Really, the
> >>> realtime stuff is something not obvious...
> >
> > First of all thanks for the answer.
> >
> >> The first thing to do is to get statistics about the scheduling latency
> >> of your driver. This means measuring the difference between the date
> >> when the driver (kernel-code) wakes up the task and the date when the
> >> task effectively runs. The bad news is that it will be hard with a
> >> binary-only driver. If the driver has some compilable glue, then you can
> >> hook into this glue, otherwise, you will have to resort to ugly hacks in
> >> the kernel code.
> >
> > Well, I cannot (or it's too difficult to do it with a _only_ binary
> > driver. This driver is a lib (.so) and the user use some functions of
> > that lib.
>
> It is hard, but not impossible.
Sure, but the afford and the skill are not insignificant.
> You can hook into the sys_open function,
> detect that you are opening the driver (using either the device path, or
> current->comm), and in this case, replace the file operation pointer in
> the file descriptor with your own file operations pointers which does
> some tracing then calls the original file operation pointer. So, it is
> not impossible.
Well, the driver is for a device that uses the parallel port. It's a library
that has implemented some kind of loop function and make the transformation
from the values to send to the device and read the device.
I guess that they have a very bad implementation in linux. But, really to me
the question that intrigue me is why it works well in Windows and not in
linux.
Leo
--
--
Linux User 152692
PGP: 0xF944807E
Catalonia
[-- Attachment #2: This is a digitally signed message part. --]
[-- Type: application/pgp-signature, Size: 197 bytes --]
prev parent reply other threads:[~2008-07-29 22:39 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-07-15 21:46 [Xenomai-help] OT. A question about constraints in realtime Leopold Palomo Avellaneda
2008-07-28 10:07 ` Gilles Chanteperdrix
2008-07-29 22:08 ` Leopold Palomo Avellaneda
2008-07-29 22:23 ` Gilles Chanteperdrix
2008-07-29 22:39 ` Leopold Palomo Avellaneda [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=200807300039.36610.leo@domain.hid \
--to=leo@domain.hid \
--cc=gilles.chanteperdrix@xenomai.org \
--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.