diff options
author | Joel Sherrill <joel.sherrill@OARcorp.com> | 2011-05-17 19:31:08 +0000 |
---|---|---|
committer | Joel Sherrill <joel.sherrill@OARcorp.com> | 2011-05-17 19:31:08 +0000 |
commit | 9077d3c2e4eeac466871dfc4a46e87b52012697f (patch) | |
tree | 88a39cf9a2565223d06cdad24c7f1240951d3602 /schedsim/shell/schedsim_priority/scenarios | |
parent | 2011-04-25 Joel Sherrill <joel.sherrill@oarcorp.com> (diff) | |
download | rtems-schedsim-9077d3c2e4eeac466871dfc4a46e87b52012697f.tar.bz2 |
2011-05-17 Joel Sherrill <joel.sherrill@oarcorp.com>
* Makefile.am: Merge and update code. Simulators for Deterministic
Priority and SMP Simple Schedulers now work.
* ChangeLog, smp_stub.c, scenarios/script01.expected,
scenarios/script01.output, scenarios/script01.scen,
scenarios/script02.expected, scenarios/script02.output,
scenarios/script02.scen, scenarios/script03.expected,
scenarios/script03.output, scenarios/script03.scen,
scenarios/script04.expected, scenarios/script04.output,
scenarios/script04.scen, scenarios/script05.expected,
scenarios/script05.output, scenarios/script05.scen,
scenarios/script06.expected, scenarios/script06.output,
scenarios/script06.scen: New files.
* scenarios/script01, scenarios/script02, scenarios/script03,
scenarios/script04, scenarios/script05, scenarios/script06: Removed.
Diffstat (limited to 'schedsim/shell/schedsim_priority/scenarios')
18 files changed, 326 insertions, 0 deletions
diff --git a/schedsim/shell/schedsim_priority/scenarios/script01.expected b/schedsim/shell/schedsim_priority/scenarios/script01.expected new file mode 100644 index 0000000..8a18f29 --- /dev/null +++ b/schedsim/shell/schedsim_priority/scenarios/script01.expected @@ -0,0 +1,22 @@ +*** TEST 01 *** + Thread Heir: 0x09010001 priority=255 + Thread Executing: 0x09010001 priority=255 +=== Create and delete 0x0a010001 === +Creating task with: Preemption: yes Timeslicing: no +Task (TA1) created: id=0x0a010001, priority=3 +Task (TA1) starting: id=0x0a010001, priority=3 + Thread Heir: 0x0a010001 priority=3 + Thread Executing: 0x0a010001 priority=3 + Thread Heir: 0x09010001 priority=255 + Thread Executing: 0x09010001 priority=255 +Task (0x0a010001) deleted +=== Create and delete 0x0a010002 === +Creating task with: Preemption: yes Timeslicing: no +Task (TA1) created: id=0x0a010002, priority=3 +Task (TA1) starting: id=0x0a010002, priority=3 + Thread Heir: 0x0a010002 priority=3 + Thread Executing: 0x0a010002 priority=3 + Thread Heir: 0x09010001 priority=255 + Thread Executing: 0x09010001 priority=255 +Task (0x0a010002) deleted +*** END OF TEST 01 *** diff --git a/schedsim/shell/schedsim_priority/scenarios/script01.output b/schedsim/shell/schedsim_priority/scenarios/script01.output new file mode 100644 index 0000000..8a18f29 --- /dev/null +++ b/schedsim/shell/schedsim_priority/scenarios/script01.output @@ -0,0 +1,22 @@ +*** TEST 01 *** + Thread Heir: 0x09010001 priority=255 + Thread Executing: 0x09010001 priority=255 +=== Create and delete 0x0a010001 === +Creating task with: Preemption: yes Timeslicing: no +Task (TA1) created: id=0x0a010001, priority=3 +Task (TA1) starting: id=0x0a010001, priority=3 + Thread Heir: 0x0a010001 priority=3 + Thread Executing: 0x0a010001 priority=3 + Thread Heir: 0x09010001 priority=255 + Thread Executing: 0x09010001 priority=255 +Task (0x0a010001) deleted +=== Create and delete 0x0a010002 === +Creating task with: Preemption: yes Timeslicing: no +Task (TA1) created: id=0x0a010002, priority=3 +Task (TA1) starting: id=0x0a010002, priority=3 + Thread Heir: 0x0a010002 priority=3 + Thread Executing: 0x0a010002 priority=3 + Thread Heir: 0x09010001 priority=255 + Thread Executing: 0x09010001 priority=255 +Task (0x0a010002) deleted +*** END OF TEST 01 *** diff --git a/schedsim/shell/schedsim_priority/scenarios/script01 b/schedsim/shell/schedsim_priority/scenarios/script01.scen index 9a40dc3..9a40dc3 100644 --- a/schedsim/shell/schedsim_priority/scenarios/script01 +++ b/schedsim/shell/schedsim_priority/scenarios/script01.scen diff --git a/schedsim/shell/schedsim_priority/scenarios/script02.expected b/schedsim/shell/schedsim_priority/scenarios/script02.expected new file mode 100644 index 0000000..49abf04 --- /dev/null +++ b/schedsim/shell/schedsim_priority/scenarios/script02.expected @@ -0,0 +1,22 @@ +*** TEST 02 *** + Thread Heir: 0x09010001 priority=255 + Thread Executing: 0x09010001 priority=255 +=== Create 0x0a010001 === +Creating task with: Preemption: yes Timeslicing: no +Task (TA1) created: id=0x0a010001, priority=1 +Task (TA1) starting: id=0x0a010001, priority=1 + Thread Heir: 0x0a010001 priority=1 + Thread Executing: 0x0a010001 priority=1 +Task (0x0a010001) sleeping for 5 ticks + Thread Heir: 0x09010001 priority=255 + Thread Executing: 0x09010001 priority=255 +ClockTick (1) ... +ClockTick (2) ... +ClockTick (3) ... +ClockTick (4) ... +ClockTick (5) ... + Thread Heir: 0x0a010001 priority=1 + Thread Executing: 0x0a010001 priority=1 +ClockTick (6) ... +ClockTick (7) ... +*** END OF TEST 2 *** diff --git a/schedsim/shell/schedsim_priority/scenarios/script02.output b/schedsim/shell/schedsim_priority/scenarios/script02.output new file mode 100644 index 0000000..49abf04 --- /dev/null +++ b/schedsim/shell/schedsim_priority/scenarios/script02.output @@ -0,0 +1,22 @@ +*** TEST 02 *** + Thread Heir: 0x09010001 priority=255 + Thread Executing: 0x09010001 priority=255 +=== Create 0x0a010001 === +Creating task with: Preemption: yes Timeslicing: no +Task (TA1) created: id=0x0a010001, priority=1 +Task (TA1) starting: id=0x0a010001, priority=1 + Thread Heir: 0x0a010001 priority=1 + Thread Executing: 0x0a010001 priority=1 +Task (0x0a010001) sleeping for 5 ticks + Thread Heir: 0x09010001 priority=255 + Thread Executing: 0x09010001 priority=255 +ClockTick (1) ... +ClockTick (2) ... +ClockTick (3) ... +ClockTick (4) ... +ClockTick (5) ... + Thread Heir: 0x0a010001 priority=1 + Thread Executing: 0x0a010001 priority=1 +ClockTick (6) ... +ClockTick (7) ... +*** END OF TEST 2 *** diff --git a/schedsim/shell/schedsim_priority/scenarios/script02 b/schedsim/shell/schedsim_priority/scenarios/script02.scen index 294956c..294956c 100644 --- a/schedsim/shell/schedsim_priority/scenarios/script02 +++ b/schedsim/shell/schedsim_priority/scenarios/script02.scen diff --git a/schedsim/shell/schedsim_priority/scenarios/script03.expected b/schedsim/shell/schedsim_priority/scenarios/script03.expected new file mode 100644 index 0000000..dd3c96d --- /dev/null +++ b/schedsim/shell/schedsim_priority/scenarios/script03.expected @@ -0,0 +1,26 @@ +*** TEST 03 *** + Thread Heir: 0x09010001 priority=255 + Thread Executing: 0x09010001 priority=255 +=== Create 0x0a010001 === +Creating task with: Preemption: yes Timeslicing: no +Task (TA1) created: id=0x0a010001, priority=1 +Task (TA1) starting: id=0x0a010001, priority=1 + Thread Heir: 0x0a010001 priority=1 + Thread Executing: 0x0a010001 priority=1 +** Mode - query +Previous Mode: Preemption: yes Timeslicing: no +** Mode - set no timeslicing +Previous Mode: Preemption: yes Timeslicing: no +Current Mode: Preemption: yes Timeslicing: no +** Mode - set timeslicing +Previous Mode: Preemption: yes Timeslicing: no +Current Mode: Preemption: yes Timeslicing: yes +** Mode - set no timeslicing and no preempt +Previous Mode: Preemption: yes Timeslicing: yes +Current Mode: Preemption: no Timeslicing: no +** Mode - set timeslicing and preempt +Previous Mode: Preemption: no Timeslicing: no +Current Mode: Preemption: yes Timeslicing: yes +** Mode - query +Previous Mode: Preemption: yes Timeslicing: yes +*** END OF TEST 03 *** diff --git a/schedsim/shell/schedsim_priority/scenarios/script03.output b/schedsim/shell/schedsim_priority/scenarios/script03.output new file mode 100644 index 0000000..dd3c96d --- /dev/null +++ b/schedsim/shell/schedsim_priority/scenarios/script03.output @@ -0,0 +1,26 @@ +*** TEST 03 *** + Thread Heir: 0x09010001 priority=255 + Thread Executing: 0x09010001 priority=255 +=== Create 0x0a010001 === +Creating task with: Preemption: yes Timeslicing: no +Task (TA1) created: id=0x0a010001, priority=1 +Task (TA1) starting: id=0x0a010001, priority=1 + Thread Heir: 0x0a010001 priority=1 + Thread Executing: 0x0a010001 priority=1 +** Mode - query +Previous Mode: Preemption: yes Timeslicing: no +** Mode - set no timeslicing +Previous Mode: Preemption: yes Timeslicing: no +Current Mode: Preemption: yes Timeslicing: no +** Mode - set timeslicing +Previous Mode: Preemption: yes Timeslicing: no +Current Mode: Preemption: yes Timeslicing: yes +** Mode - set no timeslicing and no preempt +Previous Mode: Preemption: yes Timeslicing: yes +Current Mode: Preemption: no Timeslicing: no +** Mode - set timeslicing and preempt +Previous Mode: Preemption: no Timeslicing: no +Current Mode: Preemption: yes Timeslicing: yes +** Mode - query +Previous Mode: Preemption: yes Timeslicing: yes +*** END OF TEST 03 *** diff --git a/schedsim/shell/schedsim_priority/scenarios/script03 b/schedsim/shell/schedsim_priority/scenarios/script03.scen index a05ab26..a05ab26 100644 --- a/schedsim/shell/schedsim_priority/scenarios/script03 +++ b/schedsim/shell/schedsim_priority/scenarios/script03.scen diff --git a/schedsim/shell/schedsim_priority/scenarios/script04.expected b/schedsim/shell/schedsim_priority/scenarios/script04.expected new file mode 100644 index 0000000..664df89 --- /dev/null +++ b/schedsim/shell/schedsim_priority/scenarios/script04.expected @@ -0,0 +1,21 @@ +*** TEST 04 *** + Thread Heir: 0x09010001 priority=255 + Thread Executing: 0x09010001 priority=255 +Create 0x0a010001 +Creating task with: Preemption: yes Timeslicing: no +Task (TA1) created: id=0x0a010001, priority=1 +Task (TA1) starting: id=0x0a010001, priority=1 + Thread Heir: 0x0a010001 priority=1 + Thread Executing: 0x0a010001 priority=1 +Suspending task (0x0a010001) + Thread Heir: 0x09010001 priority=255 + Thread Executing: 0x09010001 priority=255 +Creating task with: Preemption: yes Timeslicing: no +Task (TA1) created: id=0x0a010002, priority=2 +Task (TA1) starting: id=0x0a010002, priority=2 + Thread Heir: 0x0a010002 priority=2 + Thread Executing: 0x0a010002 priority=2 +Resuming task (0x0a010001) + Thread Heir: 0x0a010001 priority=1 + Thread Executing: 0x0a010001 priority=1 +*** END OF TEST 04 *** diff --git a/schedsim/shell/schedsim_priority/scenarios/script04.output b/schedsim/shell/schedsim_priority/scenarios/script04.output new file mode 100644 index 0000000..664df89 --- /dev/null +++ b/schedsim/shell/schedsim_priority/scenarios/script04.output @@ -0,0 +1,21 @@ +*** TEST 04 *** + Thread Heir: 0x09010001 priority=255 + Thread Executing: 0x09010001 priority=255 +Create 0x0a010001 +Creating task with: Preemption: yes Timeslicing: no +Task (TA1) created: id=0x0a010001, priority=1 +Task (TA1) starting: id=0x0a010001, priority=1 + Thread Heir: 0x0a010001 priority=1 + Thread Executing: 0x0a010001 priority=1 +Suspending task (0x0a010001) + Thread Heir: 0x09010001 priority=255 + Thread Executing: 0x09010001 priority=255 +Creating task with: Preemption: yes Timeslicing: no +Task (TA1) created: id=0x0a010002, priority=2 +Task (TA1) starting: id=0x0a010002, priority=2 + Thread Heir: 0x0a010002 priority=2 + Thread Executing: 0x0a010002 priority=2 +Resuming task (0x0a010001) + Thread Heir: 0x0a010001 priority=1 + Thread Executing: 0x0a010001 priority=1 +*** END OF TEST 04 *** diff --git a/schedsim/shell/schedsim_priority/scenarios/script04 b/schedsim/shell/schedsim_priority/scenarios/script04.scen index 4eebcd7..4eebcd7 100644 --- a/schedsim/shell/schedsim_priority/scenarios/script04 +++ b/schedsim/shell/schedsim_priority/scenarios/script04.scen diff --git a/schedsim/shell/schedsim_priority/scenarios/script05.expected b/schedsim/shell/schedsim_priority/scenarios/script05.expected new file mode 100644 index 0000000..f51de95 --- /dev/null +++ b/schedsim/shell/schedsim_priority/scenarios/script05.expected @@ -0,0 +1,45 @@ +*** TEST 05 *** + Thread Heir: 0x09010001 priority=255 + Thread Executing: 0x09010001 priority=255 +Create 0x0a010001 +Creating task with: Preemption: yes Timeslicing: no +Task (TA1) created: id=0x0a010001, priority=1 +Task (TA1) starting: id=0x0a010001, priority=1 + Thread Heir: 0x0a010001 priority=1 + Thread Executing: 0x0a010001 priority=1 +Creating task with: Preemption: yes Timeslicing: no +Task (TA2) created: id=0x0a010002, priority=2 +Task (TA2) starting: id=0x0a010002, priority=2 +Creating task with: Preemption: yes Timeslicing: no +Task (TA3) created: id=0x0a010003, priority=3 +Task (TA3) starting: id=0x0a010003, priority=3 +Semaphore (SEM1) created: id=0x1a010001 +Obtain semaphore (0x1a010001) with timeout 0 + Thread Heir: 0x0a010002 priority=2 + Thread Executing: 0x0a010002 priority=2 +Obtain semaphore (0x1a010001) with timeout 0 + Thread Heir: 0x0a010003 priority=3 + Thread Executing: 0x0a010003 priority=3 +Obtain semaphore (0x1a010001) with timeout 0 + Thread Heir: 0x09010001 priority=255 + Thread Executing: 0x09010001 priority=255 +Flushing semaphore (0x1a010001) + Thread Heir: 0x0a010001 priority=1 + Thread Executing: 0x0a010001 priority=1 +*** Now back to TA1 to do it differently +Obtain semaphore (0x1a010001) with timeout 0 + Thread Heir: 0x0a010002 priority=2 + Thread Executing: 0x0a010002 priority=2 +Obtain semaphore (0x1a010001) with timeout 0 + Thread Heir: 0x0a010003 priority=3 + Thread Executing: 0x0a010003 priority=3 +Releasing semaphore (0x1a010001) + Thread Heir: 0x0a010001 priority=1 + Thread Executing: 0x0a010001 priority=1 +Obtain semaphore (0x1a010001) with timeout 0 + Thread Heir: 0x0a010003 priority=3 + Thread Executing: 0x0a010003 priority=3 +Deleting semaphore (0x1a010001) + Thread Heir: 0x0a010001 priority=1 + Thread Executing: 0x0a010001 priority=1 +*** END OF TEST 05 *** diff --git a/schedsim/shell/schedsim_priority/scenarios/script05.output b/schedsim/shell/schedsim_priority/scenarios/script05.output new file mode 100644 index 0000000..f51de95 --- /dev/null +++ b/schedsim/shell/schedsim_priority/scenarios/script05.output @@ -0,0 +1,45 @@ +*** TEST 05 *** + Thread Heir: 0x09010001 priority=255 + Thread Executing: 0x09010001 priority=255 +Create 0x0a010001 +Creating task with: Preemption: yes Timeslicing: no +Task (TA1) created: id=0x0a010001, priority=1 +Task (TA1) starting: id=0x0a010001, priority=1 + Thread Heir: 0x0a010001 priority=1 + Thread Executing: 0x0a010001 priority=1 +Creating task with: Preemption: yes Timeslicing: no +Task (TA2) created: id=0x0a010002, priority=2 +Task (TA2) starting: id=0x0a010002, priority=2 +Creating task with: Preemption: yes Timeslicing: no +Task (TA3) created: id=0x0a010003, priority=3 +Task (TA3) starting: id=0x0a010003, priority=3 +Semaphore (SEM1) created: id=0x1a010001 +Obtain semaphore (0x1a010001) with timeout 0 + Thread Heir: 0x0a010002 priority=2 + Thread Executing: 0x0a010002 priority=2 +Obtain semaphore (0x1a010001) with timeout 0 + Thread Heir: 0x0a010003 priority=3 + Thread Executing: 0x0a010003 priority=3 +Obtain semaphore (0x1a010001) with timeout 0 + Thread Heir: 0x09010001 priority=255 + Thread Executing: 0x09010001 priority=255 +Flushing semaphore (0x1a010001) + Thread Heir: 0x0a010001 priority=1 + Thread Executing: 0x0a010001 priority=1 +*** Now back to TA1 to do it differently +Obtain semaphore (0x1a010001) with timeout 0 + Thread Heir: 0x0a010002 priority=2 + Thread Executing: 0x0a010002 priority=2 +Obtain semaphore (0x1a010001) with timeout 0 + Thread Heir: 0x0a010003 priority=3 + Thread Executing: 0x0a010003 priority=3 +Releasing semaphore (0x1a010001) + Thread Heir: 0x0a010001 priority=1 + Thread Executing: 0x0a010001 priority=1 +Obtain semaphore (0x1a010001) with timeout 0 + Thread Heir: 0x0a010003 priority=3 + Thread Executing: 0x0a010003 priority=3 +Deleting semaphore (0x1a010001) + Thread Heir: 0x0a010001 priority=1 + Thread Executing: 0x0a010001 priority=1 +*** END OF TEST 05 *** diff --git a/schedsim/shell/schedsim_priority/scenarios/script05 b/schedsim/shell/schedsim_priority/scenarios/script05.scen index c57ea4c..c57ea4c 100644 --- a/schedsim/shell/schedsim_priority/scenarios/script05 +++ b/schedsim/shell/schedsim_priority/scenarios/script05.scen diff --git a/schedsim/shell/schedsim_priority/scenarios/script06.expected b/schedsim/shell/schedsim_priority/scenarios/script06.expected new file mode 100644 index 0000000..5a7fbb4 --- /dev/null +++ b/schedsim/shell/schedsim_priority/scenarios/script06.expected @@ -0,0 +1,27 @@ +*** TEST 06 *** + Thread Heir: 0x09010001 priority=255 + Thread Executing: 0x09010001 priority=255 +Create 0x0a010001 +Creating task with: Preemption: yes Timeslicing: no +Task (TA1) created: id=0x0a010001, priority=1 +Task (TA1) starting: id=0x0a010001, priority=1 + Thread Heir: 0x0a010001 priority=1 + Thread Executing: 0x0a010001 priority=1 +Creating task with: Preemption: yes Timeslicing: no +Task (TA2) created: id=0x0a010002, priority=2 +Task (TA2) starting: id=0x0a010002, priority=2 +Creating task with: Preemption: yes Timeslicing: no +Task (TA3) created: id=0x0a010003, priority=3 +Task (TA3) starting: id=0x0a010003, priority=3 +Semaphore (SEM1) created: id=0x1a010001 +Obtain semaphore (0x1a010001) with timeout 0 + Thread Heir: 0x0a010002 priority=2 + Thread Executing: 0x0a010002 priority=2 +Obtain semaphore (0x1a010001) with timeout 0 + Thread Heir: 0x0a010003 priority=3 + Thread Executing: 0x0a010003 priority=3 +Releasing semaphore (0x1a010001) + Thread Heir: 0x0a010001 priority=1 + Thread Executing: 0x0a010001 priority=1 +Deleting semaphore (0x1a010001) +*** END OF TEST 06 *** diff --git a/schedsim/shell/schedsim_priority/scenarios/script06.output b/schedsim/shell/schedsim_priority/scenarios/script06.output new file mode 100644 index 0000000..5a7fbb4 --- /dev/null +++ b/schedsim/shell/schedsim_priority/scenarios/script06.output @@ -0,0 +1,27 @@ +*** TEST 06 *** + Thread Heir: 0x09010001 priority=255 + Thread Executing: 0x09010001 priority=255 +Create 0x0a010001 +Creating task with: Preemption: yes Timeslicing: no +Task (TA1) created: id=0x0a010001, priority=1 +Task (TA1) starting: id=0x0a010001, priority=1 + Thread Heir: 0x0a010001 priority=1 + Thread Executing: 0x0a010001 priority=1 +Creating task with: Preemption: yes Timeslicing: no +Task (TA2) created: id=0x0a010002, priority=2 +Task (TA2) starting: id=0x0a010002, priority=2 +Creating task with: Preemption: yes Timeslicing: no +Task (TA3) created: id=0x0a010003, priority=3 +Task (TA3) starting: id=0x0a010003, priority=3 +Semaphore (SEM1) created: id=0x1a010001 +Obtain semaphore (0x1a010001) with timeout 0 + Thread Heir: 0x0a010002 priority=2 + Thread Executing: 0x0a010002 priority=2 +Obtain semaphore (0x1a010001) with timeout 0 + Thread Heir: 0x0a010003 priority=3 + Thread Executing: 0x0a010003 priority=3 +Releasing semaphore (0x1a010001) + Thread Heir: 0x0a010001 priority=1 + Thread Executing: 0x0a010001 priority=1 +Deleting semaphore (0x1a010001) +*** END OF TEST 06 *** diff --git a/schedsim/shell/schedsim_priority/scenarios/script06 b/schedsim/shell/schedsim_priority/scenarios/script06.scen index 962568d..962568d 100644 --- a/schedsim/shell/schedsim_priority/scenarios/script06 +++ b/schedsim/shell/schedsim_priority/scenarios/script06.scen |