source: rtems-schedsim/schedsim/shell/schedsim_smppriority_affinity/scenarios/cpus4_affinity_overlap_case1.expected @ f965428

Last change on this file since f965428 was f965428, checked in by Jennifer Averett <jennifer.averett@…>, on May 21, 2014 at 2:40:49 PM

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: 5.7 KB
Line 
1Script File               : scenarios/cpus4_affinity_overlap_case1.scen
2verbose                   : 1
3==> 1: #
4==> 2: # Create 2 sets of threads one that can run on cpus
5==> 3: # {0,1} the others can run on cpus {1,2,3}.  Then
6==> 4: # swap the affinity of the two sets
7==> 5: #
8==> 6: rtems_init 4
9  CPU 0: Thread Heir 0x09010001 priority=255
10  CPU 0: Thread Executing 0x09010001 priority=255
11  CPU 1: Thread Heir 0x09010002 priority=255
12  CPU 1: Thread Executing 0x09010002 priority=255
13  CPU 2: Thread Heir 0x09010003 priority=255
14  CPU 2: Thread Executing 0x09010003 priority=255
15  CPU 3: Thread Heir 0x09010004 priority=255
16  CPU 3: Thread Executing 0x09010004 priority=255
17==> 7: task_create smp1 4 -a 0x0e
18Creating task with:  Preemption: yes Timeslicing: no
19Task (smp1) created: id=0x0a010001, priority=4
20Task (0x0a010001) Set affinity=0x0000000e
21Task (smp1) starting: id=0x0a010001, priority=4
22  CPU 3: Thread Heir 0x0a010001 priority=4
23  CPU 3: Thread Executing 0x0a010001 priority=4
24==> 8: task_create smp2 4 -a 0x0e
25Creating task with:  Preemption: yes Timeslicing: no
26Task (smp2) created: id=0x0a010002, priority=4
27Task (0x0a010002) Set affinity=0x0000000e
28Task (smp2) starting: id=0x0a010002, priority=4
29  CPU 2: Thread Heir 0x0a010002 priority=4
30  CPU 2: Thread Executing 0x0a010002 priority=4
31==> 9: task_create smp3 4 -a 0x03
32Creating task with:  Preemption: yes Timeslicing: no
33Task (smp3) created: id=0x0a010003, priority=4
34Task (0x0a010003) Set affinity=0x00000003
35Task (smp3) starting: id=0x0a010003, priority=4
36  CPU 1: Thread Heir 0x0a010003 priority=4
37  CPU 1: Thread Executing 0x0a010003 priority=4
38==> 10: task_create smp4 4 -a 0x03
39Creating task with:  Preemption: yes Timeslicing: no
40Task (smp4) created: id=0x0a010004, priority=4
41Task (0x0a010004) Set affinity=0x00000003
42Task (smp4) starting: id=0x0a010004, priority=4
43  CPU 0: Thread Heir 0x0a010004 priority=4
44  CPU 0: Thread Executing 0x0a010004 priority=4
45==> 11:
46==> 12: # EXECUTING: {smp1 smp2 smp3 smp4}
47==> 13: # READY:     {IDLE IDLE IDLE IDLE}
48==> 14: # GOAL: want 0x0a010004 - 0x0a010001 as heir and executings
49==> 15: # GOAL:   on CPUs 0 -3 respectively
50==> 16: cpus smp4 smp3 smp2 smp1
51=== CPU Status
52          EXECUTING      /   HEIR             / SWITCH NEEDED
53  CPU 0: 0x0a010004 @  4 / 0x0a010004 @  4          false
54  CPU 1: 0x0a010003 @  4 / 0x0a010003 @  4          false
55  CPU 2: 0x0a010002 @  4 / 0x0a010002 @  4          false
56  CPU 3: 0x0a010001 @  4 / 0x0a010001 @  4          false
57=== End of Ready Set of Threads
58==> 17:
59==> 18: task_set_affinity smp1 0x03
60  CPU 3: Thread Heir 0x09010001 priority=255
61  CPU 3: Thread Executing 0x09010001 priority=255
62Task (0x0a010001) Set affinity=0x00000003
63==> 19: # EXECUTING: {smp2 smp3 smp4 IDLE}
64==> 20: # READY:     {smp1 IDLE IDLE IDLE}
65==> 21: # GOAL: want 0x0a010004, 0x0a010003, 0x0a010002,0x09010001
66==> 22: # GOAL:   as heir and executings on CPUs 0-3 respectively
67==> 23: cpus smp4 smp3 smp2 IDLE
68=== CPU Status
69          EXECUTING      /   HEIR             / SWITCH NEEDED
70  CPU 0: 0x0a010004 @  4 / 0x0a010004 @  4          false
71  CPU 1: 0x0a010003 @  4 / 0x0a010003 @  4          false
72  CPU 2: 0x0a010002 @  4 / 0x0a010002 @  4          false
73  CPU 3: 0x09010001 @255 / 0x09010001 @255          false
74=== End of Ready Set of Threads
75==> 24:
76==> 25: task_set_affinity smp2 0x03
77  CPU 2: Thread Heir 0x09010002 priority=255
78  CPU 2: Thread Executing 0x09010002 priority=255
79Task (0x0a010002) Set affinity=0x00000003
80==> 26: # EXECUTING: {smp3 smp4 IDLE IDLE}
81==> 27: # READY:     {smp1 smp2 IDLE IDLE}
82==> 28: # GOAL: want 0x0a010004, 0x0a010003, 0x00910002,0x09010001
83==> 29: # GOAL:   as heir and executings on CPUs 0-3 respectively
84==> 30: cpus smp4 smp3 IDLE IDLE
85=== CPU Status
86          EXECUTING      /   HEIR             / SWITCH NEEDED
87  CPU 0: 0x0a010004 @  4 / 0x0a010004 @  4          false
88  CPU 1: 0x0a010003 @  4 / 0x0a010003 @  4          false
89  CPU 2: 0x09010002 @255 / 0x09010002 @255          false
90  CPU 3: 0x09010001 @255 / 0x09010001 @255          false
91=== End of Ready Set of Threads
92==> 31:
93==> 32: task_set_affinity smp3 0x0e
94  CPU 1: Thread Heir 0x0a010002 priority=4
95  CPU 1: Thread Executing 0x0a010002 priority=4
96  CPU 2: Thread Heir 0x0a010003 priority=4
97  CPU 2: Thread Executing 0x0a010003 priority=4
98Task (0x0a010003) Set affinity=0x0000000e
99==> 33: # EXECUTING: {smp4 smp2 smp3 IDLE}
100==> 34: # READY:     {smp1 smp2 IDLE IDLE}
101==> 35: # GOAL: want 0x0a010004, 0x0a010002, 0x0a010003,0x09010001
102==> 36: # GOAL:   as heir and executings on CPUs 0-3 respectively
103==> 37: cpus smp4 smp2 smp3 IDLE
104=== CPU Status
105          EXECUTING      /   HEIR             / SWITCH NEEDED
106  CPU 0: 0x0a010004 @  4 / 0x0a010004 @  4          false
107  CPU 1: 0x0a010002 @  4 / 0x0a010002 @  4          false
108  CPU 2: 0x0a010003 @  4 / 0x0a010003 @  4          false
109  CPU 3: 0x09010001 @255 / 0x09010001 @255          false
110=== End of Ready Set of Threads
111==> 38:
112==> 39: task_set_affinity smp4 0x0e
113  CPU 0: Thread Heir 0x0a010001 priority=4
114  CPU 0: Thread Executing 0x0a010001 priority=4
115  CPU 3: Thread Heir 0x0a010004 priority=4
116  CPU 3: Thread Executing 0x0a010004 priority=4
117Task (0x0a010004) Set affinity=0x0000000e
118==> 40: # EXECUTING: {smp4 smp2 smp3 smp1}
119==> 41: # READY:     {IDLE IDLE IDLE IDLE}
120==> 42: # GOAL: want 0x0a010001, 0x0a010002, 0x0a010003,0x0a010004
121==> 43: # GOAL:   as heir and executings on CPUs 0-3 respectively
122==> 44: cpus smp1 smp2 smp3 smp4
123=== CPU Status
124          EXECUTING      /   HEIR             / SWITCH NEEDED
125  CPU 0: 0x0a010001 @  4 / 0x0a010001 @  4          false
126  CPU 1: 0x0a010002 @  4 / 0x0a010002 @  4          false
127  CPU 2: 0x0a010003 @  4 / 0x0a010003 @  4          false
128  CPU 3: 0x0a010004 @  4 / 0x0a010004 @  4          false
129=== End of Ready Set of Threads
Note: See TracBrowser for help on using the repository browser.