[rtems-schedsim commit] schedsim_smppriority_affinity: Resolve problem in expected files.

Jennifer Averett jennifer at rtems.org
Wed Jun 4 18:20:50 UTC 2014


Module:    rtems-schedsim
Branch:    master
Commit:    1f3e9743efb3e69f7a9baa2b7959e9b35e014b38
Changeset: http://git.rtems.org/rtems-schedsim/commit/?id=1f3e9743efb3e69f7a9baa2b7959e9b35e014b38

Author:    Jennifer Averett <jennifer.averett at oarcorp.com>
Date:      Wed Jun  4 13:27:54 2014 -0500

schedsim_smppriority_affinity: Resolve problem in expected files.

---

 .../scenarios/cpus4_affinity_api_case4.expected    |    9 -
 .../scenarios/cpus4_affinity_create_case1.expected |  162 ++++++++++++++++++++
 2 files changed, 162 insertions(+), 9 deletions(-)

diff --git a/schedsim/shell/schedsim_smppriority_affinity/scenarios/cpus4_affinity_api_case4.expected b/schedsim/shell/schedsim_smppriority_affinity/scenarios/cpus4_affinity_api_case4.expected
index 5d7bfbd..6b8676a 100644
--- a/schedsim/shell/schedsim_smppriority_affinity/scenarios/cpus4_affinity_api_case4.expected
+++ b/schedsim/shell/schedsim_smppriority_affinity/scenarios/cpus4_affinity_api_case4.expected
@@ -19,7 +19,6 @@ verbose                   : 1
 Creating task with:  Preemption: yes Timeslicing: no
 Task (smp1) created: id=0x0a010001, priority=5
 Task (smp1) starting: id=0x0a010001, priority=5
-Send Interrupt to cpu 3
   CPU 3: Thread Heir: 0x0a010001 priority=5
   CPU 3: Thread Executing: 0x0a010001 priority=5
 ==> 9: current_cpu 3
@@ -39,7 +38,6 @@ Changing current CPU from 0 to 3
 Creating task with:  Preemption: yes Timeslicing: no
 Task (smp2) created: id=0x0a010002, priority=4
 Task (smp2) starting: id=0x0a010002, priority=4
-Send Interrupt to cpu 2
   CPU 2: Thread Heir: 0x0a010002 priority=4
   CPU 2: Thread Executing: 0x0a010002 priority=4
 ==> 15: cpus IDLE IDLE smp2 smp1
@@ -52,8 +50,6 @@ Send Interrupt to cpu 2
 === End of Ready Set of Threads
 ==> 16: 
 ==> 17: task_set_affinity smp2 0x01
-Send Interrupt to cpu 2
-Send Interrupt to cpu 0
   CPU 0: Thread Heir: 0x0a010002 priority=4
   CPU 0: Thread Executing: 0x0a010002 priority=4
   CPU 2: Thread Heir: 0x09010003 priority=255
@@ -69,8 +65,6 @@ Task (0x0a010002) Set affinity=0x00000001
 === End of Ready Set of Threads
 ==> 19: 
 ==> 20: task_set_affinity smp2 0x02
-Send Interrupt to cpu 0
-Send Interrupt to cpu 1
   CPU 0: Thread Heir: 0x09010001 priority=255
   CPU 0: Thread Executing: 0x09010001 priority=255
   CPU 1: Thread Heir: 0x0a010002 priority=4
@@ -86,8 +80,6 @@ Task (0x0a010002) Set affinity=0x00000002
 === End of Ready Set of Threads
 ==> 22: 
 ==> 23: task_set_affinity smp2 0x04
-Send Interrupt to cpu 1
-Send Interrupt to cpu 2
   CPU 1: Thread Heir: 0x09010002 priority=255
   CPU 1: Thread Executing: 0x09010002 priority=255
   CPU 2: Thread Heir: 0x0a010002 priority=4
@@ -103,7 +95,6 @@ Task (0x0a010002) Set affinity=0x00000004
 === End of Ready Set of Threads
 ==> 25: 
 ==> 26: task_set_affinity smp2 0x08
-Send Interrupt to cpu 2
   CPU 2: Thread Heir: 0x0a010001 priority=5
   CPU 2: Thread Executing: 0x0a010001 priority=5
   CPU 3: Thread Heir: 0x0a010002 priority=4
