summaryrefslogtreecommitdiffstats
path: root/testsuites/sptests (follow)
Commit message (Collapse)AuthorAgeFilesLines
...
* spqreslib: Remove invalid test casesSebastian Huber2017-02-141-16/+2
|
* spcbssched02: Remove invalid test casesSebastian Huber2017-02-141-16/+2
|
* Rename CONFIGURE_SMP_MAXIMUM_PROCESSORSSebastian Huber2017-02-142-2/+2
| | | | | | | Rename CONFIGURE_SMP_MAXIMUM_PROCESSORS to CONFIGURE_MAXIMUM_PROCESSORS since the SMP part is superfluous. Update #2894.
* sppagesize: Include missing header fileSebastian Huber2017-02-141-0/+1
|
* Prefix confdefs.h internal def with an underscoreSebastian Huber2017-02-031-2/+2
| | | | Close #2895.
* Remove CONFIGURE_SMP_APPLICATIONSebastian Huber2017-02-022-4/+0
| | | | | | Enable the SMP support if CONFIGURE_SMP_MAXIMUM_PROCESSORS > 1. Update #2893.
* sprmsched01/spedfsched04: ReviseKuan-Hsun Chen2017-01-316-153/+92
| | | | | | | | Instead of using the target time and console driver, both tests now use assertions and rtems_rate_monotonic_get_status() to verify the count of postponed jobs. The setting of spedfsched04 is slightly changed. Close #2795.
* rtems: Fix _Rate_monotonic_Renew_deadline()Kuan-Hsun Chen2017-01-306-1/+171
| | | | | | | | | | | | Prepare a precondition to prevent the potential integer overflow. Remove one redundant parameter in _Rate_monotonic_Renew_deadline(). sptests/sprmsched02: Create A test case for checking the overflow condition of postponed_jobs in rtems_rate_monotonic_period_status. Update #2885.
* score: Fix user extensions orderSebastian Huber2017-01-262-36/+32
| | | | | | | | | | | Use forward and reverse order for initial and dynamic extensions. This is the behaviour documented in the C Users Guide. Change thread terminate order to backward to be in line with the thread delete order. Change fatal error order to forward to ensure that initial extensions are called first due the peculiar execution context of fatal error extensions, see _Terminate() documentation. Update #2692.
* Remove rtems_rate_monotonic_postponed_job_count()Kuan-Hsun Chen2017-01-263-4/+15
| | | | | | | | | | | Add a variable named "count" in rtems_rate_monotonic_period_status structure. Revise rtems_rate_monotonic_get_status() for the postponed job count. sptests/sp69: Add in the verification of the postponed job count for rtems_rate_monotonic_get_status(). Update #2795.
* sptests/spedfsched04: Merge and fixSebastian Huber2017-01-254-193/+113
| | | | | | | Merge into one file and fix obvious problems (e.g. out of bounds array access). Update #2795.
* sptests/sprmsched01: Merge and fixSebastian Huber2017-01-244-196/+112
| | | | | | | Merge into one file and fix obvious problems (e.g. out of bounds array access). Update #2795.
* classic: adjust names of RM postponed job functionsGedare Bloom2017-01-132-6/+6
| | | | closes #2795
* sptests: EDF scheduler overrun handlingKuan-Hsun Chen2017-01-138-1/+316
| | | | Update #2795.
* sptests: rate monotonic scheduler overrun handlingKuan-Hsun Chen2017-01-138-0/+349
| | | | Update #2795.
* posix: shared memory supportGedare Bloom2017-01-131-0/+17
| | | | | | | | | Add POSIX shared memory manager (Shm). Includes a hook-based approach for the backing memory storage that defaults to the Workspace, and a test is provided using the heap. A test is also provided for the basic use of mmap'ing a shared memory object. This test currently fails at the mmap stage due to no support for mmap.
* configure: Remove HAVE_STRUCT__THREAD_QUEUE_QUEUESebastian Huber2017-01-132-5/+0
|
* configure: Remove HAVE_THREADS_H supportSebastian Huber2017-01-132-5/+0
|
* Add rtems_assoc_32_to_string()Sebastian Huber2017-01-121-0/+61
|
* Remove obsolete __RTEMS_HAVE_SYS_CPUSET_H__Joel Sherrill2017-01-116-28/+0
|
* Add INTERNAL_ERROR_LIBIO_STDERR_FD_OPEN_FAILEDSebastian Huber2016-12-122-3/+3
| | | | Update #2825.
* Add INTERNAL_ERROR_LIBIO_STDOUT_FD_OPEN_FAILEDSebastian Huber2016-12-122-3/+3
| | | | Update #2825.
* Add INTERNAL_ERROR_LIBIO_SEM_CREATE_FAILEDSebastian Huber2016-12-121-1/+1
| | | | Update #2825.
* INTERNAL_ERROR_LIBIO_USER_ENV_KEY_CREATE_FAILEDSebastian Huber2016-12-122-3/+3
| | | | Update #2825.
* Add INTERNAL_ERROR_POSIX_INIT_THREAD_CREATE_FAILEDSebastian Huber2016-12-121-1/+1
| | | | Update #2825.
* Add INTERNAL_ERROR_RTEMS_INIT_TASK_CREATE_FAILEDSebastian Huber2016-12-122-3/+3
| | | | Update #2825.
* Rename is_internal to always_set_to_falseSebastian Huber2016-12-1210-22/+26
| | | | Update #2825.
* score: Remove fatal is internal indicatorSebastian Huber2016-12-0928-47/+9
| | | | | | | | | The fatal is internal indicator is redundant since the fatal source and error code uniquely identify a fatal error. Keep the fatal user extension is internal parameter for backward compatibility and set it to false always. Update #2825.
* sptimecounter02: Add plot scriptSebastian Huber2016-12-081-0/+42
|
* sptimecounter02: Update screen fileSebastian Huber2016-12-081-32/+986
| | | | Data obtained on QorIQ T4240 running with 1500MHz.
* score: Simplify linker set APISebastian Huber2016-12-061-20/+104
| | | | | | | | | | | | | | | | | Resurrect RTEMS_LINKER_SET_BEGIN() and RTEMS_LINKER_SET_END(). Add new macros RTEMS_LINKER_SET_ITEM_COUNT(), RTEMS_LINKER_SET_IS_EMPTY(), and RTEMS_LINKER_SET_FOREACH(). Remove confusing RTEMS_LINKER_SET_ASSIGN_BEGIN() and RTEMS_LINKER_SET_ASSIGN_END(). Fix RTEMS_LINKER_SET_SIZE() to return the size in characters as specified by the documentation. Update #2408. Update #2790.
* score: Initialize thread queue context earlySebastian Huber2016-12-021-0/+1
| | | | | | | | Initialize thread queue context early preferably outside the critical section. Remove implicit _Thread_queue_Context_initialize() from _Thread_Wait_acquire().
* score: Uncomment unused internal error codesSebastian Huber2016-11-231-2/+4
| | | | Update #2825.
* posix: Add self-contained pthread spinlockSebastian Huber2016-11-231-17/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | | Turn pthread_spinlock_t into a self-contained object. On uni-processor configurations, interrupts are disabled in the lock/trylock operations and the previous interrupt status is restored in the corresponding unlock operations. On SMP configurations, a ticket lock is a acquired and released in addition. The self-contained pthread_spinlock_t object is defined by Newlib in <sys/_pthreadtypes.h>. typedef struct { struct _Ticket_lock_Control _lock; __uint32_t _interrupt_state; } pthread_spinlock_t; This implementation is simple and efficient. However, this test case of the Linux Test Project would fail due to call of printf() and sleep() during spin lock ownership: https://github.com/linux-test-project/ltp/blob/master/testcases/open_posix_testsuite/conformance/interfaces/pthread_spin_lock/1-2.c There is only limited support for profiling on SMP configurations. Delete CORE spinlock implementation. Update #2674.
* score: Add thread queue enqueue calloutSebastian Huber2016-11-231-1/+1
| | | | | | | Replace the expected thread dispatch disable level with a thread queue enqueue callout. This enables the use of _Thread_Dispatch_direct() in the thread queue enqueue procedure. This avoids impossible exection paths, e.g. Per_CPU_Control::dispatch_necessary is always true.
* score: Robust thread dispatchSebastian Huber2016-11-231-1/+1
| | | | | | | | | | | | On SMP configurations, it is a fatal error to call blocking operating system with interrupts disabled, since this prevents delivery of inter-processor interrupts. This could lead to executing threads which are not allowed to execute resulting in undefined behaviour. The ARM Cortex-M port has a similar problem, since the interrupt state is not a part of the thread context. Update #2811.
* score: Add _ISR_Is_enabled()Sebastian Huber2016-11-181-0/+2
| | | | | | | In contrast to _ISR_Get_level() the _ISR_Is_enabled() function evaluates a level parameter and returns a boolean value. Update #2811.
* score: Add and use _Thread_Dispatch_direct()Sebastian Huber2016-11-187-1/+80
| | | | | | | | | | This function is useful for operations which synchronously block, e.g. self restart, self deletion, yield, sleep. It helps to detect if these operations are called in the wrong context. Since the thread dispatch necessary indicator is not used, this is more robust in some SMP situations. Update #2751.
* sptests/sp37: Better cope with internal paddingSebastian Huber2016-11-181-25/+40
|
* rtems: Add scheduler processor add/removeSebastian Huber2016-11-101-0/+28
| | | | Update #2797.
* score: Add and use Thread_Control::is_idleSebastian Huber2016-11-091-7/+1
| | | | Update #2797.
* Provide kernel space header filesSebastian Huber2016-11-081-0/+2
| | | | | These kernel space header files must be provided for Newlib 172e2050d95b41861db858dd9bc43a3fb4a28987.
* score: Conditionally enable thread resource countSebastian Huber2016-11-031-0/+4
| | | | | Maintain the thread resource count only in debug configurations. This is a performance optimization for non-debug configurations.
* score: Relax _Scheduler_Set() restrictionsSebastian Huber2016-11-031-1/+1
| | | | | | No longer unconditionally prevent scheduler changes if the thread owns resources. Prevent a scheduler change only in case other threads wait for the resource.
* score: Delete Resource HandlerSebastian Huber2016-11-026-443/+0
| | | | Update #2556.
* score: First part of new MrsP implementationSebastian Huber2016-11-022-1/+2
| | | | Update #2556.
* sptests/sp35: Remove dead codeSebastian Huber2016-11-021-72/+0
|
* rtems: Add rtems_task_iterate()Sebastian Huber2016-11-022-12/+32
| | | | Update #2423.
* score: More robust linker setsSebastian Huber2016-10-121-29/+44
| | | | | Update #2408. Update #2790.
* sptests/spsem03: Fix compile errorSebastian Huber2016-09-231-1/+1
|