On 19.07.19 12:26, Richard Weinberger via Xenomai wrote: > Hi! > > Is there a way in Xenomai 3 to have a signal alike notification? > > The Xenomai 2 code base I work on needs a way to get exceptions such > as #DB and #BP > delivered to a RT_TASK in real time context. > For Xenomai 2 they implemented a subset of regular RT-signals which > work in real time context. > So the RT_TASK could register a signal handler for #DB on x86. > > Before I start porting this feature to Xenomai 3 (I'll happily publish > these patches) I want > to sort out whether this can be achieved with stock features or > minimal adoptions. >
There is no asynchronous notification via signal handlers in Xenomai. However, we have some downstream code that allows to run pre- and post-debug handlers in prioritized thread context to prepare the external world for potential interruptions due to debugging sessions. I plan to upstream that at some point - too much stuff in the queue, and it's not yet clear if the feature is sufficient for our use case. But maybe we have common requirements here? What may not be very attractive, though, are real signal handlers. They would pull in additional architecture code, not to speak of the complexity when we wanted to model asynchronous POSIX signals correctly. Jan
