summaryrefslogtreecommitdiffstats
path: root/testsuites (follow)
Commit message (Collapse)AuthorAgeFilesLines
* net: Fix byte order issue for getnameinfo()Sebastian Huber2016-07-011-11/+11
|
* rtems: Fix rtems_task_set_scheduler() APISebastian Huber2016-07-019-44/+217
| | | | | | | | | | | Task priorities are only valid within a scheduler instance. The rtems_task_set_scheduler() directive moves a task from one scheduler instance to another using the current priority of the thread. However, the current task priority of the source scheduler instance is undefined in the target scheduler instance. Add a third parameter to specify the priority. Close #2749.
* smptests/smpstrongapa01: SimplifySebastian Huber2016-06-301-5/+1
|
* smptests/smpstrongapa01: Add test casesSebastian Huber2016-06-301-3/+300
|
* libnetworking: Add minimal getnameinfo()Christian Mauderer2016-06-286-0/+220
| | | | | | | This implementation just falls back to giving a string representation of the IP. It supports IPv4 only. Add test for getnameinfo().
* libcsupport: Add dummy for setgroups().Christian Mauderer2016-06-282-0/+34
| | | | | The dummy for setgroups() allows applications using it to build (for example civetweb webserver).
* score: Change Priority_Control to 64-bitSebastian Huber2016-06-241-1/+1
| | | | | | | | A 32-bit Priority_Control limits the uptime to 49 days with a 1ms clock tick in case the EDF scheduler is used. Increase it to 64-bit to enable proper operation of the EDF scheduler, Close 2173.
* testsuites: Increase invalid priority valuesSebastian Huber2016-06-244-4/+8
| | | | | | Increase the invalid priority values to support test runs with alternative schedulers offering a significant higher maximum priority value, e.g. EDF.
* score: Move SCHEDULER_EDF_PRIO_MSBSebastian Huber2016-06-242-0/+4
| | | | This is an implementation detail of the EDF scheduler.
* sptests/spintrcritical23: Explicity set schedulerSebastian Huber2016-06-241-0/+3
| | | | | This test uses scheduler-specific data structures, thus it must use the right scheduler.
* sptests/sp42: Relax priority requirementsSebastian Huber2016-06-231-3/+3
|
* smptests/smpmrsp01: Fix due to API changesSebastian Huber2016-06-231-168/+60
| | | | | | | Commit 77ff5599e0d8e6d91190a379be21a332f83252b0 introduced a change in the rtems_semaphore_create() behaviour for MrsP semaphores. The ceiling priorities for all schedulers except the scheduler of the executing thread are initialized to zero.
* score: Add thread priority to scheduler nodesSebastian Huber2016-06-222-61/+21
| | | | | | | | | | | | | | | | | | The thread priority is manifest in two independent areas. One area is the user visible thread priority along with a potential thread queue. The other is the scheduler. Currently, a thread priority update via _Thread_Change_priority() first updates the user visble thread priority and the thread queue, then the scheduler is notified if necessary. The priority is passed to the scheduler via a local variable. A generation counter ensures that the scheduler discards out-of-date priorities. This use of a local variable ties the update in these two areas close together. For later enhancements and the OMIP locking protocol implementation we need more flexibility. Add a thread priority information block to Scheduler_Node and synchronize priority value updates via a sequence lock on SMP configurations. Update #2556.
* score: Introduce map priority scheduler operationSebastian Huber2016-06-228-2/+256
| | | | | | | | | | | Introduce map/unmap priority scheduler operations to map thread priority values from/to the user domain to/from the scheduler domain. Use the map priority operation to validate the thread priority. The EDF schedulers use this new operation to distinguish between normal priorities and priorities obtain through a job release. Update #2173. Update #2556.
* rtems: Rework RTEMS API to SuperCore prioritySebastian Huber2016-06-224-3/+27
| | | | | Use same structure as POSIX API for thread priority conversion to/from SuperCore.
* posix: pthread_mutexattr_setprioceiling()Sebastian Huber2016-06-222-13/+23
| | | | | | | Accept all priority values in pthread_mutexattr_setprioceiling(). This is in line with POSIX and FreeBSD. The priority is validated in pthread_mutex_init(). Validate the priority only for priority ceiling mutexes.
* sptests/sp20: Use printer taskSebastian Huber2016-06-224-46/+88
| | | | This avoids test failures due to slow output devices.
* Move printer initialization to separate headerSebastian Huber2016-06-221-0/+1
| | | | | | The RTEMS print user need to know nothing about a particular printer implementation. In particular get rid of the <stdio.h> include which would be visible via <rtems.h>.
* Make rtems/print.h independent of rtems/bspIo.hSebastian Huber2016-06-224-1/+3
|
* Rename and move RTEMS_PRINTF_ATTRIBUTE()Sebastian Huber2016-06-221-3/+5
| | | | | Rename RTEMS_PRINTF_ATTRIBUTE() into RTEMS_PRINTFLIKE() (similar to <sys/cdefs.h> __printflike()) and move it to <rtems/score/basedefs.h>.
* sptests/spcpucounter01: Resurrect workaroundSebastian Huber2016-06-211-2/+21
| | | | | Resurrect workaround accidentially removed by 3e2a3c49480b9888362d016dd202edd562d9e069.
* sptests/spcpucounter01: Add some statisticsSebastian Huber2016-06-203-50/+229
|
* score: Refine system initialization orderSebastian Huber2016-06-201-0/+36
|
* sptests/spsysinit01: Move begin of test messageSebastian Huber2016-06-201-2/+7
|
* Add pthread_condattr_getclock() and pthread_condattr_setclock()Joel Sherrill2016-06-166-1/+170
| | | | updates #2608.
* mptests/mp03/task1.c: Make method static to fix warningJoel Sherrill2016-06-161-1/+1
|
* 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
|