Changeset 3ad6235 in rtems-schedsim


Ignore:
Timestamp:
May 13, 2014, 2:30:12 PM (5 years ago)
Author:
Jennifer Averett <jennifer.averett@…>
Branches:
master
Children:
9f8d56e
Parents:
30aa792
git-author:
Jennifer Averett <jennifer.averett@…> (05/13/14 14:30:12)
git-committer:
Jennifer Averett <jennifer.averett@…> (05/13/14 15:04:53)
Message:

schedsim_smpsimple: Clean up scenarios to match changes.

Dispatch commands were removed since a dispatch of all cpu's was
added to the dispatch wrapper. Scenarios wich only use preemptable
tasks were modified to account for changes in scheduling and
changes in expected output format.

Location:
schedsim/shell/schedsim_smpsimple/scenarios
Files:
22 edited

Legend:

Unmodified
Added
Removed
  • schedsim/shell/schedsim_smpsimple/scenarios/cpus1_priority.expected

    r30aa792 r3ad6235  
    55==> 3: #
    66==> 4: rtems_init 1
    7   Thread Heir: 0x09010001 priority=255
    8   Thread Executing: 0x09010001 priority=255
     7  CPU 0: Thread Heir 0x09010001 priority=255
     8  CPU 0: Thread Executing 0x09010001 priority=255
    99==> 5: task_create smp1 5
    1010Creating task with:  Preemption: yes Timeslicing: no
    1111Task (smp1) created: id=0x0a010001, priority=5
    1212Task (smp1) starting: id=0x0a010001, priority=5
    13   Thread Heir: 0x0a010001 priority=5
    14   Thread Executing: 0x0a010001 priority=5
     13  CPU 0: Thread Heir 0x0a010001 priority=5
     14  CPU 0: Thread Executing 0x0a010001 priority=5
    1515==> 6: task_create smp2 8
    1616Creating task with:  Preemption: yes Timeslicing: no
     
    2121==> 9: cpus
    2222=== CPU Status
    23             EXECUTING    /     HEIR         /    IDLE        / SWITCH NEEDED
    24   CPU 0: 0x0a010001 @  5 / 0x0a010001 @  5 / 0x09010001 @255         false
     23          EXECUTING      /   HEIR             / SWITCH NEEDED
     24  CPU 0: 0x0a010001 @  5 / 0x0a010001 @  5          false
    2525=== End of Ready Set of Threads
    2626==> 10:
    2727==> 11: task_priority smp1 4
    2828Task (0x0a010001) Change Priority from 5 to 4
    29 ==> 12: dispatch
    30 ==> 13: # GOAL: 0x0a010001 is still heir and executing on CPU 0
    31 ==> 14: cpus
     29==> 12: # GOAL: 0x0a010001 is still heir and executing on CPU 0
     30==> 13: cpus
    3231=== CPU Status
    33             EXECUTING    /     HEIR         /    IDLE        / SWITCH NEEDED
    34   CPU 0: 0x0a010001 @  4 / 0x0a010001 @  4 / 0x09010001 @255         false
     32          EXECUTING      /   HEIR             / SWITCH NEEDED
     33  CPU 0: 0x0a010001 @  4 / 0x0a010001 @  4          false
    3534=== End of Ready Set of Threads
    36 ==> 15:
    37 ==> 16: task_priority smp1 7
     35==> 14:
     36==> 15: task_priority smp1 7
    3837Task (0x0a010001) Change Priority from 4 to 7
    39 ==> 17: dispatch
    40 ==> 18: # GOAL: 0x0a010001 is still heir and executing on CPU 0
    41 ==> 19: cpus
     38==> 16: # GOAL: 0x0a010001 is still heir and executing on CPU 0
     39==> 17: cpus
    4240=== CPU Status
    43             EXECUTING    /     HEIR         /    IDLE        / SWITCH NEEDED
    44   CPU 0: 0x0a010001 @  7 / 0x0a010001 @  7 / 0x09010001 @255         false
     41          EXECUTING      /   HEIR             / SWITCH NEEDED
     42  CPU 0: 0x0a010001 @  7 / 0x0a010001 @  7          false
    4543=== End of Ready Set of Threads
    46 ==> 20:
    47 ==> 21: task_priority smp1 8
    48   Thread Heir: 0x0a010002 priority=8
    49   Thread Executing: 0x0a010002 priority=8
     44==> 18:
     45==> 19: task_priority smp1 8
     46  CPU 0: Thread Heir 0x0a010002 priority=8
     47  CPU 0: Thread Executing 0x0a010002 priority=8
    5048Task (0x0a010001) Change Priority from 7 to 8
    51 ==> 22: dispatch
    52 ==> 23: # GOAL: 0x0a010002 is now heir and executing on CPU 0
    53 ==> 24: cpus
     49==> 20: # GOAL: 0x0a010002 is now heir and executing on CPU 0
     50==> 21: cpus
    5451=== CPU Status
    55             EXECUTING    /     HEIR         /    IDLE        / SWITCH NEEDED
    56   CPU 0: 0x0a010002 @  8 / 0x0a010002 @  8 / 0x09010001 @255         false
     52          EXECUTING      /   HEIR             / SWITCH NEEDED
     53  CPU 0: 0x0a010002 @  8 / 0x0a010002 @  8          false
    5754=== End of Ready Set of Threads
    58 ==> 25:
    59 ==> 26: task_priority smp1 5
    60   Thread Heir: 0x0a010001 priority=5
    61   Thread Executing: 0x0a010001 priority=5
     55==> 22:
     56==> 23: task_priority smp1 5
     57  CPU 0: Thread Heir 0x0a010001 priority=5
     58  CPU 0: Thread Executing 0x0a010001 priority=5
    6259Task (0x0a010001) Change Priority from 8 to 5
    63 ==> 27: dispatch
    64 ==> 28: # GOAL: 0x0a010001 is now heir and executing on CPU 0
    65 ==> 29: cpus
     60==> 24: # GOAL: 0x0a010001 is now heir and executing on CPU 0
     61==> 25: cpus
    6662=== CPU Status
    67             EXECUTING    /     HEIR         /    IDLE        / SWITCH NEEDED
    68   CPU 0: 0x0a010001 @  5 / 0x0a010001 @  5 / 0x09010001 @255         false
     63          EXECUTING      /   HEIR             / SWITCH NEEDED
     64  CPU 0: 0x0a010001 @  5 / 0x0a010001 @  5          false
    6965=== End of Ready Set of Threads
  • schedsim/shell/schedsim_smpsimple/scenarios/cpus1_priority.scen

    r30aa792 r3ad6235  
    1010
    1111task_priority smp1 4
    12 dispatch
    1312# GOAL: 0x0a010001 is still heir and executing on CPU 0
    1413cpus
    1514
    1615task_priority smp1 7
    17 dispatch
    1816# GOAL: 0x0a010001 is still heir and executing on CPU 0
    1917cpus
    2018
    2119task_priority smp1 8
    22 dispatch
    2320# GOAL: 0x0a010002 is now heir and executing on CPU 0
    2421cpus
    2522
    2623task_priority smp1 5
    27 dispatch
    2824# GOAL: 0x0a010001 is now heir and executing on CPU 0
    2925cpus
  • schedsim/shell/schedsim_smpsimple/scenarios/cpus1_resume_on_primary.expected

    r30aa792 r3ad6235  
    55==> 3: #
    66==> 4: rtems_init 1
    7   Thread Heir: 0x09010001 priority=255
    8   Thread Executing: 0x09010001 priority=255
     7  CPU 0: Thread Heir 0x09010001 priority=255
     8  CPU 0: Thread Executing 0x09010001 priority=255
    99==> 5: task_create smp1 5
    1010Creating task with:  Preemption: yes Timeslicing: no
    1111Task (smp1) created: id=0x0a010001, priority=5
    1212Task (smp1) starting: id=0x0a010001, priority=5
    13   Thread Heir: 0x0a010001 priority=5
    14   Thread Executing: 0x0a010001 priority=5
    15 ==> 6: dispatch
    16 ==> 7: # GOAL: 0x0a010001 is heir and executing on CPU 0
    17 ==> 8: cpus
     13  CPU 0: Thread Heir 0x0a010001 priority=5
     14  CPU 0: Thread Executing 0x0a010001 priority=5
     15==> 6: # GOAL: 0x0a010001 is heir and executing on CPU 0
     16==> 7: cpus
    1817=== CPU Status
    19             EXECUTING    /     HEIR         /    IDLE        / SWITCH NEEDED
    20   CPU 0: 0x0a010001 @  5 / 0x0a010001 @  5 / 0x09010001 @255         false
     18          EXECUTING      /   HEIR             / SWITCH NEEDED
     19  CPU 0: 0x0a010001 @  5 / 0x0a010001 @  5          false
    2120=== End of Ready Set of Threads
    22 ==> 9: # suspend running task
    23 ==> 10: task_suspend smp1
     21==> 8: # suspend running task
     22==> 9: task_suspend smp1
    2423Suspending task (0x0a010001)
    25   Thread Heir: 0x09010001 priority=255
    26   Thread Executing: 0x09010001 priority=255
    27 ==> 11: # GOAL: 0x09010001 is heir and executing on CPU 0
    28 ==> 12: cpus
     24  CPU 0: Thread Heir 0x09010001 priority=255
     25  CPU 0: Thread Executing 0x09010001 priority=255
     26==> 10: # GOAL: 0x09010001 is heir and executing on CPU 0
     27==> 11: cpus
    2928=== CPU Status
    30             EXECUTING    /     HEIR         /    IDLE        / SWITCH NEEDED
    31   CPU 0: 0x09010001 @255 / 0x09010001 @255 / 0x09010001 @255         false
     29          EXECUTING      /   HEIR             / SWITCH NEEDED
     30  CPU 0: 0x09010001 @255 / 0x09010001 @255          false
    3231=== End of Ready Set of Threads
    33 ==> 13: dispatch
    34 ==> 14: # GOAL: 0x09010001 is heir and executing on CPU 0
    35 ==> 15: cpus
     32==> 12: # GOAL: 0x09010001 is heir and executing on CPU 0
     33==> 13: cpus
    3634=== CPU Status
    37             EXECUTING    /     HEIR         /    IDLE        / SWITCH NEEDED
    38   CPU 0: 0x09010001 @255 / 0x09010001 @255 / 0x09010001 @255         false
     35          EXECUTING      /   HEIR             / SWITCH NEEDED
     36  CPU 0: 0x09010001 @255 / 0x09010001 @255          false
    3937=== End of Ready Set of Threads
    40 ==> 16: # resume suspended task
    41 ==> 17: task_resume smp1
     38==> 14: # resume suspended task
     39==> 15: task_resume smp1
    4240Resuming task (0x0a010001)
    43   Thread Heir: 0x0a010001 priority=5
    44   Thread Executing: 0x0a010001 priority=5
     41  CPU 0: Thread Heir 0x0a010001 priority=5
     42  CPU 0: Thread Executing 0x0a010001 priority=5
     43==> 16: # GOAL: 0x0a010001 is heir and executing on CPU 0
     44==> 17: cpus
     45=== CPU Status
     46          EXECUTING      /   HEIR             / SWITCH NEEDED
     47  CPU 0: 0x0a010001 @  5 / 0x0a010001 @  5          false
     48=== End of Ready Set of Threads
    4549==> 18: # GOAL: 0x0a010001 is heir and executing on CPU 0
    4650==> 19: cpus
    4751=== CPU Status
    48             EXECUTING    /     HEIR         /    IDLE        / SWITCH NEEDED
    49   CPU 0: 0x0a010001 @  5 / 0x0a010001 @  5 / 0x09010001 @255         false
     52          EXECUTING      /   HEIR             / SWITCH NEEDED
     53  CPU 0: 0x0a010001 @  5 / 0x0a010001 @  5          false
    5054=== End of Ready Set of Threads
    51 ==> 20: dispatch
    52 ==> 21: # GOAL: 0x0a010001 is heir and executing on CPU 0
    53 ==> 22: cpus
    54 === CPU Status
    55             EXECUTING    /     HEIR         /    IDLE        /  SWITCH NEEDED
    56   CPU 0: 0x0a010001 @  5 / 0x0a010001 @  5 / 0x09010001 @255         false
    57 === End of Ready Set of Threads
  • schedsim/shell/schedsim_smpsimple/scenarios/cpus1_resume_on_primary.scen

    r30aa792 r3ad6235  
    44rtems_init 1
    55task_create smp1 5
    6 dispatch
    76# GOAL: 0x0a010001 is heir and executing on CPU 0
    87cpus
     
    1110# GOAL: 0x09010001 is heir and executing on CPU 0
    1211cpus
    13 dispatch
    1412# GOAL: 0x09010001 is heir and executing on CPU 0
    1513cpus
     
    1816# GOAL: 0x0a010001 is heir and executing on CPU 0
    1917cpus
    20 dispatch
    2118# GOAL: 0x0a010001 is heir and executing on CPU 0
    2219cpus
  • schedsim/shell/schedsim_smpsimple/scenarios/cpus1_suspend_on_primary.expected

    r30aa792 r3ad6235  
    55==> 3: #
    66==> 4: rtems_init 1
    7   Thread Heir: 0x09010001 priority=255
    8   Thread Executing: 0x09010001 priority=255
     7  CPU 0: Thread Heir 0x09010001 priority=255
     8  CPU 0: Thread Executing 0x09010001 priority=255
    99==> 5: task_create smp1 5
    1010Creating task with:  Preemption: yes Timeslicing: no
    1111Task (smp1) created: id=0x0a010001, priority=5
    1212Task (smp1) starting: id=0x0a010001, priority=5
    13   Thread Heir: 0x0a010001 priority=5
    14   Thread Executing: 0x0a010001 priority=5
    15 ==> 6: dispatch
    16 ==> 7: cpus
     13  CPU 0: Thread Heir 0x0a010001 priority=5
     14  CPU 0: Thread Executing 0x0a010001 priority=5
     15==> 6: cpus
    1716=== CPU Status
    18             EXECUTING    /     HEIR         /    IDLE        / SWITCH NEEDED
    19   CPU 0: 0x0a010001 @  5 / 0x0a010001 @  5 / 0x09010001 @255         false
     17          EXECUTING      /   HEIR             / SWITCH NEEDED
     18  CPU 0: 0x0a010001 @  5 / 0x0a010001 @  5          false
    2019=== End of Ready Set of Threads
    21 ==> 8: # GOAL: 0x0a010001 is heir and executing on CPU 0
    22 ==> 9: task_suspend SELF
     20==> 7: # GOAL: 0x0a010001 is heir and executing on CPU 0
     21==> 8: task_suspend SELF
    2322Suspending task (0x0a010001)
    24   Thread Heir: 0x09010001 priority=255
    25   Thread Executing: 0x09010001 priority=255
    26 ==> 10: cpus
     23  CPU 0: Thread Heir 0x09010001 priority=255
     24  CPU 0: Thread Executing 0x09010001 priority=255
     25==> 9: cpus
    2726=== CPU Status
    28             EXECUTING    /     HEIR         /    IDLE        / SWITCH NEEDED
    29   CPU 0: 0x09010001 @255 / 0x09010001 @255 / 0x09010001 @255         false
     27          EXECUTING      /   HEIR             / SWITCH NEEDED
     28  CPU 0: 0x09010001 @255 / 0x09010001 @255          false
    3029=== End of Ready Set of Threads
    31 ==> 11: dispatch
    32 ==> 12: # GOAL: 0x09010001 is heir and executing on CPU 0
    33 ==> 13: cpus
     30==> 10: # GOAL: 0x09010001 is heir and executing on CPU 0
     31==> 11: cpus
    3432=== CPU Status
    35             EXECUTING    /     HEIR         /    IDLE        / SWITCH NEEDED
    36   CPU 0: 0x09010001 @255 / 0x09010001 @255 / 0x09010001 @255         false
     33          EXECUTING      /   HEIR             / SWITCH NEEDED
     34  CPU 0: 0x09010001 @255 / 0x09010001 @255          false
    3735=== End of Ready Set of Threads
  • schedsim/shell/schedsim_smpsimple/scenarios/cpus1_suspend_on_primary.scen

    r30aa792 r3ad6235  
    44rtems_init 1
    55task_create smp1 5
    6 dispatch
    76cpus
    87# GOAL: 0x0a010001 is heir and executing on CPU 0
    98task_suspend SELF
    109cpus
    11 dispatch
    1210# GOAL: 0x09010001 is heir and executing on CPU 0
    1311cpus
  • schedsim/shell/schedsim_smpsimple/scenarios/cpus4_mode_case1.scen

    r30aa792 r3ad6235  
    1515
    1616task_create smp5 3
    17 dispatch
    1817# GOAL: 0x0a010001, 0x0a010005, 0x0a010003, and 0x0a010004 are heir
    1918# GOAL:   and executing on CPUs 0 - 3
  • schedsim/shell/schedsim_smpsimple/scenarios/cpus4_mode_case2.scen

    r30aa792 r3ad6235  
    1414
    1515task_create smp5 3
    16 dispatch
    1716# GOAL: 0x0a010001 - 0x0a010004 are executing on CPUs 0 - 3.
    1817# GOAL:   All are also heir EXCEPT 0x0a010005 is heir on CPU 1.
     
    2221current_cpu 1
    2322task_mode -P
    24 dispatch
    2523# GOAL: 0x0a010001, 0x0a010005, 0x0a010003, and 0x0a010004 are
    2624# GOAL:   heir and executing on CPUs 0 - 3
  • schedsim/shell/schedsim_smpsimple/scenarios/cpus4_nonpreempt_case1.scen

    r30aa792 r3ad6235  
    88task_create smp3 5
    99task_create smp4 5
    10 dispatch
    1110# GOAL: 0x0a010001 - 0x0a010004 are heir and executing
    1211# GOAL:   on CPUs 0 - 3 respectively
     
    1413
    1514task_create smp5 3
    16 dispatch
    1715# GOAL: 0x0a010001, 0x0a010005, 0x0a010003, and 0x0a010004 are heir
    1816# GOAL:   and executing on CPUs 0 - 3
  • schedsim/shell/schedsim_smpsimple/scenarios/cpus4_pick_older.expected

    r30aa792 r3ad6235  
    55==> 3: #
    66==> 4: rtems_init 4
    7   Thread Heir: 0x09010001 priority=255
    8   Thread Executing: 0x09010001 priority=255
     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
    915==> 5: task_create smp1 3
    1016Creating task with:  Preemption: yes Timeslicing: no
    1117Task (smp1) created: id=0x0a010001, priority=3
    1218Task (smp1) starting: id=0x0a010001, priority=3
    13   Thread Heir: 0x0a010001 priority=3
    14   Thread Executing: 0x0a010001 priority=3
     19  CPU 3: Thread Heir 0x0a010001 priority=3
     20  CPU 3: Thread Executing 0x0a010001 priority=3
    1521==> 6: task_create smp2 6
    1622Creating task with:  Preemption: yes Timeslicing: no
    1723Task (smp2) created: id=0x0a010002, priority=6
    1824Task (smp2) starting: id=0x0a010002, priority=6
     25  CPU 2: Thread Heir 0x0a010002 priority=6
     26  CPU 2: Thread Executing 0x0a010002 priority=6
    1927==> 7: task_create smp3 7
    2028Creating task with:  Preemption: yes Timeslicing: no
    2129Task (smp3) created: id=0x0a010003, priority=7
    2230Task (smp3) starting: id=0x0a010003, priority=7
     31  CPU 1: Thread Heir 0x0a010003 priority=7
     32  CPU 1: Thread Executing 0x0a010003 priority=7
    2333==> 8: task_create smp4 8
    2434Creating task with:  Preemption: yes Timeslicing: no
    2535Task (smp4) created: id=0x0a010004, priority=8
    2636Task (smp4) starting: id=0x0a010004, priority=8
    27 ==> 9: dispatch
    28 === Invoke Thread Dispatch on CPU 1
    29   Thread Heir: 0x0a010002 priority=6
    30   Thread Executing: 0x09010002 priority=255
    31   Thread Executing: 0x0a010002 priority=6
    32 === Invoke Thread Dispatch on CPU 2
    33   Thread Heir: 0x0a010003 priority=7
    34   Thread Executing: 0x09010003 priority=255
    35   Thread Executing: 0x0a010003 priority=7
    36 === Invoke Thread Dispatch on CPU 3
    37   Thread Heir: 0x0a010004 priority=8
    38   Thread Executing: 0x09010004 priority=255
    39   Thread Executing: 0x0a010004 priority=8
    40 ==> 10: # GOAL: Tasks 0x0a010001 - 0x0a010004 as heir and executing
    41 ==> 11: # GOAL:    on CPUs 1 - 4 respectively
    42 ==> 12: cpus
     37  CPU 0: Thread Heir 0x0a010004 priority=8
     38  CPU 0: Thread Executing 0x0a010004 priority=8
     39==> 9: # GOAL: Tasks 0x0a010001 - 0x0a010004 as heir and executing
     40==> 10: # GOAL:    on CPUs 3 - 0 respectively
     41==> 11: cpus
    4342=== CPU Status
    44             EXECUTING    /     HEIR         /    IDLE        / SWITCH NEEDED
    45   CPU 0: 0x0a010001 @  3 / 0x0a010001 @  3 / 0x09010001 @255         false
    46   CPU 1: 0x0a010002 @  6 / 0x0a010002 @  6 / 0x09010002 @255         false
    47   CPU 2: 0x0a010003 @  7 / 0x0a010003 @  7 / 0x09010003 @255         false
    48   CPU 3: 0x0a010004 @  8 / 0x0a010004 @  8 / 0x09010004 @255         false
     43          EXECUTING      /   HEIR             / SWITCH NEEDED
     44  CPU 0: 0x0a010004 @  8 / 0x0a010004 @  8          false
     45  CPU 1: 0x0a010003 @  7 / 0x0a010003 @  7          false
     46  CPU 2: 0x0a010002 @  6 / 0x0a010002 @  6          false
     47  CPU 3: 0x0a010001 @  3 / 0x0a010001 @  3          false
    4948=== End of Ready Set of Threads
    50 ==> 13:
    51 ==> 14: task_create smp5 5
     49==> 12:
     50==> 13: task_create smp5 5
    5251Creating task with:  Preemption: yes Timeslicing: no
    53   Thread Heir: 0x0a010001 priority=3
    54   Thread Executing: 0x0a010001 priority=3
    5552Task (smp5) created: id=0x0a010005, priority=5
    5653Task (smp5) starting: id=0x0a010005, priority=5
    57 ==> 15: clock_tick 1
     54  CPU 0: Thread Heir 0x0a010005 priority=5
     55  CPU 0: Thread Executing 0x0a010005 priority=5
     56==> 14: clock_tick 1
    5857ClockTick (1) ...
    59 ==> 16: dispatch
    60 === Invoke Thread Dispatch on CPU 3
    61   Thread Heir: 0x0a010005 priority=5
    62   Thread Executing: 0x0a010004 priority=8
    63   Thread Executing: 0x0a010005 priority=5
    64 ==> 17: # GOAL: Tasks 0x0a010001, 0x0a010002, 0x0a010003, and 0x0a010005 are
    65 ==> 18: # GOAL:    heir and executing on CPUs 1 - 4 respectively
    66 ==> 19: cpus
     58==> 15: # GOAL: Tasks 0x0a010001, 0x0a010002, 0x0a010003, and 0x0a010005 are
     59==> 16: # GOAL:    heir and executing on CPUs 3 - 0 respectively
     60==> 17: cpus
    6761=== CPU Status
    68             EXECUTING    /     HEIR         /    IDLE        / SWITCH NEEDED
    69   CPU 0: 0x0a010001 @  3 / 0x0a010001 @  3 / 0x09010001 @255         false
    70   CPU 1: 0x0a010002 @  6 / 0x0a010002 @  6 / 0x09010002 @255         false
    71   CPU 2: 0x0a010003 @  7 / 0x0a010003 @  7 / 0x09010003 @255         false
    72   CPU 3: 0x0a010005 @  5 / 0x0a010005 @  5 / 0x09010004 @255         false
     62          EXECUTING      /   HEIR             / SWITCH NEEDED
     63  CPU 0: 0x0a010005 @  5 / 0x0a010005 @  5          false
     64  CPU 1: 0x0a010003 @  7 / 0x0a010003 @  7          false
     65  CPU 2: 0x0a010002 @  6 / 0x0a010002 @  6          false
     66  CPU 3: 0x0a010001 @  3 / 0x0a010001 @  3          false
    7367=== End of Ready Set of Threads
    74 ==> 20:
    75 ==> 21: task_create smp6 5
     68==> 18:
     69==> 19: task_create smp6 5
    7670Creating task with:  Preemption: yes Timeslicing: no
    77   Thread Heir: 0x0a010001 priority=3
    78   Thread Executing: 0x0a010001 priority=3
    7971Task (smp6) created: id=0x0a010006, priority=5
    8072Task (smp6) starting: id=0x0a010006, priority=5
    81 ==> 22: clock_tick 1
     73  CPU 1: Thread Heir 0x0a010006 priority=5
     74  CPU 1: Thread Executing 0x0a010006 priority=5
     75==> 20: clock_tick 1
    8276ClockTick (1) ...
    83 ==> 23: dispatch
    84 === Invoke Thread Dispatch on CPU 2
    85   Thread Heir: 0x0a010006 priority=5
    86   Thread Executing: 0x0a010003 priority=7
    87   Thread Executing: 0x0a010006 priority=5
    88 ==> 24: # GOAL: Tasks 0x0a010001, 0x0a010002, 0x0a010006, and 0x0a010005 are
    89 ==> 25: # GOAL:    heir and executing on CPUs 1 - 4 respectively
    90 ==> 26: cpus
     77==> 21: # GOAL: Tasks 0x0a010001, 0x0a010002, 0x0a010006, and 0x0a010005 are
     78==> 22: # GOAL:    heir and executing on CPUs 3 - 0 respectively
     79==> 23: cpus
    9180=== CPU Status
    92             EXECUTING    /     HEIR         /    IDLE        / SWITCH NEEDED
    93   CPU 0: 0x0a010001 @  3 / 0x0a010001 @  3 / 0x09010001 @255         false
    94   CPU 1: 0x0a010002 @  6 / 0x0a010002 @  6 / 0x09010002 @255         false
    95   CPU 2: 0x0a010006 @  5 / 0x0a010006 @  5 / 0x09010003 @255         false
    96   CPU 3: 0x0a010005 @  5 / 0x0a010005 @  5 / 0x09010004 @255         false
     81          EXECUTING      /   HEIR             / SWITCH NEEDED
     82  CPU 0: 0x0a010005 @  5 / 0x0a010005 @  5          false
     83  CPU 1: 0x0a010006 @  5 / 0x0a010006 @  5          false
     84  CPU 2: 0x0a010002 @  6 / 0x0a010002 @  6          false
     85  CPU 3: 0x0a010001 @  3 / 0x0a010001 @  3          false
    9786=== End of Ready Set of Threads
    98 ==> 27:
    99 ==> 28: task_create smp7 5
     87==> 24:
     88==> 25: task_create smp7 5
    10089Creating task with:  Preemption: yes Timeslicing: no
    101   Thread Heir: 0x0a010001 priority=3
    102   Thread Executing: 0x0a010001 priority=3
    10390Task (smp7) created: id=0x0a010007, priority=5
    10491Task (smp7) starting: id=0x0a010007, priority=5
    105 ==> 29: clock_tick 1
     92  CPU 2: Thread Heir 0x0a010007 priority=5
     93  CPU 2: Thread Executing 0x0a010007 priority=5
     94==> 26: clock_tick 1
    10695ClockTick (1) ...
    107 ==> 30: dispatch
    108 === Invoke Thread Dispatch on CPU 1
    109   Thread Heir: 0x0a010007 priority=5
    110   Thread Executing: 0x0a010002 priority=6
    111   Thread Executing: 0x0a010007 priority=5
    112 ==> 31: # GOAL: Tasks 0x0a010001, 0x0a010007, 0x0a010006, and 0x0a010005 are
    113 ==> 32: # GOAL:    heir and executing on CPUs 1 - 4 respectively
    114 ==> 33: cpus
     96==> 27: # GOAL: Tasks 0x0a010001, 0x0a010007, 0x0a010006, and 0x0a010005 are
     97==> 28: # GOAL:    heir and executing on CPUs 3 - 0 respectively
     98==> 29: cpus
    11599=== CPU Status
    116             EXECUTING    /     HEIR         /    IDLE        / SWITCH NEEDED
    117   CPU 0: 0x0a010001 @  3 / 0x0a010001 @  3 / 0x09010001 @255         false
    118   CPU 1: 0x0a010007 @  5 / 0x0a010007 @  5 / 0x09010002 @255         false
    119   CPU 2: 0x0a010006 @  5 / 0x0a010006 @  5 / 0x09010003 @255         false
    120   CPU 3: 0x0a010005 @  5 / 0x0a010005 @  5 / 0x09010004 @255         false
     100          EXECUTING      /   HEIR             / SWITCH NEEDED
     101  CPU 0: 0x0a010005 @  5 / 0x0a010005 @  5          false
     102  CPU 1: 0x0a010006 @  5 / 0x0a010006 @  5          false
     103  CPU 2: 0x0a010007 @  5 / 0x0a010007 @  5          false
     104  CPU 3: 0x0a010001 @  3 / 0x0a010001 @  3          false
    121105=== End of Ready Set of Threads
    122 ==> 34:
    123 ==> 35: # We should pick task smp4 on the 4th core
    124 ==> 36: task_create smp8 4
     106==> 30:
     107==> 31: # We should pick task smp5 (0x0a010005) on CPU 0
     108==> 32: task_create smp8 4
    125109Creating task with:  Preemption: yes Timeslicing: no
    126   Thread Heir: 0x0a010001 priority=3
    127   Thread Executing: 0x0a010001 priority=3
    128110Task (smp8) created: id=0x0a010008, priority=4
    129111Task (smp8) starting: id=0x0a010008, priority=4
    130 ==> 37: # GOAL: Tasks 0x0a010001, 0x0a010007, and 0x0a010006
    131 ==> 38: # GOAL:    heir and executing on CPUs 1 - 3 respectively
    132 ==> 39: # GOAL: Task 0x0a010005 is executing on CPU 4
    133 ==> 40: # GOAL: Task 0x0a010008 is heir on CPU 4
    134 ==> 41: cpus
     112  CPU 2: Thread Heir 0x0a010008 priority=4
     113  CPU 2: Thread Executing 0x0a010008 priority=4
     114==> 33: # GOAL: Tasks 0x0a010001, 0x0a010007, 0x0a010006, and 0x0a010008 are
     115==> 34: # GOAL:    heir and executing on CPUs 3 - 0 respectively
     116==> 35: cpus
    135117=== CPU Status
    136             EXECUTING    /     HEIR         /    IDLE        / SWITCH NEEDED
    137   CPU 0: 0x0a010001 @  3 / 0x0a010001 @  3 / 0x09010001 @255         false
    138   CPU 1: 0x0a010007 @  5 / 0x0a010007 @  5 / 0x09010002 @255         false
    139   CPU 2: 0x0a010006 @  5 / 0x0a010006 @  5 / 0x09010003 @255         false
    140   CPU 3: 0x0a010005 @  5 / 0x0a010008 @  4 / 0x09010004 @255         true
     118          EXECUTING      /   HEIR             / SWITCH NEEDED
     119  CPU 0: 0x0a010008 @  4 / 0x0a010008 @  4          false
     120  CPU 1: 0x0a010006 @  5 / 0x0a010006 @  5          false
     121  CPU 2: 0x0a010007 @  5 / 0x0a010007 @  5          false
     122  CPU 3: 0x0a010001 @  3 / 0x0a010001 @  3          false
    141123=== End of Ready Set of Threads
    142 ==> 42: dispatch
    143 === Invoke Thread Dispatch on CPU 3
    144   Thread Heir: 0x0a010008 priority=4
    145   Thread Executing: 0x0a010005 priority=5
    146   Thread Executing: 0x0a010008 priority=4
    147 ==> 43: # GOAL: Tasks 0x0a010001, 0x0a010007, 0x0a010006, and 0x0a010008 are
    148 ==> 44: # GOAL:    heir and executing on CPUs 1 - 4 respectively
    149 ==> 45: cpus
    150 === CPU Status
    151             EXECUTING    /     HEIR         /    IDLE        /  SWITCH NEEDED
    152   CPU 0: 0x0a010001 @  3 / 0x0a010001 @  3 / 0x09010001 @255         false
    153   CPU 1: 0x0a010007 @  5 / 0x0a010007 @  5 / 0x09010002 @255         false
    154   CPU 2: 0x0a010006 @  5 / 0x0a010006 @  5 / 0x09010003 @255         false
    155   CPU 3: 0x0a010008 @  4 / 0x0a010008 @  4 / 0x09010004 @255         false
    156 === End of Ready Set of Threads
  • schedsim/shell/schedsim_smpsimple/scenarios/cpus4_pick_older.scen

    r30aa792 r3ad6235  
    77task_create smp3 7
    88task_create smp4 8
    9 dispatch
    109# GOAL: Tasks 0x0a010001 - 0x0a010004 as heir and executing
    11 # GOAL:    on CPUs 1 - 4 respectively
     10# GOAL:    on CPUs 3 - 0 respectively
    1211cpus
    1312
    1413task_create smp5 5
    1514clock_tick 1
    16 dispatch
    1715# GOAL: Tasks 0x0a010001, 0x0a010002, 0x0a010003, and 0x0a010005 are
    18 # GOAL:    heir and executing on CPUs 1 - 4 respectively
     16# GOAL:    heir and executing on CPUs 3 - 0 respectively
    1917cpus
    2018
    2119task_create smp6 5
    2220clock_tick 1
    23 dispatch
    2421# GOAL: Tasks 0x0a010001, 0x0a010002, 0x0a010006, and 0x0a010005 are
    25 # GOAL:    heir and executing on CPUs 1 - 4 respectively
     22# GOAL:    heir and executing on CPUs 3 - 0 respectively
    2623cpus
    2724
    2825task_create smp7 5
    2926clock_tick 1
    30 dispatch
    3127# GOAL: Tasks 0x0a010001, 0x0a010007, 0x0a010006, and 0x0a010005 are
    32 # GOAL:    heir and executing on CPUs 1 - 4 respectively
     28# GOAL:    heir and executing on CPUs 3 - 0 respectively
    3329cpus
    3430
    35 # We should pick task smp4 on the 4th core
     31# We should pick task smp5 (0x0a010005) on CPU 0
    3632task_create smp8 4
    37 # GOAL: Tasks 0x0a010001, 0x0a010007, and 0x0a010006
    38 # GOAL:    heir and executing on CPUs 1 - 3 respectively
    39 # GOAL: Task 0x0a010005 is executing on CPU 4
    40 # GOAL: Task 0x0a010008 is heir on CPU 4
     33# GOAL: Tasks 0x0a010001, 0x0a010007, 0x0a010006, and 0x0a010008 are
     34# GOAL:    heir and executing on CPUs 3 - 0 respectively
    4135cpus
    42 dispatch
    43 # GOAL: Tasks 0x0a010001, 0x0a010007, 0x0a010006, and 0x0a010008 are
    44 # GOAL:    heir and executing on CPUs 1 - 4 respectively
    45 cpus
  • schedsim/shell/schedsim_smpsimple/scenarios/cpus4_priority.expected

    r30aa792 r3ad6235  
    55==> 3: #
    66==> 4: rtems_init 4
    7   Thread Heir: 0x09010001 priority=255
    8   Thread Executing: 0x09010001 priority=255
     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
    915==> 5: task_create smp1 5
    1016Creating task with:  Preemption: yes Timeslicing: no
    1117Task (smp1) created: id=0x0a010001, priority=5
    1218Task (smp1) starting: id=0x0a010001, priority=5
    13   Thread Heir: 0x0a010001 priority=5
    14   Thread Executing: 0x0a010001 priority=5
     19  CPU 3: Thread Heir 0x0a010001 priority=5
     20  CPU 3: Thread Executing 0x0a010001 priority=5
    1521==> 6: task_create smp2 8
    1622Creating task with:  Preemption: yes Timeslicing: no
    1723Task (smp2) created: id=0x0a010002, priority=8
    1824Task (smp2) starting: id=0x0a010002, priority=8
     25  CPU 2: Thread Heir 0x0a010002 priority=8
     26  CPU 2: Thread Executing 0x0a010002 priority=8
    1927==> 7: task_create smp3 8
    2028Creating task with:  Preemption: yes Timeslicing: no
    2129Task (smp3) created: id=0x0a010003, priority=8
    2230Task (smp3) starting: id=0x0a010003, priority=8
     31  CPU 1: Thread Heir 0x0a010003 priority=8
     32  CPU 1: Thread Executing 0x0a010003 priority=8
    2333==> 8: task_create smp4 8
    2434Creating task with:  Preemption: yes Timeslicing: no
    2535Task (smp4) created: id=0x0a010004, priority=8
    2636Task (smp4) starting: id=0x0a010004, priority=8
     37  CPU 0: Thread Heir 0x0a010004 priority=8
     38  CPU 0: Thread Executing 0x0a010004 priority=8
    2739==> 9: task_create smp5 8
    2840Creating task with:  Preemption: yes Timeslicing: no
    2941Task (smp5) created: id=0x0a010005, priority=8
    3042Task (smp5) starting: id=0x0a010005, priority=8
    31 ==> 10: dispatch
    32 === Invoke Thread Dispatch on CPU 1
    33   Thread Heir: 0x0a010002 priority=8
    34   Thread Executing: 0x09010002 priority=255
    35   Thread Executing: 0x0a010002 priority=8
    36 === Invoke Thread Dispatch on CPU 2
    37   Thread Heir: 0x0a010003 priority=8
    38   Thread Executing: 0x09010003 priority=255
    39   Thread Executing: 0x0a010003 priority=8
    40 === Invoke Thread Dispatch on CPU 3
    41   Thread Heir: 0x0a010004 priority=8
    42   Thread Executing: 0x09010004 priority=255
    43   Thread Executing: 0x0a010004 priority=8
    44 ==> 11: # GOAL: 0x0a010001 - 0x0a010004 are heir and executing
    45 ==> 12: # GOAL:   on CPUs 0 - 3 respectively
    46 ==> 13: cpus
     43==> 10: # GOAL: 0x0a010001 - 0x0a010004 are heir and executing
     44==> 11: # GOAL:   on CPUs 3 - 0 respectively
     45==> 12: cpus
    4746=== CPU Status
    48             EXECUTING    /     HEIR         /    IDLE        / SWITCH NEEDED
    49   CPU 0: 0x0a010001 @  5 / 0x0a010001 @  5 / 0x09010001 @255         false
    50   CPU 1: 0x0a010002 @  8 / 0x0a010002 @  8 / 0x09010002 @255         false
    51   CPU 2: 0x0a010003 @  8 / 0x0a010003 @  8 / 0x09010003 @255         false
    52   CPU 3: 0x0a010004 @  8 / 0x0a010004 @  8 / 0x09010004 @255         false
     47          EXECUTING      /   HEIR             / SWITCH NEEDED
     48  CPU 0: 0x0a010004 @  8 / 0x0a010004 @  8          false
     49  CPU 1: 0x0a010003 @  8 / 0x0a010003 @  8          false
     50  CPU 2: 0x0a010002 @  8 / 0x0a010002 @  8          false
     51  CPU 3: 0x0a010001 @  5 / 0x0a010001 @  5          false
    5352=== End of Ready Set of Threads
    54 ==> 14:
    55 ==> 15: task_priority smp1 4
    56   Thread Heir: 0x0a010001 priority=4
    57   Thread Executing: 0x0a010001 priority=4
     53==> 13:
     54==> 14: task_priority smp1 4
    5855Task (0x0a010001) Change Priority from 5 to 4
    59 ==> 16: dispatch
    60 ==> 17: # GOAL: 0x0a010001 - 0x0a010004 are heir and executing
    61 ==> 18: # GOAL:   on CPUs 0 - 3 respectively (no change)
    62 ==> 19: cpus
     56==> 15: # GOAL: 0x0a010001 - 0x0a010004 are heir and executing
     57==> 16: # GOAL:   on CPUs 3 - 0 respectively (no change)
     58==> 17: cpus
    6359=== CPU Status
    64             EXECUTING    /     HEIR         /    IDLE        / SWITCH NEEDED
    65   CPU 0: 0x0a010001 @  4 / 0x0a010001 @  4 / 0x09010001 @255         false
    66   CPU 1: 0x0a010002 @  8 / 0x0a010002 @  8 / 0x09010002 @255         false
    67   CPU 2: 0x0a010003 @  8 / 0x0a010003 @  8 / 0x09010003 @255         false
    68   CPU 3: 0x0a010004 @  8 / 0x0a010004 @  8 / 0x09010004 @255         false
     60          EXECUTING      /   HEIR             / SWITCH NEEDED
     61  CPU 0: 0x0a010004 @  8 / 0x0a010004 @  8          false
     62  CPU 1: 0x0a010003 @  8 / 0x0a010003 @  8          false
     63  CPU 2: 0x0a010002 @  8 / 0x0a010002 @  8          false
     64  CPU 3: 0x0a010001 @  4 / 0x0a010001 @  4          false
    6965=== End of Ready Set of Threads
    70 ==> 20:
    71 ==> 21: task_priority smp1 7
     66==> 18:
     67==> 19: task_priority smp1 7
    7268Task (0x0a010001) Change Priority from 4 to 7
    73 ==> 22: dispatch
    74 ==> 23: # GOAL: 0x0a010001 - 0x0a010004 are heir and executing
    75 ==> 24: # GOAL:   on CPUs 0 - 3 respectively (no change)
    76 ==> 25: cpus
     69==> 20: # GOAL: 0x0a010001 - 0x0a010004 are heir and executing
     70==> 21: # GOAL:   on CPUs 3 - 0 respectively (no change)
     71==> 22: cpus
    7772=== CPU Status
    78             EXECUTING    /     HEIR         /    IDLE        / SWITCH NEEDED
    79   CPU 0: 0x0a010001 @  7 / 0x0a010001 @  7 / 0x09010001 @255         false
    80   CPU 1: 0x0a010002 @  8 / 0x0a010002 @  8 / 0x09010002 @255         false
    81   CPU 2: 0x0a010003 @  8 / 0x0a010003 @  8 / 0x09010003 @255         false
    82   CPU 3: 0x0a010004 @  8 / 0x0a010004 @  8 / 0x09010004 @255         false
     73          EXECUTING      /   HEIR             / SWITCH NEEDED
     74  CPU 0: 0x0a010004 @  8 / 0x0a010004 @  8          false
     75  CPU 1: 0x0a010003 @  8 / 0x0a010003 @  8          false
     76  CPU 2: 0x0a010002 @  8 / 0x0a010002 @  8          false
     77  CPU 3: 0x0a010001 @  7 / 0x0a010001 @  7          false
    8378=== End of Ready Set of Threads
    84 ==> 26:
    85 ==> 27: task_priority smp1 8
    86   Thread Heir: 0x0a010005 priority=8
    87   Thread Executing: 0x0a010005 priority=8
     79==> 23:
     80==> 24: task_priority smp1 8
     81  CPU 3: Thread Heir 0x0a010005 priority=8
     82  CPU 3: Thread Executing 0x0a010005 priority=8
    8883Task (0x0a010001) Change Priority from 7 to 8
    89 ==> 28: dispatch
    90 ==> 29: # GOAL: 0x0a010005, 0x0a010002 - 0x0a010004 are heir and executing
    91 ==> 30: # GOAL:   on CPUs 0 - 3 respectively
    92 ==> 31: cpus
     84==> 25: # GOAL: 0x0a010005, 0x0a010002 - 0x0a010004 are heir and executing
     85==> 26: # GOAL:   on CPUs 3 - 0 respectively
     86==> 27: cpus
    9387=== CPU Status
    94             EXECUTING    /     HEIR         /    IDLE        / SWITCH NEEDED
    95   CPU 0: 0x0a010005 @  8 / 0x0a010005 @  8 / 0x09010001 @255         false
    96   CPU 1: 0x0a010002 @  8 / 0x0a010002 @  8 / 0x09010002 @255         false
    97   CPU 2: 0x0a010003 @  8 / 0x0a010003 @  8 / 0x09010003 @255         false
    98   CPU 3: 0x0a010004 @  8 / 0x0a010004 @  8 / 0x09010004 @255         false
     88          EXECUTING      /   HEIR             / SWITCH NEEDED
     89  CPU 0: 0x0a010004 @  8 / 0x0a010004 @  8          false
     90  CPU 1: 0x0a010003 @  8 / 0x0a010003 @  8          false
     91  CPU 2: 0x0a010002 @  8 / 0x0a010002 @  8          false
     92  CPU 3: 0x0a010005 @  8 / 0x0a010005 @  8          false
    9993=== End of Ready Set of Threads
    100 ==> 32:
    101 ==> 33: task_priority smp1 5
    102   Thread Heir: 0x0a010001 priority=5
    103   Thread Executing: 0x0a010001 priority=5
     94==> 28:
     95==> 29: task_priority smp1 5
     96  CPU 3: Thread Heir 0x0a010001 priority=5
     97  CPU 3: Thread Executing 0x0a010001 priority=5
    10498Task (0x0a010001) Change Priority from 8 to 5
    105 ==> 34: dispatch
    106 ==> 35: # GOAL: 0x0a010001 - 0x0a010004 are heir and executing
    107 ==> 36: # GOAL:   on CPUs 0 - 3 respectively
    108 ==> 37: cpus
     99==> 30: # GOAL: 0x0a010001 - 0x0a010004 are heir and executing
     100==> 31: # GOAL:   on CPUs 3 - 0 respectively
     101==> 32: cpus
    109102=== CPU Status
    110             EXECUTING    /     HEIR         /    IDLE        / SWITCH NEEDED
    111   CPU 0: 0x0a010001 @  5 / 0x0a010001 @  5 / 0x09010001 @255         false
    112   CPU 1: 0x0a010002 @  8 / 0x0a010002 @  8 / 0x09010002 @255         false
    113   CPU 2: 0x0a010003 @  8 / 0x0a010003 @  8 / 0x09010003 @255         false
    114   CPU 3: 0x0a010004 @  8 / 0x0a010004 @  8 / 0x09010004 @255         false
     103          EXECUTING      /   HEIR             / SWITCH NEEDED
     104  CPU 0: 0x0a010004 @  8 / 0x0a010004 @  8          false
     105  CPU 1: 0x0a010003 @  8 / 0x0a010003 @  8          false
     106  CPU 2: 0x0a010002 @  8 / 0x0a010002 @  8          false
     107  CPU 3: 0x0a010001 @  5 / 0x0a010001 @  5          false
    115108=== End of Ready Set of Threads
  • schedsim/shell/schedsim_smpsimple/scenarios/cpus4_priority.scen

    r30aa792 r3ad6235  
    88task_create smp4 8
    99task_create smp5 8
    10 dispatch
    1110# GOAL: 0x0a010001 - 0x0a010004 are heir and executing
    12 # GOAL:   on CPUs 0 - 3 respectively
     11# GOAL:   on CPUs 3 - 0 respectively
    1312cpus
    1413
    1514task_priority smp1 4
    16 dispatch
    1715# GOAL: 0x0a010001 - 0x0a010004 are heir and executing
    18 # GOAL:   on CPUs 0 - 3 respectively (no change)
     16# GOAL:   on CPUs 3 - 0 respectively (no change)
    1917cpus
    2018
    2119task_priority smp1 7
    22 dispatch
    2320# GOAL: 0x0a010001 - 0x0a010004 are heir and executing
    24 # GOAL:   on CPUs 0 - 3 respectively (no change)
     21# GOAL:   on CPUs 3 - 0 respectively (no change)
    2522cpus
    2623
    2724task_priority smp1 8
    28 dispatch
    2925# GOAL: 0x0a010005, 0x0a010002 - 0x0a010004 are heir and executing
    30 # GOAL:   on CPUs 0 - 3 respectively
     26# GOAL:   on CPUs 3 - 0 respectively
    3127cpus
    3228
    3329task_priority smp1 5
    34 dispatch
    3530# GOAL: 0x0a010001 - 0x0a010004 are heir and executing
    36 # GOAL:   on CPUs 0 - 3 respectively
     31# GOAL:   on CPUs 3 - 0 respectively
    3732cpus
  • schedsim/shell/schedsim_smpsimple/scenarios/cpus4_simple_nopreempt.scen

    r30aa792 r3ad6235  
    1515# GOAL: Task 0x0a010005 is heir but 0x0a010004 is executing on CPU 4
    1616cpus
    17 dispatch
    1817# GOAL: Task 0x0a010005 is heir but 0x0a010004 is executing on CPU 4
    1918cpus
  • schedsim/shell/schedsim_smpsimple/scenarios/cpus4_simple_preemption.expected

    r30aa792 r3ad6235  
    55==> 3: #
    66==> 4: rtems_init 4
    7   Thread Heir: 0x09010001 priority=255
    8   Thread Executing: 0x09010001 priority=255
    9 ==> 5: task_create smp1 5
     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 7
    1016Creating task with:  Preemption: yes Timeslicing: no
    11 Task (smp1) created: id=0x0a010001, priority=5
    12 Task (smp1) starting: id=0x0a010001, priority=5
    13   Thread Heir: 0x0a010001 priority=5
    14   Thread Executing: 0x0a010001 priority=5
    15 ==> 6: task_create smp2 6
     17Task (smp1) created: id=0x0a010001, priority=7
     18Task (smp1) starting: id=0x0a010001, priority=7
     19  CPU 3: Thread Heir 0x0a010001 priority=7
     20  CPU 3: Thread Executing 0x0a010001 priority=7
     21==> 6: task_create smp2 8
    1622Creating task with:  Preemption: yes Timeslicing: no
    17 Task (smp2) created: id=0x0a010002, priority=6
    18 Task (smp2) starting: id=0x0a010002, priority=6
    19 ==> 7: task_create smp3 7
     23Task (smp2) created: id=0x0a010002, priority=8
     24Task (smp2) starting: id=0x0a010002, priority=8
     25  CPU 2: Thread Heir 0x0a010002 priority=8
     26  CPU 2: Thread Executing 0x0a010002 priority=8
     27==> 7: task_create smp3 5
    2028Creating task with:  Preemption: yes Timeslicing: no
    21 Task (smp3) created: id=0x0a010003, priority=7
    22 Task (smp3) starting: id=0x0a010003, priority=7
    23 ==> 8: task_create smp4 8
     29Task (smp3) created: id=0x0a010003, priority=5
     30Task (smp3) starting: id=0x0a010003, priority=5
     31  CPU 1: Thread Heir 0x0a010003 priority=5
     32  CPU 1: Thread Executing 0x0a010003 priority=5
     33==> 8: task_create smp4 6
    2434Creating task with:  Preemption: yes Timeslicing: no
    25 Task (smp4) created: id=0x0a010004, priority=8
    26 Task (smp4) starting: id=0x0a010004, priority=8
    27 ==> 9: dispatch
    28 === Invoke Thread Dispatch on CPU 1
    29   Thread Heir: 0x0a010002 priority=6
    30   Thread Executing: 0x09010002 priority=255
    31   Thread Executing: 0x0a010002 priority=6
    32 === Invoke Thread Dispatch on CPU 2
    33   Thread Heir: 0x0a010003 priority=7
    34   Thread Executing: 0x09010003 priority=255
    35   Thread Executing: 0x0a010003 priority=7
    36 === Invoke Thread Dispatch on CPU 3
    37   Thread Heir: 0x0a010004 priority=8
    38   Thread Executing: 0x09010004 priority=255
    39   Thread Executing: 0x0a010004 priority=8
    40 ==> 10: # GOAL: want 0x0a010001 - 0x0a010004 as heir and executings
    41 ==> 11: # GOAL:   on CPUs 1-4 respectively
    42 ==> 12: cpus
     35Task (smp4) created: id=0x0a010004, priority=6
     36Task (smp4) starting: id=0x0a010004, priority=6
     37  CPU 0: Thread Heir 0x0a010004 priority=6
     38  CPU 0: Thread Executing 0x0a010004 priority=6
     39==> 9: # GOAL: want 0x0a010001 - 0x0a010004 as heir and executings
     40==> 10: # GOAL:   on CPUs 3-0 respectively
     41==> 11: cpus
    4342=== CPU Status
    44             EXECUTING    /     HEIR         /    IDLE        / SWITCH NEEDED
    45   CPU 0: 0x0a010001 @  5 / 0x0a010001 @  5 / 0x09010001 @255         false
    46   CPU 1: 0x0a010002 @  6 / 0x0a010002 @  6 / 0x09010002 @255         false
    47   CPU 2: 0x0a010003 @  7 / 0x0a010003 @  7 / 0x09010003 @255         false
    48   CPU 3: 0x0a010004 @  8 / 0x0a010004 @  8 / 0x09010004 @255         false
     43          EXECUTING      /   HEIR             / SWITCH NEEDED
     44  CPU 0: 0x0a010004 @  6 / 0x0a010004 @  6          false
     45  CPU 1: 0x0a010003 @  5 / 0x0a010003 @  5          false
     46  CPU 2: 0x0a010002 @  8 / 0x0a010002 @  8          false
     47  CPU 3: 0x0a010001 @  7 / 0x0a010001 @  7          false
    4948=== End of Ready Set of Threads
    50 ==> 13: # Tasks are created and distributed across CPUs
    51 ==> 14: task_create smp5 1
     49==> 12: # Tasks are created and distributed across CPUs
     50==> 13: task_create smp5 1
    5251Creating task with:  Preemption: yes Timeslicing: no
    53   Thread Heir: 0x0a010001 priority=5
    54   Thread Executing: 0x0a010001 priority=5
    5552Task (smp5) created: id=0x0a010005, priority=1
    5653Task (smp5) starting: id=0x0a010005, priority=1
    57 ==> 15: # GOAL: want 0x0a010005 to be heir on CPU 4
    58 ==> 16: cpus
     54  CPU 2: Thread Heir 0x0a010005 priority=1
     55  CPU 2: Thread Executing 0x0a010005 priority=1
     56==> 14: # GOAL: want 0x0a010005 to be heir on CPU 2
     57==> 15: cpus
    5958=== CPU Status
    60             EXECUTING    /     HEIR         /    IDLE        / SWITCH NEEDED
    61   CPU 0: 0x0a010001 @  5 / 0x0a010001 @  5 / 0x09010001 @255         false
    62   CPU 1: 0x0a010002 @  6 / 0x0a010002 @  6 / 0x09010002 @255         false
    63   CPU 2: 0x0a010003 @  7 / 0x0a010003 @  7 / 0x09010003 @255         false
    64   CPU 3: 0x0a010004 @  8 / 0x0a010005 @  1 / 0x09010004 @255         true
     59          EXECUTING      /   HEIR             / SWITCH NEEDED
     60  CPU 0: 0x0a010004 @  6 / 0x0a010004 @  6          false
     61  CPU 1: 0x0a010003 @  5 / 0x0a010003 @  5          false
     62  CPU 2: 0x0a010005 @  1 / 0x0a010005 @  1          false
     63  CPU 3: 0x0a010001 @  7 / 0x0a010001 @  7          false
    6564=== End of Ready Set of Threads
    66 ==> 17: dispatch
    67 === Invoke Thread Dispatch on CPU 3
    68   Thread Heir: 0x0a010005 priority=1
    69   Thread Executing: 0x0a010004 priority=8
    70   Thread Executing: 0x0a010005 priority=1
    71 ==> 18: # GOAL: want 0x0a010005 to be heir AND executing on CPU 4
    72 ==> 19: cpus
     65==> 16: # GOAL: want 0x0a010005 to be heir AND executing on CPU 2
     66==> 17: cpus
    7367=== CPU Status
    74             EXECUTING    /     HEIR         /    IDLE        / SWITCH NEEDED
    75   CPU 0: 0x0a010001 @  5 / 0x0a010001 @  5 / 0x09010001 @255         false
    76   CPU 1: 0x0a010002 @  6 / 0x0a010002 @  6 / 0x09010002 @255         false
    77   CPU 2: 0x0a010003 @  7 / 0x0a010003 @  7 / 0x09010003 @255         false
    78   CPU 3: 0x0a010005 @  1 / 0x0a010005 @  1 / 0x09010004 @255         false
     68          EXECUTING      /   HEIR             / SWITCH NEEDED
     69  CPU 0: 0x0a010004 @  6 / 0x0a010004 @  6          false
     70  CPU 1: 0x0a010003 @  5 / 0x0a010003 @  5          false
     71  CPU 2: 0x0a010005 @  1 / 0x0a010005 @  1          false
     72  CPU 3: 0x0a010001 @  7 / 0x0a010001 @  7          false
    7973=== End of Ready Set of Threads
  • schedsim/shell/schedsim_smpsimple/scenarios/cpus4_simple_preemption.scen

    r30aa792 r3ad6235  
    33#
    44rtems_init 4
    5 task_create smp1 5
    6 task_create smp2 6
    7 task_create smp3 7
    8 task_create smp4 8
    9 dispatch
     5task_create smp1 7
     6task_create smp2 8
     7task_create smp3 5
     8task_create smp4 6
    109# GOAL: want 0x0a010001 - 0x0a010004 as heir and executings
    11 # GOAL:   on CPUs 1-4 respectively
     10# GOAL:   on CPUs 3-0 respectively
    1211cpus
    1312# Tasks are created and distributed across CPUs
    1413task_create smp5 1
    15 # GOAL: want 0x0a010005 to be heir on CPU 4
     14# GOAL: want 0x0a010005 to be heir on CPU 2
    1615cpus
    17 dispatch
    18 # GOAL: want 0x0a010005 to be heir AND executing on CPU 4
     16# GOAL: want 0x0a010005 to be heir AND executing on CPU 2
    1917cpus
  • schedsim/shell/schedsim_smpsimple/scenarios/cpus4_suspend_on_all.expected

    r30aa792 r3ad6235  
    55==> 3: #
    66==> 4: rtems_init 4
    7   Thread Heir: 0x09010001 priority=255
    8   Thread Executing: 0x09010001 priority=255
     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
    915==> 5: task_create smp1 5
    1016Creating task with:  Preemption: yes Timeslicing: no
    1117Task (smp1) created: id=0x0a010001, priority=5
    1218Task (smp1) starting: id=0x0a010001, priority=5
    13   Thread Heir: 0x0a010001 priority=5
    14   Thread Executing: 0x0a010001 priority=5
     19  CPU 3: Thread Heir 0x0a010001 priority=5
     20  CPU 3: Thread Executing 0x0a010001 priority=5
    1521==> 6: task_create smp2 6
    1622Creating task with:  Preemption: yes Timeslicing: no
    1723Task (smp2) created: id=0x0a010002, priority=6
    1824Task (smp2) starting: id=0x0a010002, priority=6
     25  CPU 2: Thread Heir 0x0a010002 priority=6
     26  CPU 2: Thread Executing 0x0a010002 priority=6
    1927==> 7: task_create smp3 7
    2028Creating task with:  Preemption: yes Timeslicing: no
    2129Task (smp3) created: id=0x0a010003, priority=7
    2230Task (smp3) starting: id=0x0a010003, priority=7
     31  CPU 1: Thread Heir 0x0a010003 priority=7
     32  CPU 1: Thread Executing 0x0a010003 priority=7
    2333==> 8: task_create smp4 8
    2434Creating task with:  Preemption: yes Timeslicing: no
    2535Task (smp4) created: id=0x0a010004, priority=8
    2636Task (smp4) starting: id=0x0a010004, priority=8
    27 ==> 9: dispatch
    28 === Invoke Thread Dispatch on CPU 1
    29   Thread Heir: 0x0a010002 priority=6
    30   Thread Executing: 0x09010002 priority=255
    31   Thread Executing: 0x0a010002 priority=6
    32 === Invoke Thread Dispatch on CPU 2
    33   Thread Heir: 0x0a010003 priority=7
    34   Thread Executing: 0x09010003 priority=255
    35   Thread Executing: 0x0a010003 priority=7
    36 === Invoke Thread Dispatch on CPU 3
    37   Thread Heir: 0x0a010004 priority=8
    38   Thread Executing: 0x09010004 priority=255
    39   Thread Executing: 0x0a010004 priority=8
    40 ==> 10: # GOAL: want 0x0a010001 - 0x0a010004 as heir and executings
    41 ==> 11: # GOAL:   on CPUs 0 - 3 respectively
    42 ==> 12: cpus
     37  CPU 0: Thread Heir 0x0a010004 priority=8
     38  CPU 0: Thread Executing 0x0a010004 priority=8
     39==> 9: # GOAL: want 0x0a010001 - 0x0a010004 as heir and executings
     40==> 10: # GOAL:   on CPUs 0 - 3 respectively
     41==> 11: cpus
    4342=== CPU Status
    44             EXECUTING    /     HEIR         /    IDLE        / SWITCH NEEDED
    45   CPU 0: 0x0a010001 @  5 / 0x0a010001 @  5 / 0x09010001 @255         false
    46   CPU 1: 0x0a010002 @  6 / 0x0a010002 @  6 / 0x09010002 @255         false
    47   CPU 2: 0x0a010003 @  7 / 0x0a010003 @  7 / 0x09010003 @255         false
    48   CPU 3: 0x0a010004 @  8 / 0x0a010004 @  8 / 0x09010004 @255         false
     43          EXECUTING      /   HEIR             / SWITCH NEEDED
     44  CPU 0: 0x0a010004 @  8 / 0x0a010004 @  8          false
     45  CPU 1: 0x0a010003 @  7 / 0x0a010003 @  7          false
     46  CPU 2: 0x0a010002 @  6 / 0x0a010002 @  6          false
     47  CPU 3: 0x0a010001 @  5 / 0x0a010001 @  5          false
    4948=== End of Ready Set of Threads
    50 ==> 13: task_suspend smp1
     49==> 12: task_suspend smp1
    5150Suspending task (0x0a010001)
    52   Thread Heir: 0x09010001 priority=255
    53   Thread Executing: 0x0a010001 priority=5
    54   Thread Executing: 0x09010001 priority=255
    55 ==> 14: task_suspend smp2
     51  CPU 3: Thread Heir 0x09010001 priority=255
     52  CPU 3: Thread Executing 0x09010001 priority=255
     53==> 13: task_suspend smp2
    5654Suspending task (0x0a010002)
    57 ==> 15: task_suspend smp3
     55  CPU 2: Thread Heir 0x09010002 priority=255
     56  CPU 2: Thread Executing 0x09010002 priority=255
     57==> 14: task_suspend smp3
    5858Suspending task (0x0a010003)
    59 ==> 16: task_suspend smp4
     59  CPU 1: Thread Heir 0x09010003 priority=255
     60  CPU 1: Thread Executing 0x09010003 priority=255
     61==> 15: task_suspend smp4
    6062Suspending task (0x0a010004)
    61 ==> 17: dispatch
    62 === Invoke Thread Dispatch on CPU 1
    63   Thread Heir: 0x09010002 priority=255
    64   Thread Executing: 0x0a010002 priority=6
    65   Thread Executing: 0x09010002 priority=255
    66 === Invoke Thread Dispatch on CPU 2
    67   Thread Heir: 0x09010003 priority=255
    68   Thread Executing: 0x0a010003 priority=7
    69   Thread Executing: 0x09010003 priority=255
    70 === Invoke Thread Dispatch on CPU 3
    71   Thread Heir: 0x09010004 priority=255
    72   Thread Executing: 0x0a010004 priority=8
    73   Thread Executing: 0x09010004 priority=255
    74 ==> 18: # GOAL: want IDLE 0x09010001 - 0x09010004 as heir and executings
    75 ==> 19: # GOAL:   on CPUs 0 - 3 respectively
    76 ==> 20: cpus
     63  CPU 0: Thread Heir 0x09010004 priority=255
     64  CPU 0: Thread Executing 0x09010004 priority=255
     65==> 16: # GOAL: want IDLE 0x09010001 - 0x09010004 as heir and executings
     66==> 17: # GOAL:   on CPUs 0 - 3 respectively
     67==> 18: cpus
    7768=== CPU Status
    78             EXECUTING    /     HEIR         /    IDLE        / SWITCH NEEDED
    79   CPU 0: 0x09010001 @255 / 0x09010001 @255 / 0x09010001 @255         false
    80   CPU 1: 0x09010002 @255 / 0x09010002 @255 / 0x09010002 @255         false
    81   CPU 2: 0x09010003 @255 / 0x09010003 @255 / 0x09010003 @255         false
    82   CPU 3: 0x09010004 @255 / 0x09010004 @255 / 0x09010004 @255         false
     69          EXECUTING      /   HEIR             / SWITCH NEEDED
     70  CPU 0: 0x09010004 @255 / 0x09010004 @255          false
     71  CPU 1: 0x09010003 @255 / 0x09010003 @255          false
     72  CPU 2: 0x09010002 @255 / 0x09010002 @255          false
     73  CPU 3: 0x09010001 @255 / 0x09010001 @255          false
    8374=== End of Ready Set of Threads
  • schedsim/shell/schedsim_smpsimple/scenarios/cpus4_suspend_on_all.scen

    r30aa792 r3ad6235  
    77task_create smp3 7
    88task_create smp4 8
    9 dispatch
    109# GOAL: want 0x0a010001 - 0x0a010004 as heir and executings
    1110# GOAL:   on CPUs 0 - 3 respectively
     
    1514task_suspend smp3
    1615task_suspend smp4
    17 dispatch
    1816# GOAL: want IDLE 0x09010001 - 0x09010004 as heir and executings
    1917# GOAL:   on CPUs 0 - 3 respectively
  • schedsim/shell/schedsim_smpsimple/scenarios/cpus4_suspend_on_primary.expected

    r30aa792 r3ad6235  
    55==> 3: #
    66==> 4: rtems_init 4
    7   Thread Heir: 0x09010001 priority=255
    8   Thread Executing: 0x09010001 priority=255
    9 ==> 5: task_create smp1 5
     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 8
    1016Creating task with:  Preemption: yes Timeslicing: no
    11 Task (smp1) created: id=0x0a010001, priority=5
    12 Task (smp1) starting: id=0x0a010001, priority=5
    13   Thread Heir: 0x0a010001 priority=5
    14   Thread Executing: 0x0a010001 priority=5
    15 ==> 6: task_create smp2 6
     17Task (smp1) created: id=0x0a010001, priority=8
     18Task (smp1) starting: id=0x0a010001, priority=8
     19  CPU 3: Thread Heir 0x0a010001 priority=8
     20  CPU 3: Thread Executing 0x0a010001 priority=8
     21==> 6: task_create smp2 7
    1622Creating task with:  Preemption: yes Timeslicing: no
    17 Task (smp2) created: id=0x0a010002, priority=6
    18 Task (smp2) starting: id=0x0a010002, priority=6
    19 ==> 7: task_create smp3 7
     23Task (smp2) created: id=0x0a010002, priority=7
     24Task (smp2) starting: id=0x0a010002, priority=7
     25  CPU 2: Thread Heir 0x0a010002 priority=7
     26  CPU 2: Thread Executing 0x0a010002 priority=7
     27==> 7: task_create smp3 6
    2028Creating task with:  Preemption: yes Timeslicing: no
    21 Task (smp3) created: id=0x0a010003, priority=7
    22 Task (smp3) starting: id=0x0a010003, priority=7
    23 ==> 8: task_create smp4 8
     29Task (smp3) created: id=0x0a010003, priority=6
     30Task (smp3) starting: id=0x0a010003, priority=6
     31  CPU 1: Thread Heir 0x0a010003 priority=6
     32  CPU 1: Thread Executing 0x0a010003 priority=6
     33==> 8: task_create smp4 5
    2434Creating task with:  Preemption: yes Timeslicing: no
    25 Task (smp4) created: id=0x0a010004, priority=8
    26 Task (smp4) starting: id=0x0a010004, priority=8
    27 ==> 9: dispatch
    28 === Invoke Thread Dispatch on CPU 1
    29   Thread Heir: 0x0a010002 priority=6
    30   Thread Executing: 0x09010002 priority=255
    31   Thread Executing: 0x0a010002 priority=6
    32 === Invoke Thread Dispatch on CPU 2
    33   Thread Heir: 0x0a010003 priority=7
    34   Thread Executing: 0x09010003 priority=255
    35   Thread Executing: 0x0a010003 priority=7
    36 === Invoke Thread Dispatch on CPU 3
    37   Thread Heir: 0x0a010004 priority=8
    38   Thread Executing: 0x09010004 priority=255
    39   Thread Executing: 0x0a010004 priority=8
    40 ==> 10: # GOAL: want 0x0a010001 - 0x0a010004 as heir and executings
    41 ==> 11: # GOAL:   on CPUs 1-4 respectively
    42 ==> 12: cpus
     35Task (smp4) created: id=0x0a010004, priority=5
     36Task (smp4) starting: id=0x0a010004, priority=5
     37  CPU 0: Thread Heir 0x0a010004 priority=5
     38  CPU 0: Thread Executing 0x0a010004 priority=5
     39==> 9: # GOAL: want 0x0a010001 - 0x0a010004 as heir and executings
     40==> 10: # GOAL:   on CPUs 3-0 respectively
     41==> 11: cpus
    4342=== CPU Status
    44             EXECUTING    /     HEIR         /    IDLE        / SWITCH NEEDED
    45   CPU 0: 0x0a010001 @  5 / 0x0a010001 @  5 / 0x09010001 @255         false
    46   CPU 1: 0x0a010002 @  6 / 0x0a010002 @  6 / 0x09010002 @255         false
    47   CPU 2: 0x0a010003 @  7 / 0x0a010003 @  7 / 0x09010003 @255         false
    48   CPU 3: 0x0a010004 @  8 / 0x0a010004 @  8 / 0x09010004 @255         false
     43          EXECUTING      /   HEIR             / SWITCH NEEDED
     44  CPU 0: 0x0a010004 @  5 / 0x0a010004 @  5          false
     45  CPU 1: 0x0a010003 @  6 / 0x0a010003 @  6          false
     46  CPU 2: 0x0a010002 @  7 / 0x0a010002 @  7          false
     47  CPU 3: 0x0a010001 @  8 / 0x0a010001 @  8          false
    4948=== End of Ready Set of Threads
    50 ==> 13: task_suspend SELF
    51 Suspending task (0x0a010001)
    52   Thread Heir: 0x09010001 priority=255
    53   Thread Executing: 0x0a010001 priority=5
    54   Thread Executing: 0x09010001 priority=255
    55 ==> 14: # GOAL: want 0x09010001 as heir and executing on CPU 1
    56 ==> 15: cpus
     49==> 12: task_suspend SELF
     50Suspending task (0x0a010004)
     51  CPU 0: Thread Heir 0x09010001 priority=255
     52  CPU 0: Thread Executing 0x09010001 priority=255
     53==> 13: # GOAL: want 0x09010001 as heir and executing on CPU 0
     54==> 14: cpus
    5755=== CPU Status
    58             EXECUTING    /     HEIR         /    IDLE        / SWITCH NEEDED
    59   CPU 0: 0x09010001 @255 / 0x09010001 @255 / 0x09010001 @255         false
    60   CPU 1: 0x0a010002 @  6 / 0x0a010002 @  6 / 0x09010002 @255         false
    61   CPU 2: 0x0a010003 @  7 / 0x0a010003 @  7 / 0x09010003 @255         false
    62   CPU 3: 0x0a010004 @  8 / 0x0a010004 @  8 / 0x09010004 @255         false
     56          EXECUTING      /   HEIR             / SWITCH NEEDED
     57  CPU 0: 0x09010001 @255 / 0x09010001 @255          false
     58  CPU 1: 0x0a010003 @  6 / 0x0a010003 @  6          false
     59  CPU 2: 0x0a010002 @  7 / 0x0a010002 @  7          false
     60  CPU 3: 0x0a010001 @  8 / 0x0a010001 @  8          false
    6361=== End of Ready Set of Threads
    64 ==> 16: dispatch
    65 ==> 17: # GOAL: want 0x09010001 as heir and executing on CPU 1
    66 ==> 18: cpus
     62==> 15: # GOAL: want 0x09010001 as heir and executing on CPU 0
     63==> 16: cpus
    6764=== CPU Status
    68             EXECUTING    /     HEIR         /    IDLE        / SWITCH NEEDED
    69   CPU 0: 0x09010001 @255 / 0x09010001 @255 / 0x09010001 @255         false
    70   CPU 1: 0x0a010002 @  6 / 0x0a010002 @  6 / 0x09010002 @255         false
    71   CPU 2: 0x0a010003 @  7 / 0x0a010003 @  7 / 0x09010003 @255         false
    72   CPU 3: 0x0a010004 @  8 / 0x0a010004 @  8 / 0x09010004 @255         false
     65          EXECUTING      /   HEIR             / SWITCH NEEDED
     66  CPU 0: 0x09010001 @255 / 0x09010001 @255          false
     67  CPU 1: 0x0a010003 @  6 / 0x0a010003 @  6          false
     68  CPU 2: 0x0a010002 @  7 / 0x0a010002 @  7          false
     69  CPU 3: 0x0a010001 @  8 / 0x0a010001 @  8          false
    7370=== End of Ready Set of Threads
  • schedsim/shell/schedsim_smpsimple/scenarios/cpus4_suspend_on_primary.scen

    r30aa792 r3ad6235  
    33#
    44rtems_init 4
    5 task_create smp1 5
    6 task_create smp2 6
    7 task_create smp3 7
    8 task_create smp4 8
    9 dispatch
     5task_create smp1 8
     6task_create smp2 7
     7task_create smp3 6
     8task_create smp4 5
    109# GOAL: want 0x0a010001 - 0x0a010004 as heir and executings
    11 # GOAL:   on CPUs 1-4 respectively
     10# GOAL:   on CPUs 3-0 respectively
    1211cpus
    1312task_suspend SELF
    14 # GOAL: want 0x09010001 as heir and executing on CPU 1
     13# GOAL: want 0x09010001 as heir and executing on CPU 0
    1514cpus
    16 dispatch
    17 # GOAL: want 0x09010001 as heir and executing on CPU 1
     15# GOAL: want 0x09010001 as heir and executing on CPU 0
    1816cpus
  • schedsim/shell/schedsim_smpsimple/scenarios/cpus4_suspend_on_secondary.expected

    r30aa792 r3ad6235  
    55==> 3: #
    66==> 4: rtems_init 4
    7   Thread Heir: 0x09010001 priority=255
    8   Thread Executing: 0x09010001 priority=255
    9 ==> 5: task_create smp1 5
     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 8
    1016Creating task with:  Preemption: yes Timeslicing: no
    11 Task (smp1) created: id=0x0a010001, priority=5
    12 Task (smp1) starting: id=0x0a010001, priority=5
    13   Thread Heir: 0x0a010001 priority=5
    14   Thread Executing: 0x0a010001 priority=5
    15 ==> 6: task_create smp2 6
     17Task (smp1) created: id=0x0a010001, priority=8
     18Task (smp1) starting: id=0x0a010001, priority=8
     19  CPU 3: Thread Heir 0x0a010001 priority=8
     20  CPU 3: Thread Executing 0x0a010001 priority=8
     21==> 6: task_create smp2 7
    1622Creating task with:  Preemption: yes Timeslicing: no
    17 Task (smp2) created: id=0x0a010002, priority=6
    18 Task (smp2) starting: id=0x0a010002, priority=6
    19 ==> 7: task_create smp3 7
     23Task (smp2) created: id=0x0a010002, priority=7
     24Task (smp2) starting: id=0x0a010002, priority=7
     25  CPU 2: Thread Heir 0x0a010002 priority=7
     26  CPU 2: Thread Executing 0x0a010002 priority=7
     27==> 7: task_create smp3 6
    2028Creating task with:  Preemption: yes Timeslicing: no
    21 Task (smp3) created: id=0x0a010003, priority=7
    22 Task (smp3) starting: id=0x0a010003, priority=7
    23 ==> 8: task_create smp4 8
     29Task (smp3) created: id=0x0a010003, priority=6
     30Task (smp3) starting: id=0x0a010003, priority=6
     31  CPU 1: Thread Heir 0x0a010003 priority=6
     32  CPU 1: Thread Executing 0x0a010003 priority=6
     33==> 8: task_create smp4 5
    2434Creating task with:  Preemption: yes Timeslicing: no
    25 Task (smp4) created: id=0x0a010004, priority=8
    26 Task (smp4) starting: id=0x0a010004, priority=8
    27 ==> 9: dispatch
    28 === Invoke Thread Dispatch on CPU 1
    29   Thread Heir: 0x0a010002 priority=6
    30   Thread Executing: 0x09010002 priority=255
    31   Thread Executing: 0x0a010002 priority=6
    32 === Invoke Thread Dispatch on CPU 2
    33   Thread Heir: 0x0a010003 priority=7
    34   Thread Executing: 0x09010003 priority=255
    35   Thread Executing: 0x0a010003 priority=7
    36 === Invoke Thread Dispatch on CPU 3
    37   Thread Heir: 0x0a010004 priority=8
    38   Thread Executing: 0x09010004 priority=255
    39   Thread Executing: 0x0a010004 priority=8
    40 ==> 10: # GOAL: want 0x0a010001 - 0x0a010004 as heir and executings
    41 ==> 11: # GOAL:   on CPUs 1-4 respectively
    42 ==> 12: cpus
     35Task (smp4) created: id=0x0a010004, priority=5
     36Task (smp4) starting: id=0x0a010004, priority=5
     37  CPU 0: Thread Heir 0x0a010004 priority=5
     38  CPU 0: Thread Executing 0x0a010004 priority=5
     39==> 9: # GOAL: want 0x0a010001 - 0x0a010004 as heir and executings
     40==> 10: # GOAL:   on CPUs 3-0 respectively
     41==> 11: cpus
    4342=== CPU Status
    44             EXECUTING    /     HEIR         /    IDLE        / SWITCH NEEDED
    45   CPU 0: 0x0a010001 @  5 / 0x0a010001 @  5 / 0x09010001 @255         false
    46   CPU 1: 0x0a010002 @  6 / 0x0a010002 @  6 / 0x09010002 @255         false
    47   CPU 2: 0x0a010003 @  7 / 0x0a010003 @  7 / 0x09010003 @255         false
    48   CPU 3: 0x0a010004 @  8 / 0x0a010004 @  8 / 0x09010004 @255         false
     43          EXECUTING      /   HEIR             / SWITCH NEEDED
     44  CPU 0: 0x0a010004 @  5 / 0x0a010004 @  5          false
     45  CPU 1: 0x0a010003 @  6 / 0x0a010003 @  6          false
     46  CPU 2: 0x0a010002 @  7 / 0x0a010002 @  7          false
     47  CPU 3: 0x0a010001 @  8 / 0x0a010001 @  8          false
    4948=== End of Ready Set of Threads
    50 ==> 13: current_cpu 2
     49==> 12: current_cpu 2
    5150Changing current CPU from 0 to 2
    52 ==> 14: task_suspend SELF
    53 Suspending task (0x0a010003)
    54   Thread Heir: 0x09010001 priority=255
    55   Thread Executing: 0x0a010003 priority=7
    56   Thread Executing: 0x09010001 priority=255
    57 ==> 15: # GOAL: Want IDLE 0x09010001 as heir and executing on CPU 2
    58 ==> 16: cpus
     51==> 13: task_suspend SELF
     52Suspending task (0x0a010002)
     53  CPU 2: Thread Heir 0x09010001 priority=255
     54  CPU 2: Thread Executing 0x09010001 priority=255
     55==> 14: # GOAL: Want IDLE 0x09010001 as heir and executing on CPU 2
     56==> 15: cpus
    5957=== CPU Status
    60             EXECUTING    /     HEIR         /    IDLE        / SWITCH NEEDED
    61   CPU 0: 0x0a010001 @  5 / 0x0a010001 @  5 / 0x09010001 @255         false
    62   CPU 1: 0x0a010002 @  6 / 0x0a010002 @  6 / 0x09010002 @255         false
    63   CPU 2: 0x09010001 @255 / 0x09010001 @255 / 0x09010003 @255         false
    64   CPU 3: 0x0a010004 @  8 / 0x0a010004 @  8 / 0x09010004 @255         false
     58          EXECUTING      /   HEIR             / SWITCH NEEDED
     59  CPU 0: 0x0a010004 @  5 / 0x0a010004 @  5          false
     60  CPU 1: 0x0a010003 @  6 / 0x0a010003 @  6          false
     61  CPU 2: 0x09010001 @255 / 0x09010001 @255          false
     62  CPU 3: 0x0a010001 @  8 / 0x0a010001 @  8          false
    6563=== End of Ready Set of Threads
    66 ==> 17: dispatch
    67 ==> 18: # GOAL: Want IDLE 0x09010001 as heir and executing on CPU 2
    68 ==> 19: cpus
     64==> 16: # GOAL: Want IDLE 0x09010001 as heir and executing on CPU 2
     65==> 17: cpus
    6966=== CPU Status
    70             EXECUTING    /     HEIR         /    IDLE        / SWITCH NEEDED
    71   CPU 0: 0x0a010001 @  5 / 0x0a010001 @  5 / 0x09010001 @255         false
    72   CPU 1: 0x0a010002 @  6 / 0x0a010002 @  6 / 0x09010002 @255         false
    73   CPU 2: 0x09010001 @255 / 0x09010001 @255 / 0x09010003 @255         false
    74   CPU 3: 0x0a010004 @  8 / 0x0a010004 @  8 / 0x09010004 @255         false
     67          EXECUTING      /   HEIR             / SWITCH NEEDED
     68  CPU 0: 0x0a010004 @  5 / 0x0a010004 @  5          false
     69  CPU 1: 0x0a010003 @  6 / 0x0a010003 @  6          false
     70  CPU 2: 0x09010001 @255 / 0x09010001 @255          false
     71  CPU 3: 0x0a010001 @  8 / 0x0a010001 @  8          false
    7572=== End of Ready Set of Threads
  • schedsim/shell/schedsim_smpsimple/scenarios/cpus4_suspend_on_secondary.scen

    r30aa792 r3ad6235  
    33#
    44rtems_init 4
    5 task_create smp1 5
    6 task_create smp2 6
    7 task_create smp3 7
    8 task_create smp4 8
    9 dispatch
     5task_create smp1 8
     6task_create smp2 7
     7task_create smp3 6
     8task_create smp4 5
    109# GOAL: want 0x0a010001 - 0x0a010004 as heir and executings
    11 # GOAL:   on CPUs 1-4 respectively
     10# GOAL:   on CPUs 3-0 respectively
    1211cpus
    1312current_cpu 2
     
    1514# GOAL: Want IDLE 0x09010001 as heir and executing on CPU 2
    1615cpus
    17 dispatch
    1816# GOAL: Want IDLE 0x09010001 as heir and executing on CPU 2
    1917cpus
Note: See TracChangeset for help on using the changeset viewer.