diff options
author | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2022-12-01 10:21:25 +0100 |
---|---|---|
committer | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2022-12-02 10:25:44 +0100 |
commit | c46fbb955258df3ff3c325dadd1a6c17ee81a914 (patch) | |
tree | 1895f6eb6ffe8cba7928820e98c11df1a92825cc /cpukit/include | |
parent | bsps/irq: Add bsp_interrupt_get_dispatch_table_slot() (diff) | |
download | rtems-c46fbb955258df3ff3c325dadd1a6c17ee81a914.tar.bz2 |
config: Add CONFIGURE_RECORD_INTERRUPTS_ENABLED
This enables the tracing of interrupt entry/exit events through an
application configuration option. The interrupt processing can be
viewed with Trace Compass using rtems-record-lttng from the RTEMS Tools.
Update #4769.
Diffstat (limited to 'cpukit/include')
-rw-r--r-- | cpukit/include/rtems/confdefs/extensions.h | 8 | ||||
-rw-r--r-- | cpukit/include/rtems/record.h | 2 |
2 files changed, 10 insertions, 0 deletions
diff --git a/cpukit/include/rtems/confdefs/extensions.h b/cpukit/include/rtems/confdefs/extensions.h index 118ad29484..a369ef1f61 100644 --- a/cpukit/include/rtems/confdefs/extensions.h +++ b/cpukit/include/rtems/confdefs/extensions.h @@ -188,6 +188,14 @@ extern "C" { RTEMS_SYSINIT_RECORD, RTEMS_SYSINIT_ORDER_MIDDLE ); + + #ifdef CONFIGURE_RECORD_INTERRUPTS_ENABLED + RTEMS_SYSINIT_ITEM( + _Record_Interrupt_initialize, + RTEMS_SYSINIT_LAST, + RTEMS_SYSINIT_ORDER_MIDDLE + ); + #endif #endif #ifdef CONFIGURE_VERBOSE_SYSTEM_INITIALIZATION diff --git a/cpukit/include/rtems/record.h b/cpukit/include/rtems/record.h index a8e115ad44..8a84c22bdc 100644 --- a/cpukit/include/rtems/record.h +++ b/cpukit/include/rtems/record.h @@ -67,6 +67,8 @@ extern const Record_Configuration _Record_Configuration; void _Record_Initialize( void ); +void _Record_Interrupt_initialize( void ); + bool _Record_Thread_create( struct _Thread_Control *executing, struct _Thread_Control *created |