summaryrefslogtreecommitdiffstats
path: root/testsuites (follow)
Commit message (Collapse)AuthorAgeFilesLines
* cpukit: Add libdebugger, a remote debugger agent for GDB.Chris Johns2016-11-298-0/+654
|
* score: Fix thread queue context initializationSebastian Huber2016-11-281-1/+1
| | | | | Initialize the thread queue context with invalid data in debug configurations to catch missing set up steps.
* smptests/smpfatal03: Use timer to provoke errorSebastian Huber2016-11-231-31/+21
| | | | | | Avoid use of internal _Thread_Dispatch_disable() function. Update #2825.
* score: Uncomment unused internal error codesSebastian Huber2016-11-231-2/+4
| | | | Update #2825.
* posix: Add self-contained pthread spinlockSebastian Huber2016-11-2312-434/+67
| | | | | | | | | | | | | | | | | | | | | | | | | | | | 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-237-1/+106
| | | | | | | | | | | | 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.
* smptests/smplock01: Test TAS and TTAS locksSebastian Huber2016-11-234-1560/+2508
| | | | Cache align locks in the context.
* libtests/cpuuse: Check status onlySebastian Huber2016-11-231-2/+2
| | | | We may own the allocator mutex during context switches.
* smptests/smpscheduler02: Fix task initializationSebastian Huber2016-11-231-2/+2
| | | | Set scheduler before the task start.
* psxtests/psxkey08: Avoid rtems_semaphore_flush()Sebastian Huber2016-11-232-48/+42
| | | | | | Avoid rtems_semaphore_flush() to reduce the maximum thread dispatch disabled time of this test. Remove superfluous yield and malloc(). Ensure that no resource leak occurs.
* 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: Restrict task interrupt level to 0 on SMPSebastian Huber2016-11-181-1/+17
| | | | 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
|
* powerpc: Add _CPU_Get_current_per_CPU_control()Sebastian Huber2016-11-102-2560/+2560
| | | | | | | | Add _CPU_Get_current_per_CPU_control() on SMP configurations. Use SPRG0 for the current per-CPU control. This reduces the code size by three instructions and is slightly faster. Update #2805.
* rtems: Add scheduler processor add/removeSebastian Huber2016-11-108-0/+495
| | | | Update #2797.
* score: Add and use Thread_Control::is_idleSebastian Huber2016-11-091-7/+1
| | | | Update #2797.
* score: Simplify _Scheduler_Get_by_id()Sebastian Huber2016-11-091-4/+7
| | | | | | | | | | Avoid dead code in non-SMP configurations. Return scheduler identifier independent of the current processor count of the scheduler via rtems_scheduler_ident(), since this value may change during run-time. Check the processor count in _Scheduler_Set() under scheduler lock protection. Update #2797.
* score: Inline some SMP lock operations by defaultSebastian Huber2016-11-092-2568/+2568
| | | | | | | | | The SMP ticket lock release turned out to be suitable for inlining, e.g. a hand full of instructions, no branches. The changes in the screen files do not reflect the changes due to this commit. However, they are now up to date. Obtained on a T4240 running at 1.5GHz using GCC 7.0.0 20161108..
* Provide kernel space header filesSebastian Huber2016-11-081-0/+2
| | | | | These kernel space header files must be provided for Newlib 172e2050d95b41861db858dd9bc43a3fb4a28987.
* score: Prevent assignment to _Thread_ExecutingSebastian Huber2016-11-072-15/+12
|
* score: Optimize self-contained mutexesSebastian Huber2016-11-041-2100/+2100
|
* testsuites/testdata/dltests-broken-on-this-bsp.tcfg: Add new dl tests 03-05Joel Sherrill2016-11-031-0/+3
|
* 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-032-19/+43
| | | | | | No longer unconditionally prevent scheduler changes if the thread owns resources. Prevent a scheduler change only in case other threads wait for the resource.
* rtems: Fix binary semaphore resource countSebastian Huber2016-11-031-2/+2
| | | | | | Binary semaphores (not simple binary semaphores) maintain the resource count since 8797c76addf22a2f0ffc3717ff977695e35b9b0b. Do this also for initially locked binary semaphores.
* tmtests/tmfine01: Update screen fileSebastian Huber2016-11-032-1800/+2194
| | | | Add plot script.
* smptests/smplock01: Update screen fileSebastian Huber2016-11-032-1555/+1555
|
* score: Simplify yield and unblock scheduler opsSebastian Huber2016-11-021-22/+18
| | | | Update #2556.
* score: Introduce Thread_Scheduler_control::homeSebastian Huber2016-11-023-10/+10
| | | | | | | | Replace Thread_Scheduler_control::control and Thread_Scheduler_control::own_control with new Thread_Scheduler_control::home. Update #2556.
* score: Delete Resource HandlerSebastian Huber2016-11-026-443/+0
| | | | Update #2556.
* score: Second part of new MrsP implementationSebastian Huber2016-11-021-5/+0
| | | | Update #2556.
* score: Simplify update priority scheduler opSebastian Huber2016-11-021-11/+5
| | | | Remove unused return status.
* score: First part of new MrsP implementationSebastian Huber2016-11-029-56/+208
| | | | Update #2556.
* score: Yield support for new SMP helping protocolSebastian Huber2016-11-021-0/+52
| | | | Update #2556.
* score: Add new SMP scheduler helping protocolSebastian Huber2016-11-021-2/+191
| | | | Update #2556.
* score: Pass scheduler node to unblock operationSebastian Huber2016-11-021-3/+10
| | | | | | Changed for consistency with other scheduler operations. Update #2556.
* score: Pass scheduler node to block operationSebastian Huber2016-11-021-3/+6
| | | | | | Changed for consistency with other scheduler operations. Update #2556.
* score: Pass scheduler node to yield operationSebastian Huber2016-11-021-3/+10
| | | | | | Changed for consistency with other scheduler operations. Update #2556.
* score: Pass scheduler node to update priority opSebastian Huber2016-11-021-12/+22
| | | | | | | This enables to call this scheduler operation for all scheduler nodes available to a thread. 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.
* smptests/smplock01: Use test supportSebastian Huber2016-10-313-533/+2189
| | | | Convert output to XML.
* libmisc/xz: Add xz decompression.Chris Johns2016-10-133-4/+98
| | | | Add support to untar XZ compressed files.
* score: More robust linker setsSebastian Huber2016-10-121-29/+44
| | | | | Update #2408. Update #2790.
* smpschedaffinity05: Fix configurationSebastian Huber2016-10-121-0/+2
|
* tmfine01: Add self-contained mutex test caseSebastian Huber2016-10-101-1/+46
| | | | | This demonstrates the effect of false cache line sharing in case of Classic mutexes.
* sptests/spsem03: Fix compile errorSebastian Huber2016-09-231-1/+1
|
* score: Scheduler node awareness for thread queuesSebastian Huber2016-09-211-24/+349
| | | | | | | | Maintain the priority of a thread for each scheduler instance via the thread queue enqueue, extract, priority actions and surrender operations. This replaces the primitive priority boosting. Update #2556.