summaryrefslogtreecommitdiffstats
path: root/testsuites (follow)
Commit message (Collapse)AuthorAgeFilesLines
* samples/base_mp/apptask.c: Fix warning and clean upJoel Sherrill2016-06-161-12/+11
|
* psxtests/psx12: Use and print proper rounded msSebastian Huber2016-06-152-21/+26
| | | | Update #2738.
* posix: Fix poradic server initial CPU budgetSebastian Huber2016-06-152-14/+107
| | | | Update #2738.
* psxtests/psx12: Use one file and simplifySebastian Huber2016-06-155-134/+33
|
* posix: sched_get_priority_max()Sebastian Huber2016-06-141-4/+4
| | | | | | Enable for all configurations since it pulls in no additional dependencies. Return value of the scheduler instance of the executing thread.
* posix: sched_get_priority_min()Sebastian Huber2016-06-141-1/+6
| | | | | Enable for all configurations since it pulls in no additional dependencies.
* posix: Add pthread_setschedprio()Sebastian Huber2016-06-131-0/+30
| | | | Close #2734.
* posix: Fix pthread_setschedparam()Sebastian Huber2016-06-131-0/+54
| | | | Close #2735.
* posix: Fix pthread_getschedparam()Sebastian Huber2016-06-131-0/+46
| | | | | | Return the unmodified thread priority value according to POSIX. Close #2736.
* score: Add an SMP sequence lock implementationSebastian Huber2016-06-092-24/+342
|
* smptests/smpatomic01: Fix seqlock writeSebastian Huber2016-06-081-1/+3
|
* smptests/smpatomic01: Add seqlock test caseSebastian Huber2016-06-072-0/+235
|
* rtems: Fix no protocol mutex releaseSebastian Huber2016-06-062-42/+71
| | | | | | | | | | | | | | | | The Classic binary semaphores without a locking protocol (RTEMS_BINARY_SEMAPHORE) could be released by everyone, e.g. in contrast to the POSIX mutexes (all variants) or the Classic binary semphores with priority inheritance or ceiling, there was no owner check in the release path. This behaviour was a bit unexpected and not documented. Add an owner check to the release path. Update sptests/sp42 accordingly. This change has nothing to do with the simple binary semaphores (RTEMS_SIMPLE_BINARY_SEMAPHORE) which have no owner at all. Update #2725
* libmisc/untar: Support directory create and overwrites. Share the common code.Chris Johns2016-06-031-3/+6
| | | | | | | | | | | | | | | | | | | Support creating directories for files with a path depth greater than 1. Some tar files can have files with a path depth greater than 1 and no directory entry in the tar file to create a directory. Support overwriting existing files and directories failing in a similar way to tar on common hosts. If a file is replaced with a file delete the file and create a new file. If a directory replaces a file remove the file and create the directory. If a file replaces a directory remove the directory, and if the directory is not empty and cannot be removed report an error. If a directory alreday exists do nothing leaving the contents untouched. The untar code now shares the common header parsing and initial processing with the actual writes still separate. No changes to the IMFS have been made. Updates #2415. Closes #2207.
* smptests/smpatomic01: New test casesSebastian Huber2016-06-012-18/+349
| | | | | Demonstrate that a read-modify-write atomic operation may be necessary on some archtitectures to observe the latest value written.
* rtems: Fix semaphore field nameSebastian Huber2016-05-301-1/+1
|
* score: Simplify CORE mutexSebastian Huber2016-05-301-3/+4
| | | | | Remove superfluous support for simple binary semaphores. With this we can get rid of the CORE_MUTEX_NESTING_BLOCKS variant.
* score: _CORE_mutex_Check_dispatch_for_seize()Sebastian Huber2016-05-301-3/+3
| | | | | | | | | | | 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().
* score: Add _Thread_queue_Context_set_MP_callout()Sebastian Huber2016-05-302-2/+2
| | | | | | 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.
* score: Add Status_Control for all APIsSebastian Huber2016-05-262-20/+16
| | | | | | | | | | | 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.
* posix: Fix sem_init() with too large initial valueSebastian Huber2016-05-261-0/+12
| | | | Close #2721.
* Fix semaphore post overflow statusSebastian Huber2016-05-263-2/+68
| | | | Close #2720.
* testsuites: Fix locked_printf() test printerSebastian Huber2016-05-261-11/+3
|
* testsuite: Fix networking samples to use the RTEMS printer.Chris Johns2016-05-262-0/+6
|
* posix: Fix pthread_spin_unlock() error statusSebastian Huber2016-05-252-5/+11
| | | | Close #2719.
* score: Move thread queue MP callout to contextSebastian Huber2016-05-252-8/+9
| | | | | | | | 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.
* testsuite: Fix printk format warnings.Chris Johns2016-05-2517-114/+94
|
* testsuite: Fix printk formating warning.Chris Johns2016-05-251-3/+3
|
* cpukit, testsuite: Add rtems_printf and rtems_printer support.Chris Johns2016-05-2551-137/+217
| | | | | | | | | | | | | | | | | | | 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.
* psxtests/psxmsgq01: Fix typoSebastian Huber2016-05-241-1/+1
|
* score: Fix blocking _CORE_message_queue_Submit()Sebastian Huber2016-05-242-0/+78
| | | | Close #2718.
* psxtests/psxmsgq01: Enable test caseSebastian Huber2016-05-242-5/+4
|
* Replace *_Get_interrupt_disable() with *_Get()Sebastian Huber2016-05-205-13/+10
| | | | | Uniformly use *_Get() to get an object by identifier with a lock context.
* rtems: _Semaphore_Get_interrupt_disable()Sebastian Huber2016-05-202-5/+1
| | | | | | Use _Objects_Get_local() for _Semaphore_Get_interrupt_disable() to get rid of the location parameter. Move remote object handling to semaphore MPCI support.
* score: Remove the Giant lockSebastian Huber2016-05-206-186/+0
| | | | Update #2555.
* score: Rename _ISR_Flash() into _ISR_Local_flash()Sebastian Huber2016-05-201-1/+1
| | | | | | This is a preparation to remove the Giant lock. Update #2555.
* score: Rename _ISR_Disable() and _ISR_Enable()Sebastian Huber2016-05-201-2/+2
| | | | | | | | | 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.
* score: Rename _ISR_Disable_without_giant()Sebastian Huber2016-05-205-16/+16
| | | | | | | | | 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.
* testsuites: Avoid Giant lockSebastian Huber2016-05-2015-130/+65
| | | | | | | | | 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.
* testsuites: Replace _Thread_Get()Sebastian Huber2016-05-204-24/+26
| | | | | | | Replace _Thread_Get() with _Thread_Get_interrupt_disable() to avoid the Giant lock. Update #2555.
* sptests/spintrcritical22: Avoid _Objects_Get()Sebastian Huber2016-05-201-5/+4
| | | | | | Use _Semaphore_Get_interrupt_disable() instead. Update #2555.
* 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
|