diff options
author | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2014-03-07 14:36:22 +0100 |
---|---|---|
committer | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2014-03-14 08:46:49 +0100 |
commit | 53ad908a646eb6fd67f9b4586f4b484e8255b9d3 (patch) | |
tree | 7dd408879d01a507e6052f375ec6e14ab3f8965d /testsuites/sptests/sp37 | |
parent | score: Add per-CPU profiling (diff) | |
download | rtems-53ad908a646eb6fd67f9b4586f4b484e8255b9d3.tar.bz2 |
score: Add SMP lock profiling support
Diffstat (limited to 'testsuites/sptests/sp37')
-rw-r--r-- | testsuites/sptests/sp37/init.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/testsuites/sptests/sp37/init.c b/testsuites/sptests/sp37/init.c index 4a3e08c862..1097dc8fab 100644 --- a/testsuites/sptests/sp37/init.c +++ b/testsuites/sptests/sp37/init.c @@ -160,11 +160,11 @@ static void test_isr_level( void ) static void test_isr_locks( void ) { ISR_Level normal_interrupt_level = _ISR_Get_level(); - ISR_lock_Control initialized = ISR_LOCK_INITIALIZER; + ISR_lock_Control initialized = ISR_LOCK_INITIALIZER("test"); ISR_lock_Control lock; ISR_lock_Context lock_context; - _ISR_lock_Initialize( &lock ); + _ISR_lock_Initialize( &lock, "test" ); rtems_test_assert( memcmp( &lock, &initialized, sizeof( lock ) ) == 0 ); _ISR_lock_ISR_disable_and_acquire( &lock, &lock_context ); @@ -197,11 +197,11 @@ static rtems_mode get_interrupt_level( void ) static void test_interrupt_locks( void ) { rtems_mode normal_interrupt_level = get_interrupt_level(); - rtems_interrupt_lock initialized = RTEMS_INTERRUPT_LOCK_INITIALIZER; + rtems_interrupt_lock initialized = RTEMS_INTERRUPT_LOCK_INITIALIZER("test"); rtems_interrupt_lock lock; rtems_interrupt_lock_context lock_context; - rtems_interrupt_lock_initialize( &lock ); + rtems_interrupt_lock_initialize( &lock, "test" ); rtems_test_assert( memcmp( &lock, &initialized, sizeof( lock ) ) == 0 ); rtems_interrupt_lock_acquire( &lock, &lock_context ); |