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:
750 bytes
|
Line | |
---|
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 3 |
---|
9 | task_create smp2 6 |
---|
10 | task_create smp3 7 |
---|
11 | task_create smp4 8 |
---|
12 | task_create smp5 10 |
---|
13 | dispatch |
---|
14 | # GOAL: Tasks 0x0a010001 - 0x0a010004 as heir and executing |
---|
15 | # GOAL: on CPUs 1 - 4 respectively |
---|
16 | cpus smp4 smp3 smp2 smp1 |
---|
17 | |
---|
18 | # GOAL: These should work OK and change the affinity |
---|
19 | task_get_affinity smp5 |
---|
20 | task_set_affinity smp5 0x01 |
---|
21 | task_get_affinity smp5 |
---|
22 | task_set_affinity smp5 0x02 |
---|
23 | task_get_affinity smp5 |
---|
24 | task_set_affinity smp5 0x04 |
---|
25 | task_get_affinity smp5 |
---|
26 | task_set_affinity smp5 0x08 |
---|
27 | task_get_affinity smp5 |
---|
28 | |
---|
29 | # GOAL This should fail. |
---|
30 | task_set_affinity smp5 0x10 |
---|
31 | task_get_affinity smp5 |
---|
32 | |
---|
Note: See
TracBrowser
for help on using the repository browser.