summaryrefslogtreecommitdiff
path: root/testsuites/smptests (follow)
AgeCommit message (Collapse)Author
2016-12-05smplock01: Fix fairness plot scriptSebastian Huber
2016-12-02smpthreadlife01: Fix due to robust thread dispatchSebastian Huber
Update #2811.
2016-12-02score: Initialize thread queue context earlySebastian Huber
Initialize thread queue context early preferably outside the critical section. Remove implicit _Thread_queue_Context_initialize() from _Thread_Wait_acquire().
2016-11-28score: Fix thread queue context initializationSebastian Huber
Initialize the thread queue context with invalid data in debug configurations to catch missing set up steps.
2016-11-23smptests/smpfatal03: Use timer to provoke errorSebastian Huber
Avoid use of internal _Thread_Dispatch_disable() function. Update #2825.
2016-11-23score: Robust thread dispatchSebastian Huber
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.
2016-11-23smptests/smplock01: Test TAS and TTAS locksSebastian Huber
Cache align locks in the context.
2016-11-23smptests/smpscheduler02: Fix task initializationSebastian Huber
Set scheduler before the task start.
2016-11-18score: Restrict task interrupt level to 0 on SMPSebastian Huber
Update #2811.
2016-11-10powerpc: Add _CPU_Get_current_per_CPU_control()Sebastian Huber
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.
2016-11-10rtems: Add scheduler processor add/removeSebastian Huber
Update #2797.
2016-11-09score: Simplify _Scheduler_Get_by_id()Sebastian Huber
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.
2016-11-09score: Inline some SMP lock operations by defaultSebastian Huber
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..
2016-11-03score: Relax _Scheduler_Set() restrictionsSebastian Huber
No longer unconditionally prevent scheduler changes if the thread owns resources. Prevent a scheduler change only in case other threads wait for the resource.
2016-11-03smptests/smplock01: Update screen fileSebastian Huber
2016-11-02score: Simplify yield and unblock scheduler opsSebastian Huber
Update #2556.
2016-11-02score: Introduce Thread_Scheduler_control::homeSebastian Huber
Replace Thread_Scheduler_control::control and Thread_Scheduler_control::own_control with new Thread_Scheduler_control::home. Update #2556.
2016-11-02score: Second part of new MrsP implementationSebastian Huber
Update #2556.
2016-11-02score: Simplify update priority scheduler opSebastian Huber
Remove unused return status.
2016-11-02score: First part of new MrsP implementationSebastian Huber
Update #2556.
2016-11-02score: Yield support for new SMP helping protocolSebastian Huber
Update #2556.
2016-11-02score: Add new SMP scheduler helping protocolSebastian Huber
Update #2556.
2016-11-02score: Pass scheduler node to unblock operationSebastian Huber
Changed for consistency with other scheduler operations. Update #2556.
2016-11-02score: Pass scheduler node to block operationSebastian Huber
Changed for consistency with other scheduler operations. Update #2556.
2016-11-02score: Pass scheduler node to yield operationSebastian Huber
Changed for consistency with other scheduler operations. Update #2556.
2016-11-02score: Pass scheduler node to update priority opSebastian Huber
This enables to call this scheduler operation for all scheduler nodes available to a thread. Update #2556.
2016-10-31smptests/smplock01: Use test supportSebastian Huber
Convert output to XML.
2016-10-12smpschedaffinity05: Fix configurationSebastian Huber
2016-09-21score: Scheduler node awareness for thread queuesSebastian Huber
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.
2016-09-21rtems: Add rtems_task_get_priority()Sebastian Huber
Update #2556. Update #2784.
2016-09-21smptests/smpmutex01: Use test case functionsSebastian Huber
2016-09-21score: Rework thread priority managementSebastian Huber
Add priority nodes which contribute to the overall thread priority. The actual priority of a thread is now an aggregation of priority nodes. The thread priority aggregation for the home scheduler instance of a thread consists of at least one priority node, which is normally the real priority of the thread. The locking protocols (e.g. priority ceiling and priority inheritance), rate-monotonic period objects and the POSIX sporadic server add, change and remove priority nodes. A thread changes its priority now immediately, e.g. priority changes are not deferred until the thread releases its last resource. Replace the _Thread_Change_priority() function with * _Thread_Priority_perform_actions(), * _Thread_Priority_add(), * _Thread_Priority_remove(), * _Thread_Priority_change(), and * _Thread_Priority_update(). Update #2412. Update #2556.
2016-09-08score: Introduce _Thread_Get_priority()Sebastian Huber
Avoid direct access to thread internal data fields.
2016-09-01libmisc/capture: Remove the reserved _t in the types.Chris Johns
2016-09-01libmisc/capture: Fix the capture engine on SMP.Chris Johns
This patches some issues with the capture engine: 1. Check is the engine is open in ctrace commands. 2. Check all record open and appends for overflow. 3. Fix the record open to take the size of user data and not the record header. 4. Use packed structs for data being written to the per cpu buffers. 5. Remove direct struct access to the capture buffers to avoid misaligned accesses. 6. Add support to extract records, no struct access to the capture buffers. 7. Update ctrace to extract records from the capture buffers. 8. Add support to ctrace to always print the task name if it has one. 9. Add support to manage names or the lack of a name. 10. Range of minor fixes. 11. Fix a long standing bug in ctset's handling of args. Closes #2780.
2016-07-25smptests/smpmutex02: New testSebastian Huber
Update #2765.
2016-07-06score: Postpone SMP shutdown in _Terminate()Sebastian Huber
This enables fatal extensions to continue program execution after some fatal errors.
2016-07-01rtems: Fix rtems_task_set_scheduler() APISebastian Huber
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.
2016-06-30smptests/smpstrongapa01: SimplifySebastian Huber
2016-06-30smptests/smpstrongapa01: Add test casesSebastian Huber
2016-06-24score: Change Priority_Control to 64-bitSebastian Huber
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.
2016-06-23smptests/smpmrsp01: Fix due to API changesSebastian Huber
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.
2016-06-22score: Add thread priority to scheduler nodesSebastian Huber
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.
2016-06-22score: Introduce map priority scheduler operationSebastian Huber
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.
2016-06-14posix: sched_get_priority_max()Sebastian Huber
Enable for all configurations since it pulls in no additional dependencies. Return value of the scheduler instance of the executing thread.
2016-06-14posix: sched_get_priority_min()Sebastian Huber
Enable for all configurations since it pulls in no additional dependencies.
2016-06-09score: Add an SMP sequence lock implementationSebastian Huber
2016-06-08smptests/smpatomic01: Fix seqlock writeSebastian Huber
2016-06-07smptests/smpatomic01: Add seqlock test caseSebastian Huber
2016-06-01smptests/smpatomic01: New test casesSebastian Huber
Demonstrate that a read-modify-write atomic operation may be necessary on some archtitectures to observe the latest value written.