diff --git a/schedsim/shell/schedsim_smppriority_affinity/scenarios/cpus4_affinity_create_case1.expected b/schedsim/shell/schedsim_smppriority_affinity/scenarios/cpus4_affinity_create_case1.expected
new file mode 100644
index 0000000..595d04d
--- /dev/null
+++ b/schedsim/shell/schedsim_smppriority_affinity/scenarios/cpus4_affinity_create_case1.expected
@@ -0,0 +1,162 @@
+Script File               : cpus4_affinity_create_case1.scen
+verbose                   : 1
+==> 1: #
+==> 2: #  Create threads of single cpu affinity to fill the
+==> 3: #  cpus.  Have a single of the same priority on the
+==> 4: #  ready chain that can run on any cpu.  Change the
+==> 5: #  affinity of one of the running threads forcing it
+==> 6: #  to move to the ready chain and quit running. 
+==> 7: #
+==> 8: rtems_init 4
+  CPU 0: Thread Heir: 0x09010001 priority=255
+  CPU 0: Thread Executing: 0x09010001 priority=255
+  CPU 1: Thread Heir: 0x09010002 priority=255
+  CPU 1: Thread Executing: 0x09010002 priority=255
+  CPU 2: Thread Heir: 0x09010003 priority=255
+  CPU 2: Thread Executing: 0x09010003 priority=255
+  CPU 3: Thread Heir: 0x09010004 priority=255
+  CPU 3: Thread Executing: 0x09010004 priority=255
+==> 9: task_create smp1 8
+Creating task with:  Preemption: yes Timeslicing: no
+Task (smp1) created: id=0x0a010001, priority=8
+Task (smp1) starting: id=0x0a010001, priority=8
+  CPU 3: Thread Heir: 0x0a010001 priority=8
+  CPU 3: Thread Executing: 0x0a010001 priority=8
+==> 10: current_cpu 3
+Changing current CPU from 0 to 3
+==> 11: 
+==> 12: cpus IDLE IDLE IDLE smp1
+=== CPU Status
+          EXECUTING      /   HEIR             / SWITCH NEEDED
+  CPU 0: 0x09010001 @255 / 0x09010001 @255          false
+  CPU 1: 0x09010002 @255 / 0x09010002 @255          false
+  CPU 2: 0x09010003 @255 / 0x09010003 @255          false
+  CPU 3: 0x0a010001 @  8 / 0x0a010001 @  8          false
+=== End of Ready Set of Threads
+==> 13: 
+==> 14: task_create smp2 4 -a 0x4
+Creating task with:  Preemption: yes Timeslicing: no
+Task (smp2) created: id=0x0a010002, priority=4
+Task (0x0a010002) Set affinity=0x00000004
+Task (smp2) starting: id=0x0a010002, priority=4
+  CPU 2: Thread Heir: 0x0a010002 priority=4
+  CPU 2: Thread Executing: 0x0a010002 priority=4
+==> 15: cpus IDLE IDLE smp2 smp1
+=== CPU Status
+          EXECUTING      /   HEIR             / SWITCH NEEDED
+  CPU 0: 0x09010001 @255 / 0x09010001 @255          false
+  CPU 1: 0x09010002 @255 / 0x09010002 @255          false
+  CPU 2: 0x0a010002 @  4 / 0x0a010002 @  4          false
+  CPU 3: 0x0a010001 @  8 / 0x0a010001 @  8          false
+=== End of Ready Set of Threads
+==> 16:  
+==> 17: task_create smp3 4 -a 0x1
+Creating task with:  Preemption: yes Timeslicing: no
+Task (smp3) created: id=0x0a010003, priority=4
+Task (0x0a010003) Set affinity=0x00000001
+Task (smp3) starting: id=0x0a010003, priority=4
+  CPU 0: Thread Heir: 0x0a010003 priority=4
+  CPU 0: Thread Executing: 0x0a010003 priority=4
+==> 18: cpus smp3 IDLE smp2 smp1
+=== CPU Status
+          EXECUTING      /   HEIR             / SWITCH NEEDED
+  CPU 0: 0x0a010003 @  4 / 0x0a010003 @  4          false
+  CPU 1: 0x09010002 @255 / 0x09010002 @255          false
+  CPU 2: 0x0a010002 @  4 / 0x0a010002 @  4          false
+  CPU 3: 0x0a010001 @  8 / 0x0a010001 @  8          false
+=== End of Ready Set of Threads
+==> 19: 
+==> 20: task_delete smp2
+  CPU 2: Thread Heir: 0x0a010001 priority=8
+  CPU 2: Thread Executing: 0x0a010001 priority=8
+  CPU 3: Thread Heir: 0x09010001 priority=255
+  CPU 3: Thread Executing: 0x09010001 priority=255
+Task (0x0a010002) deleted
+==> 21: cpus smp3 IDLE smp1 IDLE
+=== CPU Status
+          EXECUTING      /   HEIR             / SWITCH NEEDED
+  CPU 0: 0x0a010003 @  4 / 0x0a010003 @  4          false
+  CPU 1: 0x09010002 @255 / 0x09010002 @255          false
+  CPU 2: 0x0a010001 @  8 / 0x0a010001 @  8          false
+  CPU 3: 0x09010001 @255 / 0x09010001 @255          false
+=== End of Ready Set of Threads
+==> 22: 
+==> 23: task_create smp4 4 -a 0x8
+Creating task with:  Preemption: yes Timeslicing: no
+Task (smp4) created: id=0x0a010004, priority=4
+Task (0x0a010004) Set affinity=0x00000008
+Task (smp4) starting: id=0x0a010004, priority=4
+  CPU 3: Thread Heir: 0x0a010004 priority=4
+  CPU 3: Thread Executing: 0x0a010004 priority=4
+==> 24: current_cpu 2
+Changing current CPU from 3 to 2
+==> 25: cpus smp3 IDLE smp1 smp4
+=== CPU Status
+          EXECUTING      /   HEIR             / SWITCH NEEDED
+  CPU 0: 0x0a010003 @  4 / 0x0a010003 @  4          false
+  CPU 1: 0x09010002 @255 / 0x09010002 @255          false
+  CPU 2: 0x0a010001 @  8 / 0x0a010001 @  8          false
+  CPU 3: 0x0a010004 @  4 / 0x0a010004 @  4          false
+=== End of Ready Set of Threads
+==> 26: 
+==> 27: task_delete smp3
+  CPU 0: Thread Heir: 0x0a010001 priority=8
+  CPU 0: Thread Executing: 0x0a010001 priority=8
+  CPU 2: Thread Heir: 0x09010001 priority=255
+  CPU 2: Thread Executing: 0x09010001 priority=255
+Task (0x0a010003) deleted
+==> 28: cpus smp1 IDLE IDLE smp4
+=== CPU Status
+          EXECUTING      /   HEIR             / SWITCH NEEDED
+  CPU 0: 0x0a010001 @  8 / 0x0a010001 @  8          false
+  CPU 1: 0x09010002 @255 / 0x09010002 @255          false
+  CPU 2: 0x09010001 @255 / 0x09010001 @255          false
+  CPU 3: 0x0a010004 @  4 / 0x0a010004 @  4          false
+=== End of Ready Set of Threads
+==> 29: 
+==> 30: task_create smp5 4 -a 0x2
+Creating task with:  Preemption: yes Timeslicing: no
+Task (smp5) created: id=0x0a010005, priority=4
+Task (0x0a010005) Set affinity=0x00000002
+Task (smp5) starting: id=0x0a010005, priority=4
+  CPU 1: Thread Heir: 0x0a010005 priority=4
+  CPU 1: Thread Executing: 0x0a010005 priority=4
+==> 31: cpus smp1 smp5 IDLE smp4
+=== CPU Status
+          EXECUTING      /   HEIR             / SWITCH NEEDED
+  CPU 0: 0x0a010001 @  8 / 0x0a010001 @  8          false
+  CPU 1: 0x0a010005 @  4 / 0x0a010005 @  4          false
+  CPU 2: 0x09010001 @255 / 0x09010001 @255          false
+  CPU 3: 0x0a010004 @  4 / 0x0a010004 @  4          false
+=== End of Ready Set of Threads
+==> 32: 
+==> 33: task_delete smp4
+  CPU 2: Thread Heir: 0x09010002 priority=255
+  CPU 2: Thread Executing: 0x09010002 priority=255
+  CPU 3: Thread Heir: 0x09010003 priority=255
+  CPU 3: Thread Executing: 0x09010003 priority=255
+Task (0x0a010004) deleted
+==> 34: cpus smp1 smp5 IDLE IDLE
+=== CPU Status
+          EXECUTING      /   HEIR             / SWITCH NEEDED
+  CPU 0: 0x0a010001 @  8 / 0x0a010001 @  8          false
+  CPU 1: 0x0a010005 @  4 / 0x0a010005 @  4          false
+  CPU 2: 0x09010002 @255 / 0x09010002 @255          false
+  CPU 3: 0x09010003 @255 / 0x09010003 @255          false
+=== End of Ready Set of Threads
+==> 35: 
+==> 36: task_delete smp5
+  CPU 1: Thread Heir: 0x09010004 priority=255
+  CPU 1: Thread Executing: 0x09010004 priority=255
+  CPU 2: Thread Heir: 0x09010001 priority=255
+  CPU 2: Thread Executing: 0x09010001 priority=255
+Task (0x0a010005) deleted
+==> 37: cpus smp1 IDLE IDLE IDLE
+=== CPU Status
+          EXECUTING      /   HEIR             / SWITCH NEEDED
+  CPU 0: 0x0a010001 @  8 / 0x0a010001 @  8          false
+  CPU 1: 0x09010004 @255 / 0x09010004 @255          false
+  CPU 2: 0x09010001 @255 / 0x09010001 @255          false
+  CPU 3: 0x09010003 @255 / 0x09010003 @255          false
+=== End of Ready Set of Threads
+==> 38: 




More information about the vc mailing list