From: Gilles Chanteperdrix <gilles.chanteperdrix@xenomai.org>
To: Henri Roosen <henriroosen@domain.hid>
Cc: xenomai@xenomai.org
Subject: Re: [Xenomai-help] Exception handlers in primary domain / user-space signals
Date: Fri, 15 Apr 2011 15:33:11 +0200 [thread overview]
Message-ID: <4DA84917.1000400@domain.hid> (raw)
In-Reply-To: <BANLkTim+YXr+_tpF+np3S_+O1CSNNOSVLQ@mail.gmail.com>
Henri Roosen wrote:
> Ok, I'm back on this one now.
>
> I couldn't find the 'the signal rebase over the mayday support'
> patches which Philippe mentioned. I searched the xenomai-2.5 and
> xenomai-head trees. Is it somewhere available? It might be a good
> starting point.
When Philippe said: "So you need the signal rebase over the mayday
support I merged a few months ago.". The "I merged a few months ago" was
referring to the mayday support, not the signal rebase. This signal
rebase does not exist. Because, especially due to FPU handling, it is
not a trivial thing to do. sigcontext makes things even more complicated.
>
> The way I see it, currently available is an implementation like used
> in sigtest. This means using a special skin that gets a handler
> installed for signals at xeno_bind_skin(..., handler). Current status
> seems to me a framework for supporting kill system calls. As far as I
> can see the signal reporting part has no support for sigcontext (which
> is a requirement for us). Also there is no connection of events like
> SIGFPE to this mechanism.
The current framework allows:
- sending a signal to a thread
- getting the handler executed by the thread.
But, nothing sends signals to a thread, and nothings allows registering
handlers for handling different signals.
What the mayday support would changes is the way a signal handler could
get executed by a thread.
>
> Where I see the mayday implementation comes in use is when sending
> signals to other threads: it forces the target thread to make a kernel
> call from userspace. Then the handle_rt_signals() function can handle
> the pending signals.
> Is the mayday implementation also needed for exception signals
> (SIGFPE), which are generated by the task itself? I see the current
> implementation needs a system call from userspace to provide the
> struct xnsigs to kernel space. So I guess answer to the last question
> is yes... but that might also have some overhead as we were in kernel
> space already..
No real overhead. Since we are in kernel-space, the signal handler will
get executed when going back to user-space. The exception causes a
switch to kernel-space anyway.
>
> Is it a good idea to implement SIGFPE support using the signal-skin?
I think it is a better idea to implement this with whatever skin you are
using native, posix, etc...
>
> So for me there are some unclarities of how to implement primary
> domain exception handling from userspace. Would be good when this
> email triggers a discussion of how to correctly implement it so I can
> then make a useful contribution to the project.
>
> Thanks,
> Henri.
>
--
Gilles.
next prev parent reply other threads:[~2011-04-15 13:33 UTC|newest]
Thread overview: 27+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-02-07 17:35 [Xenomai-help] Exception handlers in primary domain / user-space signals Henri Roosen
2011-02-07 18:27 ` Gilles Chanteperdrix
2011-02-07 19:02 ` Henri Roosen
2011-02-07 19:08 ` Gilles Chanteperdrix
2011-02-08 8:21 ` Henri Roosen
2011-02-08 8:38 ` Philippe Gerum
2011-02-08 9:10 ` Henri Roosen
2011-02-08 9:15 ` Philippe Gerum
2011-02-08 12:09 ` Gilles Chanteperdrix
2011-02-08 12:12 ` Philippe Gerum
2011-02-08 12:16 ` Gilles Chanteperdrix
2011-02-08 12:22 ` Philippe Gerum
2011-02-08 12:31 ` Gilles Chanteperdrix
2011-02-08 12:51 ` Henri Roosen
2011-02-08 12:56 ` Philippe Gerum
2011-02-08 13:11 ` Gilles Chanteperdrix
2011-02-08 13:25 ` Philippe Gerum
2011-02-11 9:44 ` Henri Roosen
2011-04-15 12:58 ` Henri Roosen
2011-04-15 13:33 ` Gilles Chanteperdrix [this message]
2011-04-19 16:30 ` [Xenomai-help] Xenomai rt_printf() don't print davide doninelli
2011-04-19 17:13 ` Gilles Chanteperdrix
2011-04-19 17:39 ` davide doninelli
2011-04-19 17:43 ` Gilles Chanteperdrix
2011-05-04 6:24 ` davide doninelli
2011-05-19 8:35 ` [Xenomai-help] Exception handlers in primary domain / user-space signals Henri Roosen
2011-02-08 12:53 ` Philippe Gerum
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=4DA84917.1000400@domain.hid \
--to=gilles.chanteperdrix@xenomai.org \
--cc=henriroosen@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.