source: rtems-schedsim/schedsim/shell/schedsim_smppriority_affinity/scenarios/cpus4_affinity_migrate_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: 3.7 KB
Line 
1Script File               : scenarios/cpus4_affinity_migrate_case1.scen
2verbose                   : 1
3==> 1: #
4==> 2: # Create 5 tasks of the same priority.  Then
5==> 3: # change the affinity and the priority of the
6==> 4: # task that is on the ready queue.
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
18Creating task with:  Preemption: yes Timeslicing: no
19Task (smp1) created: id=0x0a010001, priority=4
20Task (smp1) starting: id=0x0a010001, priority=4
21  CPU 3: Thread Heir 0x0a010001 priority=4
22  CPU 3: Thread Executing 0x0a010001 priority=4
23==> 8: task_create smp2 4
24Creating task with:  Preemption: yes Timeslicing: no
25Task (smp2) created: id=0x0a010002, priority=4
26Task (smp2) starting: id=0x0a010002, priority=4
27  CPU 2: Thread Heir 0x0a010002 priority=4
28  CPU 2: Thread Executing 0x0a010002 priority=4
29==> 9: task_create smp3 4
30Creating task with:  Preemption: yes Timeslicing: no
31Task (smp3) created: id=0x0a010003, priority=4
32Task (smp3) starting: id=0x0a010003, priority=4
33  CPU 1: Thread Heir 0x0a010003 priority=4
34  CPU 1: Thread Executing 0x0a010003 priority=4
35==> 10: task_create smp4 4
36Creating task with:  Preemption: yes Timeslicing: no
37Task (smp4) created: id=0x0a010004, priority=4
38Task (smp4) starting: id=0x0a010004, priority=4
39  CPU 0: Thread Heir 0x0a010004 priority=4
40  CPU 0: Thread Executing 0x0a010004 priority=4
41==> 11: task_create smp5 4
42Creating task with:  Preemption: yes Timeslicing: no
43Task (smp5) created: id=0x0a010005, priority=4
44Task (smp5) starting: id=0x0a010005, priority=4
45==> 12:
46==> 13: # GOAL: want 0x0a010004 - 0x0a010001 as heir and executings
47==> 14: # GOAL:   on CPUs 0 -3 respectively
48==> 15: cpus smp4 smp3 smp2 smp1
49=== CPU Status
50          EXECUTING      /   HEIR             / SWITCH NEEDED
51  CPU 0: 0x0a010004 @  4 / 0x0a010004 @  4          false
52  CPU 1: 0x0a010003 @  4 / 0x0a010003 @  4          false
53  CPU 2: 0x0a010002 @  4 / 0x0a010002 @  4          false
54  CPU 3: 0x0a010001 @  4 / 0x0a010001 @  4          false
55=== End of Ready Set of Threads
56==> 16:
57==> 17: task_set_affinity smp5 0x03
58Task (0x0a010005) Set affinity=0x00000003
59==> 18: task_priority smp5 3
60  CPU 0: Thread Heir 0x0a010005 priority=3
61  CPU 0: Thread Executing 0x0a010005 priority=3
62Task (0x0a010005) Change Priority from 4 to 3
63==> 19: 
64==> 20: # GOAL: want 0x0a010005, 0x0a010003, 0x0a010002,0x0a010001
65==> 21: # GOAL:   as heir and executings on CPUs 0-3 respectively
66==> 22: cpus smp5 smp3 smp2 smp1
67=== CPU Status
68          EXECUTING      /   HEIR             / SWITCH NEEDED
69  CPU 0: 0x0a010005 @  3 / 0x0a010005 @  3          false
70  CPU 1: 0x0a010003 @  4 / 0x0a010003 @  4          false
71  CPU 2: 0x0a010002 @  4 / 0x0a010002 @  4          false
72  CPU 3: 0x0a010001 @  4 / 0x0a010001 @  4          false
73=== End of Ready Set of Threads
74==> 23:
75==> 24: task_set_affinity smp4 0x01
76Task (0x0a010004) Set affinity=0x00000001
77==> 25: # GOAL: want 0x0a010002, 0x0a010005, 0x0a010003,0x0a010001
78==> 26: # GOAL:   as heir and executings on CPUs 0-3 respectively
79==> 27: cpus smp5 smp3 smp2 smp1
80=== CPU Status
81          EXECUTING      /   HEIR             / SWITCH NEEDED
82  CPU 0: 0x0a010005 @  3 / 0x0a010005 @  3          false
83  CPU 1: 0x0a010003 @  4 / 0x0a010003 @  4          false
84  CPU 2: 0x0a010002 @  4 / 0x0a010002 @  4          false
85  CPU 3: 0x0a010001 @  4 / 0x0a010001 @  4          false
86=== End of Ready Set of Threads
Note: See TracBrowser for help on using the repository browser.