source: rtems-schedsim/schedsim/shell/schedsim_smppriority_affinity/scenarios/cpus4_affinity_priority_case3.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_priority_case3.scen
2verbose                   : 1
3==> 1: #
4==> 2: #  Exercise priority and affinity.
5==> 3: #  priorities such that finding an heir requires scanning the
6==> 4: #  ready set of threads.
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 10
18Creating task with:  Preemption: yes Timeslicing: no
19Task (smp1) created: id=0x0a010001, priority=10
20Task (smp1) starting: id=0x0a010001, priority=10
21  CPU 3: Thread Heir 0x0a010001 priority=10
22  CPU 3: Thread Executing 0x0a010001 priority=10
23==> 8: task_create smp2 10
24Creating task with:  Preemption: yes Timeslicing: no
25Task (smp2) created: id=0x0a010002, priority=10
26Task (smp2) starting: id=0x0a010002, priority=10
27  CPU 2: Thread Heir 0x0a010002 priority=10
28  CPU 2: Thread Executing 0x0a010002 priority=10
29==> 9: task_create smp3 10
30Creating task with:  Preemption: yes Timeslicing: no
31Task (smp3) created: id=0x0a010003, priority=10
32Task (smp3) starting: id=0x0a010003, priority=10
33  CPU 1: Thread Heir 0x0a010003 priority=10
34  CPU 1: Thread Executing 0x0a010003 priority=10
35==> 10: task_create smp4 12
36Creating task with:  Preemption: yes Timeslicing: no
37Task (smp4) created: id=0x0a010004, priority=12
38Task (smp4) starting: id=0x0a010004, priority=12
39  CPU 0: Thread Heir 0x0a010004 priority=12
40  CPU 0: Thread Executing 0x0a010004 priority=12
41==> 11: task_create smp5 10
42Creating task with:  Preemption: yes Timeslicing: no
43Task (smp5) created: id=0x0a010005, priority=10
44Task (smp5) starting: id=0x0a010005, priority=10
45  CPU 0: Thread Heir 0x0a010005 priority=10
46  CPU 0: Thread Executing 0x0a010005 priority=10
47==> 12: # GOAL: Cores 0-3 should be 0x0a01000[5321] respectively
48==> 13: cpus smp5 smp3 smp2 smp1
49=== CPU Status
50          EXECUTING      /   HEIR             / SWITCH NEEDED
51  CPU 0: 0x0a010005 @ 10 / 0x0a010005 @ 10          false
52  CPU 1: 0x0a010003 @ 10 / 0x0a010003 @ 10          false
53  CPU 2: 0x0a010002 @ 10 / 0x0a010002 @ 10          false
54  CPU 3: 0x0a010001 @ 10 / 0x0a010001 @ 10          false
55=== End of Ready Set of Threads
56==> 14:
57==> 15: # GOAL: No change - pri is too low to run
58==> 16: task_create pri1 -a 0x2 11
59Creating task with:  Preemption: yes Timeslicing: no
60Task (pri1) created: id=0x0a010006, priority=11
61Task (0x0a010006) Set affinity=0x00000002
62Task (pri1) starting: id=0x0a010006, priority=11
63==> 17: cpus smp5 smp3 smp2 smp1
64=== CPU Status
65          EXECUTING      /   HEIR             / SWITCH NEEDED
66  CPU 0: 0x0a010005 @ 10 / 0x0a010005 @ 10          false
67  CPU 1: 0x0a010003 @ 10 / 0x0a010003 @ 10          false
68  CPU 2: 0x0a010002 @ 10 / 0x0a010002 @ 10          false
69  CPU 3: 0x0a010001 @ 10 / 0x0a010001 @ 10          false
70=== End of Ready Set of Threads
71==> 18:
72==> 19: # GOAL: pri1 should preempt smp3 on core 1
73==> 20: # GOAL: Cores 0-3 should be 0x0a01000[5621] respectively
74==> 21: task_priority pri1 9
75  CPU 1: Thread Heir 0x0a010006 priority=9
76  CPU 1: Thread Executing 0x0a010006 priority=9
77Task (0x0a010006) Change Priority from 11 to 9
78==> 22: cpus smp5 pri1 smp2 smp1
79=== CPU Status
80          EXECUTING      /   HEIR             / SWITCH NEEDED
81  CPU 0: 0x0a010005 @ 10 / 0x0a010005 @ 10          false
82  CPU 1: 0x0a010006 @  9 / 0x0a010006 @  9          false
83  CPU 2: 0x0a010002 @ 10 / 0x0a010002 @ 10          false
84  CPU 3: 0x0a010001 @ 10 / 0x0a010001 @ 10          false
85=== End of Ready Set of Threads
Note: See TracBrowser for help on using the repository browser.