Last change
on this file since 05a8dca was
05a8dca,
checked in by Joel Sherrill <joel.sherrill@…>, on 05/14/14 at 14:25:25
|
cpus4_exercise_affinity_api.scen: Scenario to exercise affinity
|
-
Property mode set to
100644
|
File size:
640 bytes
|
Rev | Line | |
---|
[05a8dca] | 1 | # |
---|
| 2 | # Verify that affinity APIs work with the right values |
---|
| 3 | # |
---|
| 4 | rtems_init 4 |
---|
| 5 | task_create smp1 3 |
---|
| 6 | task_create smp2 6 |
---|
| 7 | task_create smp3 7 |
---|
| 8 | task_create smp4 8 |
---|
| 9 | task_create smp5 10 |
---|
| 10 | dispatch |
---|
| 11 | # GOAL: Tasks 0x0a010001 - 0x0a010004 as heir and executing |
---|
| 12 | # GOAL: on CPUs 1 - 4 respectively |
---|
| 13 | cpus |
---|
| 14 | |
---|
| 15 | # GOAL: These should work OK and change the affinity |
---|
| 16 | task_get_affinity smp5 |
---|
| 17 | task_set_affinity smp5 0x01 |
---|
| 18 | task_get_affinity smp5 |
---|
| 19 | task_set_affinity smp5 0x02 |
---|
| 20 | task_get_affinity smp5 |
---|
| 21 | task_set_affinity smp5 0x04 |
---|
| 22 | task_get_affinity smp5 |
---|
| 23 | task_set_affinity smp5 0x08 |
---|
| 24 | task_get_affinity smp5 |
---|
| 25 | |
---|
| 26 | # GOAL This should fail. |
---|
| 27 | task_set_affinity smp5 0x10 |
---|
| 28 | task_get_affinity smp5 |
---|
| 29 | |
---|
Note: See
TracBrowser
for help on using the repository browser.