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:
872 bytes
|
Line | |
---|
1 | # |
---|
2 | # Block a thread in an application with thread affinity and |
---|
3 | # priorities such that finding an heir requires scanning the |
---|
4 | # ready set of threads. |
---|
5 | # |
---|
6 | # Basic premise: |
---|
7 | # - Two threads at low priority, affinity for core 0 |
---|
8 | # - More threads than core at high priority, affinity for all but core 0 |
---|
9 | # |
---|
10 | rtems_init 4 |
---|
11 | task_create smp1 -a 0xe 10 |
---|
12 | task_create smp2 -a 0xe 10 |
---|
13 | task_create smp3 -a 0xe 10 |
---|
14 | task_create smp4 -a 0xe 10 |
---|
15 | # GOAL: Core 0 should be idle |
---|
16 | # GOAL: Cores 1-3 should be 0x0a01000[321] respectively |
---|
17 | cpus IDLE smp3 smp2 smp1 |
---|
18 | |
---|
19 | # check_tasks IDLE smp3 smp2 smp1 |
---|
20 | # GOAL: Core 0 should have aff1 0x0a010005 |
---|
21 | # GOAL: Cores 1-3 should be 0x0a01000[321] respectively |
---|
22 | task_create aff1 -a 0x1 11 |
---|
23 | cpus aff1 smp3 smp2 smp1 |
---|
24 | |
---|
25 | # Create a low priority task with affinity to core 0 |
---|
26 | task_create aff2 -a 0x1 11 |
---|
27 | cpus aff1 smp3 smp2 smp1 |
---|
28 | task_suspend aff1 |
---|
29 | cpus aff2 smp3 smp2 smp1 |
---|
Note: See
TracBrowser
for help on using the repository browser.