Wrap Interrupt Handlers for Recording?

Sebastian Huber sebastian.huber at embedded-brains.de
Wed Sep 4 16:09:44 UTC 2019


I would like to wrap calls to interrupt handlers which use the generic interrupt framework (<rtems/irq-extension.h>) to get RTEMS_RECORD_INTERRUPT_ENTRY and RTEMS_RECORD_INTERRUPT_EXIT events. This cannot be done by the linker since the loop to call the handlers is inlined due to performance reasons. I would like to add some sort of a callback mechanism which is invoked in rtems_interrupt_handler_install() and rtems_interrupt_handler_remove() operations (similar to the user extensions). There are some options to do this.

1. A new linker set with functions.

2. A new user extension, maybe a generic:

  void (*event)(rtems_extension_event event, void *arg);

3. An API to install/remove a specific callback for this purpose.

I am in favour of 1. I also would like to hide it from the user for now.

Sebastian Huber, embedded brains GmbH

Address : Dornierstr. 4, D-82178 Puchheim, Germany
Phone   : +49 89 189 47 41-16
Fax     : +49 89 189 47 41-09
E-Mail  : sebastian.huber at embedded-brains.de
PGP     : Public key available on request.

Diese Nachricht ist keine geschäftliche Mitteilung im Sinne des EHUG.

More information about the devel mailing list