summaryrefslogtreecommitdiff
path: root/testsuites (follow)
AgeCommit message (Collapse)Author
2016-05-30score: Simplify CORE mutexSebastian Huber
Remove superfluous support for simple binary semaphores. With this we can get rid of the CORE_MUTEX_NESTING_BLOCKS variant.
2016-05-30score: _CORE_mutex_Check_dispatch_for_seize()Sebastian Huber
Move the safety check performed by _CORE_mutex_Check_dispatch_for_seize() out of the performance critical path and generalize it. Blocking on a thread queue with an unexpected thread dispatch disabled level is illegal in all system states. Add the expected thread dispatch disable level (which may be 1 or 2 depending on the operation) to Thread_queue_Context and use it in _Thread_queue_Enqueue_critical().
2016-05-30score: Add _Thread_queue_Context_set_MP_callout()Sebastian Huber
Add _Thread_queue_Context_set_MP_callout() to simplify _Thread_queue_Context_initialize(). This makes it possible to more easily add additional fields to Thread_queue_Context.
2016-05-26score: Add Status_Control for all APIsSebastian Huber
Unify the status codes of the Classic and POSIX API to use the new enum Status_Control. This eliminates the Thread_Control::Wait::timeout_code field and the timeout parameter of _Thread_queue_Enqueue_critical() and _MPCI_Send_request_packet(). It gets rid of the status code translation tables and instead uses simple bit operations to get the status for a particular API. This enables translation of status code constants at compile time. Add _Thread_Wait_get_status() to avoid direct access of thread internal data structures.
2016-05-26posix: Fix sem_init() with too large initial valueSebastian Huber
Close #2721.
2016-05-26Fix semaphore post overflow statusSebastian Huber
Close #2720.
2016-05-26testsuites: Fix locked_printf() test printerSebastian Huber
2016-05-26testsuite: Fix networking samples to use the RTEMS printer.Chris Johns
2016-05-25posix: Fix pthread_spin_unlock() error statusSebastian Huber
Close #2719.
2016-05-25score: Move thread queue MP callout to contextSebastian Huber
Drop the multiprocessing (MP) dependent callout parameter from the thread queue extract, dequeue, flush and unblock methods. Merge this parameter with the lock context into new structure Thread_queue_Context. This helps to gets rid of the conditionally compiled method call helpers.
2016-05-25testsuite: Fix printk format warnings.Chris Johns
2016-05-25testsuite: Fix printk formating warning.Chris Johns
2016-05-25cpukit, testsuite: Add rtems_printf and rtems_printer support.Chris Johns
This change adds rtems_printf and related functions and wraps the RTEMS print plugin support into a user API. All references to the plugin are removed and replaced with the rtems_printer interface. Printk and related functions are made to return a valid number of characters formatted and output. The function attribute to check printf functions has been added to rtems_printf and printk. No changes to remove warrnings are part of this patch set. The testsuite has been moved over to the rtems_printer. The testsuite has a mix of rtems_printer access and direct print control via the tmacros.h header file. The support for begink/endk has been removed as it served no purpose and only confused the code base. The testsuite has not been refactored to use rtems_printf. This is future work.
2016-05-24psxtests/psxmsgq01: Fix typoSebastian Huber
2016-05-24score: Fix blocking _CORE_message_queue_Submit()Sebastian Huber
Close #2718.
2016-05-24psxtests/psxmsgq01: Enable test caseSebastian Huber
2016-05-20Replace *_Get_interrupt_disable() with *_Get()Sebastian Huber
Uniformly use *_Get() to get an object by identifier with a lock context.
2016-05-20rtems: _Semaphore_Get_interrupt_disable()Sebastian Huber
Use _Objects_Get_local() for _Semaphore_Get_interrupt_disable() to get rid of the location parameter. Move remote object handling to semaphore MPCI support.
2016-05-20score: Remove the Giant lockSebastian Huber
Update #2555.
2016-05-20score: Rename _ISR_Flash() into _ISR_Local_flash()Sebastian Huber
This is a preparation to remove the Giant lock. Update #2555.
2016-05-20score: Rename _ISR_Disable() and _ISR_Enable()Sebastian Huber
Rename _ISR_Disable() into _ISR_Local_disable(). Rename _ISR_Enable() into _ISR_Local_enable(). Remove _Debug_Is_owner_of_giant(). This is a preparation to remove the Giant lock. Update #2555.
2016-05-20score: Rename _ISR_Disable_without_giant()Sebastian Huber
Rename _ISR_Disable_without_giant() into _ISR_Local_disable(). Rename _ISR_Enable_without_giant() into _ISR_Local_enable(). This is a preparation to remove the Giant lock. Update #2555.
2016-05-20testsuites: Avoid Giant lockSebastian Huber
Replace _Thread_Disable_dispatch() with _Thread_Dispatch_disable(). Replace _Thread_Enable_dispatch() with _Thread_Dispatch_enable(). This is a preparation to remove the Giant lock. Update #2555.
2016-05-20testsuites: Replace _Thread_Get()Sebastian Huber
Replace _Thread_Get() with _Thread_Get_interrupt_disable() to avoid the Giant lock. Update #2555.
2016-05-20sptests/spintrcritical22: Avoid _Objects_Get()Sebastian Huber
Use _Semaphore_Get_interrupt_disable() instead. Update #2555.
2016-05-20score: Avoid Giant lock for _Thread_Start()Sebastian Huber
Update #2555.
2016-05-20score: Add Thread_Change_life()Sebastian Huber
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.
2016-05-20psxclassic01: Assume correct pthread_detach()Sebastian Huber
Update #2714.
2016-05-19SMP: Add Mellor-Crummey and Scott (MCS) lockSebastian Huber
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
2016-05-18psxtests/psxualarm: Avoid output in signal handlerSebastian Huber
Avoid output in signal handler to not disturb the timings which are checked in this test. Use asserts to ensure proper signal handler invocations.
2016-05-17posix: Fix return states of pthread_kill()Sebastian Huber
POSIX mandates that an error code is returned and not -1 plus errno. Close #2715.
2016-05-17psxtests/psxcancel: Add pthread_detach() testsSebastian Huber
Update #2714.
2016-05-17psxtests/psxcancel: Add resource checkSebastian Huber
2016-05-17sptests/spthreadlife01: Add self delete test caseSebastian Huber
2016-05-17posix: Fix return status of pthread_cancel()Sebastian Huber
POSIX recommends ESRCH in case no thread exists for the specified identifier. Close #2713.
2016-05-12smptests/smpcapture02: Adjust for clock changesSebastian Huber
Fix overall clock tick count. Change introduced by 90d8567d34a6d80da04b1cb37b667a3173f584c4. Update #2554.
2016-05-12score: Use thread state lock for current stateSebastian Huber
In addition protect scheduler of thread by thread state lock. Enables use of scheduler per-instance locks. Update #2555.
2016-05-12score: Fix CORE mutex initializationSebastian Huber
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.
2016-05-04score: Make _Objects_Information_table constSebastian Huber
The _Objects_Information_table is statically initialized. So, we can make it read-only.
2016-05-04rtems: Remove task variablesSebastian Huber
Update #2494. Update #2555.
2016-05-04confdefs.h: Fix named object size estimateSebastian Huber
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().
2016-05-02score: Add dummy Strong APA schedulerSebastian Huber
Start with a copy of the Priority SMP scheduler implementation. Update #2510.
2016-05-02score: Delete __RTEMS_STRICT_ORDER_MUTEX__Sebastian Huber
Remove support for strict order mutexes. Close #2124.
2016-05-02rtems: Avoid Giant lock for semaphoresSebastian Huber
Update #2555.
2016-05-02posix: Simplify message queuesSebastian Huber
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.
2016-04-22score: Add _Thread_queue_Is_empty()Sebastian Huber
2016-04-21score: Simplify _Objects_Get_next()Sebastian Huber
Remove unused location parameter.
2016-04-21score: Simplify _Objects_Initialize_information()Sebastian Huber
Remove unused supports_global parameter. Convert _Objects_Initialize_information() to a macro to avoid use of RTEMS_MULTIPROCESSING define for each caller.
2016-04-21posix: Avoid Giant lock for mutexesSebastian Huber
Delete _POSIX_Mutex_Get(). Use _POSIX_Mutex_Get_interrupt_disable() instead. Update #2555.
2016-04-21score: Fix _CORE_semaphore_Flush()Sebastian Huber
Use proper CORE_semaphore_Status for _CORE_semaphore_Flush() and _CORE_semaphore_Destroy() operations. Close #2696.