source: rtems-schedsim/schedsim/shell/schedsim_smppriority_affinity/scenarios/cpus4_exercise_affinity_api.expected @ 9f3c8eb

Last change on this file since 9f3c8eb was 9f3c8eb, checked in by Jennifer Averett <jennifer.averett@…>, on May 16, 2014 at 7:53:51 PM

Add scenarios for setting affinity before start of task.

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