summaryrefslogtreecommitdiffstats
path: root/testsuites (follow)
Commit message (Collapse)AuthorAgeFilesLines
* score: Avoid Giant lock for _Thread_Start()Sebastian Huber2016-05-201-3/+3
| | | | Update #2555.
* score: Add Thread_Change_life()Sebastian Huber2016-05-202-6/+11
| | | | | | | | | Add _Thread_Change_life_locked() as a general function to alter the thread life state. Use it to implement _Thread_Set_life_protection() as a first step. Update #2555. Update #2626.
* psxclassic01: Assume correct pthread_detach()Sebastian Huber2016-05-202-10/+31
| | | | Update #2714.
* SMP: Add Mellor-Crummey and Scott (MCS) lockSebastian Huber2016-05-191-14/+159
| | | | | | | | | | Added only for evaluation purposes. We have to compare the performance against the ticket lock on the interesting platforms via smptests/smplock01. The following GCC shortcoming affects the MCS lock: https://gcc.gnu.org/bugzilla/show_bug.cgi?id=66867
* psxtests/psxualarm: Avoid output in signal handlerSebastian Huber2016-05-182-14/+7
| | | | | | Avoid output in signal handler to not disturb the timings which are checked in this test. Use asserts to ensure proper signal handler invocations.
* posix: Fix return states of pthread_kill()Sebastian Huber2016-05-171-6/+2
| | | | | | POSIX mandates that an error code is returned and not -1 plus errno. Close #2715.
* psxtests/psxcancel: Add pthread_detach() testsSebastian Huber2016-05-172-0/+87
| | | | Update #2714.
* psxtests/psxcancel: Add resource checkSebastian Huber2016-05-171-8/+26
|
* sptests/spthreadlife01: Add self delete test caseSebastian Huber2016-05-171-6/+35
|
* posix: Fix return status of pthread_cancel()Sebastian Huber2016-05-171-2/+2
| | | | | | | POSIX recommends ESRCH in case no thread exists for the specified identifier. Close #2713.
* smptests/smpcapture02: Adjust for clock changesSebastian Huber2016-05-121-8/+8
| | | | | | | Fix overall clock tick count. Change introduced by 90d8567d34a6d80da04b1cb37b667a3173f584c4. Update #2554.
* score: Use thread state lock for current stateSebastian Huber2016-05-122-21/+53
| | | | | | | In addition protect scheduler of thread by thread state lock. Enables use of scheduler per-instance locks. Update #2555.
* score: Fix CORE mutex initializationSebastian Huber2016-05-126-0/+306
| | | | | | | | | The priority inheritance and ceiling CORE mutexes wrongly used the FIFO queueing discipline. Delete misleading _CORE_mutex_Is_priority(). Bug introduced by 1e1a91ed11458ddbb27b94d0001d8f0fc2ef7a97. Add test sptests/spmutex01, since no existing uni-processor test covered the thread priority queueing discipline for CORE mutexes.
* score: Make _Objects_Information_table constSebastian Huber2016-05-041-35/+0
| | | | | The _Objects_Information_table is statically initialized. So, we can make it read-only.
* rtems: Remove task variablesSebastian Huber2016-05-046-508/+0
| | | | | Update #2494. Update #2555.
* confdefs.h: Fix named object size estimateSebastian Huber2016-05-041-5/+5
| | | | | | Account for the terminating null character. Use _POSIX_PATH_MAX instead of NAME_MAX according to _POSIX_Semaphore_Manager_initialization() and _POSIX_Message_queue_Manager_initialization().
* score: Add dummy Strong APA schedulerSebastian Huber2016-05-026-0/+88
| | | | | | Start with a copy of the Priority SMP scheduler implementation. Update #2510.
* score: Delete __RTEMS_STRICT_ORDER_MUTEX__Sebastian Huber2016-05-021-7/+0
| | | | | | Remove support for strict order mutexes. Close #2124.
* rtems: Avoid Giant lock for semaphoresSebastian Huber2016-05-021-3/+11
| | | | Update #2555.
* posix: Simplify message queuesSebastian Huber2016-05-024-22/+1
| | | | | | | | | | | | The mq_open() function returns a descriptor to a POSIX message queue object identified by a name. This is similar to sem_open(). In contrast to the POSIX semaphore the POSIX message queues use a separate object for the descriptor. This extra object is superfluous, since the object identifier can be used directly for this purpose, just like for the semaphores. Update #2702. Update #2555.
* score: Add _Thread_queue_Is_empty()Sebastian Huber2016-04-221-1/+1
|
* score: Simplify _Objects_Get_next()Sebastian Huber2016-04-211-11/+3
| | | | Remove unused location parameter.
* score: Simplify _Objects_Initialize_information()Sebastian Huber2016-04-211-6/+2
| | | | | | Remove unused supports_global parameter. Convert _Objects_Initialize_information() to a macro to avoid use of RTEMS_MULTIPROCESSING define for each caller.
* posix: Avoid Giant lock for mutexesSebastian Huber2016-04-213-1/+48
| | | | | | | Delete _POSIX_Mutex_Get(). Use _POSIX_Mutex_Get_interrupt_disable() instead. Update #2555.
* score: Fix _CORE_semaphore_Flush()Sebastian Huber2016-04-211-1/+51
| | | | | | | Use proper CORE_semaphore_Status for _CORE_semaphore_Flush() and _CORE_semaphore_Destroy() operations. Close #2696.
* sptests/spsysinit01: Fix warningSebastian Huber2016-04-211-2/+2
|
* block[08|09|10]/init.c: Include <stdlib.h> to fix warning on exit()Joel Sherrill2016-04-203-0/+4
|
* score: Use chain iterator for user extensionsSebastian Huber2016-04-186-0/+482
| | | | | | | | | | | Add a lock and use a chain iterator for safe iteration during concurrent user extension addition and removal. Ensure that dynamically added thread delete and fatal extensions are called in reverse order. Update #2555. Update #2692.
* score: Add Chain_IteratorSebastian Huber2016-04-183-2/+128
| | | | | Add a chain iterator for safe iteration of chains with concurrent node extraction.
* Obsolete rtems_clock_get() directive.Joel Sherrill2016-04-148-156/+6
| | | | | | | This service was marked as deprecated long prior to the 4.11 release series and is now being removed. closes #2676.
* Add pthread_getconcurrency() and pthread_setconcurrency()Joel Sherrill2016-04-149-1/+186
| | | | | | | | | This is the very simple implementation specified by the Open Group for implementations with 1:1 kernel thread to user thread mappings. http://pubs.opengroup.org/onlinepubs/9699919799/functions/pthread_getconcurrency.html updates #2680.
* posix: Run key destructors during thread restartSebastian Huber2016-04-144-26/+140
| | | | | | | | | | POSIX key destructors must be called during thread restart. Just like the POSIX cleanup handlers. This ensures that the TLS object destructors are called during thread restart for example. It is important for the global construction, which uses a thread restart to run the Init task in a clean environment. Close #2689.
* malloc: Fix early realloc() allocationSebastian Huber2016-04-061-0/+17
|
* score: Use red-black tree for active global objectsSebastian Huber2016-04-061-5/+0
| | | | | | | Use a red-black tree to lookup active global objects by identifier or name. Update #2555.
* score: Use red-black tree for active MP proxiesSebastian Huber2016-04-061-5/+0
| | | | Update #2555.
* score: Delete Thread_Wait_information::idSebastian Huber2016-04-062-6/+373
| | | | | | | | | | | This field was only by the monitor in non-multiprocessing configurations. Add new field Thread_Wait_information::remote_id in multiprocessing configurations and use it for the remote procedure call thread queue. Add _Thread_Wait_get_id() to obtain the object identifier for debug and system information tools. Ensure the object layout via static asserts. Add test cases to sptests/spthreadq01.
* mptests: Fix message queue configurationSebastian Huber2016-03-295-0/+10
|
* samples/base_mp: Check directive statusSebastian Huber2016-03-291-1/+5
|
* score: Remove Thread_queue_Queue::operations fieldSebastian Huber2016-03-291-12/+2
| | | | | | | | | Remove the Thread_queue_Queue::operations field to reduce the size of this structure. Add a thread queue operations parameter to the _Thread_queue_First(), _Thread_queue_First_locked(), _Thread_queue_Enqueue(), _Thread_queue_Dequeue() and _Thread_queue_Flush() functions. This is a preparation patch to reduce the size of several synchronization objects.
* mptests/*/*.c: Fix warningsJoel Sherrill2016-03-244-4/+4
|
* sp13/task1.c: Remove warning for misleading indentationJoel Sherrill2016-03-241-19/+20
| | | | | Fix a block of off-by-one indentation and add braces to clarify intention.
* psxtests/psxobj01: Fix for RTEMS_DEBUGSebastian Huber2016-03-221-0/+7
|
* rtems: Rework rate-monotonic schedulerSebastian Huber2016-03-221-12/+20
| | | | | | | | | | Use the default thread lock to protect rate-monotonic state changes. This avoids use of the Giant lock. Split rtems_rate_monotonic_period() body into several static functions. Introduce a new thread wait class THREAD_WAIT_CLASS_PERIOD for period objects to synchronize the blocking operation. Close #2631.
* score: Add _Objects_Get_by_name()Sebastian Huber2016-03-186-67/+62
| | | | | | | | | | Replace _Objects_Name_to_id_string() with _Objects_Get_by_name() since all users of this function are interested in the object itself and not the identifier. Use the object allocator lock to protect the search. Update #2555.
* sptests/sptls02: Use GNU++11Sebastian Huber2016-03-181-1/+1
| | | | | This avoids a problem with the feature test macros introduced in Newlib be657151f12f4d198e45395987f0a626ee1bbb91.
* score: Use allocator lock in _Objects_Get_next()Sebastian Huber2016-03-161-2/+0
| | | | | | | | Use the object allocator lock in _Objects_Get_next() instead of disabled thread dispatching since object creation and deletion is covered by this lock. Update #2555.
* score: Use ISR lock for IO driver registrationSebastian Huber2016-03-142-0/+3
| | | | | | Create implementation header file. Update #2555.
* libtests/syscall01: Explicitly request closeSebastian Huber2016-03-071-0/+19
| | | | | This makes the test more reliable in case an interrupt driven console driver is used.
* score: Replace watchdog handler implementationSebastian Huber2016-03-0428-519/+844
| | | | | | | | | Use a red-black tree instead of delta chains. Close #2344. Update #2554. Update #2555. Close #2606.
* score: Add _SMP_Online_processorsSebastian Huber2016-03-041-0/+10
|