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

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: 3.4 KB
Line 
1Script File               : scenarios/cpus4_affinity_migrate_case2.scen
2verbose                   : 1
3==> 1: #
4==> 2: #  Create threads of single cpu affinity to fill the
5==> 3: #  cpus.  Have a single of the same priority on the
6==> 4: #  ready chain that can run on any cpu.  Change the
7==> 5: #  affinity of one of the running threads forcing it
8==> 6: #  to move to the ready chain and quit running.
9==> 7: #
10==> 8: rtems_init 4
11  CPU 0: Thread Heir 0x09010001 priority=255
12  CPU 0: Thread Executing 0x09010001 priority=255
13  CPU 1: Thread Heir 0x09010002 priority=255
14  CPU 1: Thread Executing 0x09010002 priority=255
15  CPU 2: Thread Heir 0x09010003 priority=255
16  CPU 2: Thread Executing 0x09010003 priority=255
17  CPU 3: Thread Heir 0x09010004 priority=255
18  CPU 3: Thread Executing 0x09010004 priority=255
19==> 9: task_create smp1 4 -a 0x2
20Creating task with:  Preemption: yes Timeslicing: no
21Task (smp1) created: id=0x0a010001, priority=4
22Task (0x0a010001) Set affinity=0x00000002
23Task (smp1) starting: id=0x0a010001, priority=4
24  CPU 1: Thread Heir 0x0a010001 priority=4
25  CPU 1: Thread Executing 0x0a010001 priority=4
26==> 10: task_create smp2 4 -a 0x1
27Creating task with:  Preemption: yes Timeslicing: no
28Task (smp2) created: id=0x0a010002, priority=4
29Task (0x0a010002) Set affinity=0x00000001
30Task (smp2) starting: id=0x0a010002, priority=4
31  CPU 0: Thread Heir 0x0a010002 priority=4
32  CPU 0: Thread Executing 0x0a010002 priority=4
33==> 11: task_create smp3 4 -a 0x8
34Creating task with:  Preemption: yes Timeslicing: no
35Task (smp3) created: id=0x0a010003, priority=4
36Task (0x0a010003) Set affinity=0x00000008
37Task (smp3) starting: id=0x0a010003, priority=4
38  CPU 3: Thread Heir 0x0a010003 priority=4
39  CPU 3: Thread Executing 0x0a010003 priority=4
40==> 12: task_create smp4 4 -a 0x4
41Creating task with:  Preemption: yes Timeslicing: no
42Task (smp4) created: id=0x0a010004, priority=4
43Task (0x0a010004) Set affinity=0x00000004
44Task (smp4) starting: id=0x0a010004, priority=4
45  CPU 2: Thread Heir 0x0a010004 priority=4
46  CPU 2: Thread Executing 0x0a010004 priority=4
47==> 13: task_create smp5 4
48Creating task with:  Preemption: yes Timeslicing: no
49Task (smp5) created: id=0x0a010005, priority=4
50Task (smp5) starting: id=0x0a010005, priority=4
51==> 14:
52==> 15: # GOAL: want 0x0a010002, 0x0a010001, 0x0a010004, 0x0a010003
53==> 16: # GOAL:   as heir and executings on CPUs 0-3 respectively
54==> 17: cpus smp2 smp1 smp4 smp3
55=== CPU Status
56          EXECUTING      /   HEIR             / SWITCH NEEDED
57  CPU 0: 0x0a010002 @  4 / 0x0a010002 @  4          false
58  CPU 1: 0x0a010001 @  4 / 0x0a010001 @  4          false
59  CPU 2: 0x0a010004 @  4 / 0x0a010004 @  4          false
60  CPU 3: 0x0a010003 @  4 / 0x0a010003 @  4          false
61=== End of Ready Set of Threads
62==> 18:
63==> 19:
64==> 20: task_set_affinity smp1 0x0e
65  CPU 1: Thread Heir 0x0a010005 priority=4
66  CPU 1: Thread Executing 0x0a010005 priority=4
67Task (0x0a010001) Set affinity=0x0000000e
68==> 21: # GOAL: want 0x0a010002, 0x0a010005, 0x0a010004, 0x0a010003
69==> 22: # GOAL:   as heir and executings on CPUs 0-3 respectively
70==> 23: cpus smp2 smp5 smp4 smp3
71=== CPU Status
72          EXECUTING      /   HEIR             / SWITCH NEEDED
73  CPU 0: 0x0a010002 @  4 / 0x0a010002 @  4          false
74  CPU 1: 0x0a010005 @  4 / 0x0a010005 @  4          false
75  CPU 2: 0x0a010004 @  4 / 0x0a010004 @  4          false
76  CPU 3: 0x0a010003 @  4 / 0x0a010003 @  4          false
77=== End of Ready Set of Threads
78==> 24:
Note: See TracBrowser for help on using the repository browser.