Last change
on this file since f965428 was
f965428,
checked in by Jennifer Averett <jennifer.averett@…>, on 05/21/14 at 14:40:49
|
schedsim_smppriority_affinity: Cleanup scenarios.
Add check of expected threads to cpu commands. Add more documentation and set fix
the expected files.
|
-
Property mode set to
100644
|
File size:
824 bytes
|
Rev | Line | |
---|
[f965428] | 1 | # |
---|
| 2 | # Verify that affinity APIs work with the right values |
---|
| 3 | # |
---|
| 4 | # This scenario does **NOT** change the affinity of any thread |
---|
| 5 | # which ever executes. |
---|
| 6 | # |
---|
| 7 | rtems_init 4 |
---|
| 8 | task_create smp1 5 |
---|
| 9 | task_create smp2 6 |
---|
| 10 | task_create smp3 6 |
---|
| 11 | task_create smp4 5 |
---|
| 12 | task_create smp5 6 |
---|
| 13 | dispatch |
---|
| 14 | # GOAL: Tasks 0x0a01000[4321] as heir and executing on CPUs 0 - 3 respectively |
---|
| 15 | # GOAL: smp5 has too low priority to run |
---|
| 16 | cpus smp4 smp3 smp2 smp1 |
---|
| 17 | |
---|
| 18 | # GOAL: This should work OK and change the affinity |
---|
| 19 | # GOAL: Internally, smp5 should be selected as heir for CPU 3 while |
---|
| 20 | # GOAL: smp1 is in migrate state. When the migrate state is cleared |
---|
| 21 | # GOAL: at the end of set affinity, smp1 will end up on CPU 1. |
---|
| 22 | # |
---|
| 23 | # NOTE: On a scheduler without SMP, smp1 will be on CPU 3 |
---|
| 24 | task_get_affinity smp1 |
---|
| 25 | task_set_affinity smp1 0x02 |
---|
| 26 | task_get_affinity smp1 |
---|
| 27 | |
---|
| 28 | cpus smp4 smp1 smp2 smp5 |
---|
Note: See
TracBrowser
for help on using the repository browser.