Changeset 115e059 in rtems
- Timestamp:
- 11/30/13 21:42:38 (10 years ago)
- Branches:
- 4.11, 5, master
- Children:
- adc2301
- Parents:
- 135e957
- git-author:
- Daniel Ramirez <javamonn@…> (11/30/13 21:42:38)
- git-committer:
- Joel Sherrill <joel.sherrill@…> (11/30/13 21:50:25)
- Location:
- testsuites
- Files:
-
- 1 added
- 8 edited
Legend:
- Unmodified
- Added
- Removed
-
testsuites/psxtmtests/psxtmbarrier03/init.c
r135e957 r115e059 69 69 */ 70 70 benchmark_timer_initialize(); 71 71 status = pthread_barrier_wait( &barrier ); 72 72 end_time = benchmark_timer_read(); 73 73 /* -
testsuites/psxtmtests/psxtmtests_plan.csv
r135e957 r115e059 14 14 "pthread_mutex_getprioceiling","psxtmmutex07","psxtmtest_single","Yes" 15 15 ,,, 16 "pthread_cond_init","psxtmcond01","psxtmtest_init_destroy"," No"17 "pthread_cond_destroy","psxtmcond01","psxtmtest_init_destroy"," No"18 "pthread_cond_signal - no threads waiting","psxtmcond02","psxtmtest_single"," No"19 "pthread_cond_signal - thread waiting: no preempt","psxtmcond03","psxtmtest_unblocking_nopreempt"," No"16 "pthread_cond_init","psxtmcond01","psxtmtest_init_destroy","Yes" 17 "pthread_cond_destroy","psxtmcond01","psxtmtest_init_destroy","Yes" 18 "pthread_cond_signal - no threads waiting","psxtmcond02","psxtmtest_single","Yes" 19 "pthread_cond_signal - thread waiting: no preempt","psxtmcond03","psxtmtest_unblocking_nopreempt","Yes" 20 20 "pthread_cond_signal - thread waiting: preempt","psxtmcond04","psxtmtest_unblocking_preempt","No" 21 "pthread_cond_broadcast - no threads waiting","psxtmcond05","psxtmtest_single"," No"21 "pthread_cond_broadcast - no threads waiting","psxtmcond05","psxtmtest_single","Yes" 22 22 "pthread_cond_broadcast - threads waiting: no preempt","psxtmcond06","psxtmtest_unblocking_nopreempt","No" 23 23 "pthread_cond_broadcast - threads waiting: preempt","psxtmcond07","psxtmtest_unblocking_preempt","No" 24 24 25 "pthread_cond_wait - blocks (mutex+condvar pattern)","psxtmcond08","psxtmtest_blocking"," No"25 "pthread_cond_wait - blocks (mutex+condvar pattern)","psxtmcond08","psxtmtest_blocking","Yes" 26 26 "pthread_cond_timedwait(&time) - blocks (mutex+condvar pattern)","psxtmcond09","psxtmtest_blocking","No" 27 27 "pthread_cond_timedwait(&time) - time in past error","psxtmcond10","psxtmtest_blocking","No" 28 28 ,,, 29 29 "pthread_create - no preempt","psxtmthread01","psxtmtest_single","Yes" 30 "pthread_create - preempt","psxtmthread02","psxtmtest_single"," No"30 "pthread_create - preempt","psxtmthread02","psxtmtest_single","Yes" 31 31 "pthread_join",,, 32 32 "pthread_detach",,, 33 33 "pthread_exit",,, 34 "pthread_self","psxtmthread03","psxtmtest_single w/multiple timings","No" 35 "pthread_equal","psxtmthread03","psxtmtest_single w/multiple timings","No" 34 "pthread_exit","psxtmthread03","psxtmtest_single","Yes" 36 35 "pthread_getschedparam","psxtmthread04","psxtmtest_single w/multiple timings","No" 37 36 "pthread_setschedparam - no thread switch","psxtmthread04","psxtmtest_single w/multiple timings","No" … … 62 61 "pthread_barrier_wait - releasing: preempt","psxtmbarrier04","psxtmtest_unblocking_preempt","Yes" 63 62 ,,, 64 "pthread_spin_init","psxspin01","psxtmtest_init_destroy"," No"65 "pthread_spin_destroy","psxspin01","psxtmtest_init_destroy"," No"66 "pthread_spin_lock - available","psxspin02","psxtmtest_single w/multiple timings"," No"67 "pthread_spin_trylock - available","psxspin02","psxtmtest_single w/multiple timings"," No"68 "pthread_spin_trylock - not available","psxspin02","psxtmtest_single w/multiple timings"," No"69 "pthread_spin_unlock","psxspin02","psxtmtest_single w/multiple timings"," No"63 "pthread_spin_init","psxspin01","psxtmtest_init_destroy","Yes" 64 "pthread_spin_destroy","psxspin01","psxtmtest_init_destroy","Yes" 65 "pthread_spin_lock - available","psxspin02","psxtmtest_single w/multiple timings","Yes" 66 "pthread_spin_trylock - available","psxspin02","psxtmtest_single w/multiple timings","Yes" 67 "pthread_spin_trylock - not available","psxspin02","psxtmtest_single w/multiple timings","Yes" 68 "pthread_spin_unlock","psxspin02","psxtmtest_single w/multiple timings","Yes" 70 69 ,,, 71 70 "pthread_rwlock_init","psxtmrwlock01","psxtmtest_init_destroy","Yes" -
testsuites/psxtmtests/psxtmthread02/init.c
r135e957 r115e059 1 1 /* 2 * COPYRIGHT (c) 1989-201 2.2 * COPYRIGHT (c) 1989-2013. 3 3 * On-Line Applications Research Corporation (OAR). 4 4 * … … 24 24 void benchmark_pthread_create(void) 25 25 { 26 long end_time;27 26 int status; 28 27 pthread_t thread_ID; 28 pthread_attr_t attr; 29 struct sched_param param; 29 30 31 pthread_attr_init(&attr); 32 pthread_attr_setinheritsched(&attr, PTHREAD_EXPLICIT_SCHED); 33 pthread_attr_setschedpolicy(&attr, SCHED_FIFO); 34 param.sched_priority = sched_get_priority_max(SCHED_FIFO) - 1; 35 pthread_attr_setschedparam(&attr, ¶m); 36 37 /* create second thread with max priority and get preempted on creation */ 30 38 benchmark_timer_initialize(); 31 32 status = pthread_create(&thread_ID, NULL, thread, NULL); 33 rtems_test_assert( status == 0 ); 34 39 status = pthread_create(&thread_ID, &attr, thread, NULL); 40 } 41 42 void *thread( 43 void *argument 44 ) 45 { 46 long end_time; 47 35 48 end_time = benchmark_timer_read(); 36 37 rtems_test_assert( status == 0 );38 39 49 put_time( 40 50 "pthread_create - preempt", … … 44 54 0 45 55 ); 46 47 }48 49 void *thread(50 void *argument51 )52 {53 //Empty thread used in pthread_create().54 56 return NULL; 55 57 }
Note: See TracChangeset
for help on using the changeset viewer.