source: rtems-schedsim/schedsim/shell/schedsim_smppriority_affinity/scenarios/cpus4_affinity_api_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.3 KB
Line 
1Script File               : scenarios/cpus4_affinity_api_case1.scen
2verbose                   : 1
3==> 1: #
4==> 2: #  Verify that affinity APIs work with the right values
5==> 3: #
6==> 4: #  This scenario does **NOT** change the affinity of any thread
7==> 5: #  which ever executes.
8==> 6: #
9==> 7: rtems_init 4
10  CPU 0: Thread Heir 0x09010001 priority=255
11  CPU 0: Thread Executing 0x09010001 priority=255
12  CPU 1: Thread Heir 0x09010002 priority=255
13  CPU 1: Thread Executing 0x09010002 priority=255
14  CPU 2: Thread Heir 0x09010003 priority=255
15  CPU 2: Thread Executing 0x09010003 priority=255
16  CPU 3: Thread Heir 0x09010004 priority=255
17  CPU 3: Thread Executing 0x09010004 priority=255
18==> 8: task_create smp1 3
19Creating task with:  Preemption: yes Timeslicing: no
20Task (smp1) created: id=0x0a010001, priority=3
21Task (smp1) starting: id=0x0a010001, priority=3
22  CPU 3: Thread Heir 0x0a010001 priority=3
23  CPU 3: Thread Executing 0x0a010001 priority=3
24==> 9: task_create smp2 6
25Creating task with:  Preemption: yes Timeslicing: no
26Task (smp2) created: id=0x0a010002, priority=6
27Task (smp2) starting: id=0x0a010002, priority=6
28  CPU 2: Thread Heir 0x0a010002 priority=6
29  CPU 2: Thread Executing 0x0a010002 priority=6
30==> 10: task_create smp3 7
31Creating task with:  Preemption: yes Timeslicing: no
32Task (smp3) created: id=0x0a010003, priority=7
33Task (smp3) starting: id=0x0a010003, priority=7
34  CPU 1: Thread Heir 0x0a010003 priority=7
35  CPU 1: Thread Executing 0x0a010003 priority=7
36==> 11: task_create smp4 8
37Creating task with:  Preemption: yes Timeslicing: no
38Task (smp4) created: id=0x0a010004, priority=8
39Task (smp4) starting: id=0x0a010004, priority=8
40  CPU 0: Thread Heir 0x0a010004 priority=8
41  CPU 0: Thread Executing 0x0a010004 priority=8
42==> 12: task_create smp5 10
43Creating task with:  Preemption: yes Timeslicing: no
44Task (smp5) created: id=0x0a010005, priority=10
45Task (smp5) starting: id=0x0a010005, priority=10
46==> 13: dispatch
47==> 14: # GOAL: Tasks 0x0a010001 - 0x0a010004 as heir and executing
48==> 15: # GOAL:    on CPUs 1 - 4 respectively
49==> 16: cpus smp4 smp3 smp2 smp1
50=== CPU Status
51          EXECUTING      /   HEIR             / SWITCH NEEDED
52  CPU 0: 0x0a010004 @  8 / 0x0a010004 @  8          false
53  CPU 1: 0x0a010003 @  7 / 0x0a010003 @  7          false
54  CPU 2: 0x0a010002 @  6 / 0x0a010002 @  6          false
55  CPU 3: 0x0a010001 @  3 / 0x0a010001 @  3          false
56=== End of Ready Set of Threads
57==> 17:
58==> 18: # GOAL: These should work OK and change the affinity
59==> 19: task_get_affinity smp5
60Task (0x0a010005) Get affinity=0x0000000f
61==> 20: task_set_affinity smp5 0x01
62Task (0x0a010005) Set affinity=0x00000001
63==> 21: task_get_affinity smp5
64Task (0x0a010005) Get affinity=0x00000001
65==> 22: task_set_affinity smp5 0x02
66Task (0x0a010005) Set affinity=0x00000002
67==> 23: task_get_affinity smp5
68Task (0x0a010005) Get affinity=0x00000002
69==> 24: task_set_affinity smp5 0x04
70Task (0x0a010005) Set affinity=0x00000004
71==> 25: task_get_affinity smp5
72Task (0x0a010005) Get affinity=0x00000004
73==> 26: task_set_affinity smp5 0x08
74Task (0x0a010005) Set affinity=0x00000008
75==> 27: task_get_affinity smp5
76Task (0x0a010005) Get affinity=0x00000008
77==> 28:
78==> 29: # GOAL This should fail.
79==> 30: task_set_affinity smp5 0x10
80==> 31: task_get_affinity smp5
81Task (0x0a010005) Get affinity=0x00000008
82==> 32:
Note: See TracBrowser for help on using the repository browser.