Changeset f965428 in rtems-schedsim


Ignore:
Timestamp:
May 21, 2014, 2:40:49 PM (5 years ago)
Author:
Jennifer Averett <jennifer.averett@…>
Branches:
master
Children:
7851bc3
Parents:
b6f5266
git-author:
Jennifer Averett <jennifer.averett@…> (05/21/14 14:40:49)
git-committer:
Jennifer Averett <jennifer.averett@…> (05/23/14 14:49:42)
Message:

schedsim_smppriority_affinity: Cleanup scenarios.

Add check of expected threads to cpu commands. Add more documentation and set fix
the expected files.

Location:
schedsim/shell/schedsim_smppriority_affinity/scenarios
Files:
12 added
4 deleted
6 edited
10 moved

Legend:

Unmodified
Added
Removed
  • schedsim/shell/schedsim_smppriority_affinity/scenarios/cpus1_exercise_affinity_api.expected

    rb6f5266 rf965428  
    2020==> 9:
    2121==> 10: # GOAL: 0x0a010001 is now heir and executing on CPU 0
    22 ==> 11: cpus
     22==> 11: cpus TA1
    2323=== CPU Status
    2424          EXECUTING      /   HEIR             / SWITCH NEEDED
    2525  CPU 0: 0x0a010001 @  3 / 0x0a010001 @  3          false
    2626=== End of Ready Set of Threads
    27 ==> 12:
     27*** ERROR in scenario -- unknown task TA1
  • schedsim/shell/schedsim_smppriority_affinity/scenarios/cpus1_exercise_affinity_api.scen

    rb6f5266 rf965428  
    99
    1010# GOAL: 0x0a010001 is now heir and executing on CPU 0
    11 cpus
    12 
     11cpus TA1
  • schedsim/shell/schedsim_smppriority_affinity/scenarios/cpus2_affinity_case1.expected

    rb6f5266 rf965428  
    22verbose                   : 1
    33==> 1: #
    4 ==> 2: # 
    5 ==> 3: #
    6 ==> 4: rtems_init 2
     4==> 2: # Force Cores such that the first created task
     5==> 3: # is on CPU 0 and the second is on CPU 1.
     6==> 4: #
     7==> 5: rtems_init 2
    78  CPU 0: Thread Heir 0x09010001 priority=255
    89  CPU 0: Thread Executing 0x09010001 priority=255
    910  CPU 1: Thread Heir 0x09010002 priority=255
    1011  CPU 1: Thread Executing 0x09010002 priority=255
    11 ==> 5: task_create smp1 3
     12==> 6: task_create smp1 3 -a 1
    1213Creating task with:  Preemption: yes Timeslicing: no
    1314Task (smp1) created: id=0x0a010001, priority=3
     15Task (0x0a010001) Set affinity=0x00000001
    1416Task (smp1) starting: id=0x0a010001, priority=3
    15   CPU 1: Thread Heir 0x0a010001 priority=3
    16   CPU 1: Thread Executing 0x0a010001 priority=3
    17 ==> 6: # GOAL: 0x09010001, 0x0a010001
    18 ==> 7: # GOAL:   on CPUs 0-1 respectively
    19 ==> 8: cpus
    20 === CPU Status
    21           EXECUTING      /   HEIR             / SWITCH NEEDED
    22   CPU 0: 0x09010001 @255 / 0x09010001 @255          false
    23   CPU 1: 0x0a010001 @  3 / 0x0a010001 @  3          false
    24 === End of Ready Set of Threads
    25 ==> 9:
    26 ==> 10: task_create smp2 2 -a 2
     17  CPU 0: Thread Heir 0x0a010001 priority=3
     18  CPU 0: Thread Executing 0x0a010001 priority=3
     19==> 7: task_create smp2 2 -a 2
    2720Creating task with:  Preemption: yes Timeslicing: no
    2821Task (smp2) created: id=0x0a010002, priority=2
     
    3124  CPU 1: Thread Heir 0x0a010002 priority=2
    3225  CPU 1: Thread Executing 0x0a010002 priority=2
    33 ==> 11: # GOAL: want 0x09010001, 0x0a010002 as heir and executings
    34 ==> 12: # GOAL:   on CPUs 0 -1 respectively
    35 ==> 13: cpus
    36 === CPU Status
    37           EXECUTING      /   HEIR             / SWITCH NEEDED
    38   CPU 0: 0x09010001 @255 / 0x09010001 @255          false
    39   CPU 1: 0x0a010002 @  2 / 0x0a010002 @  2          false
    40 === End of Ready Set of Threads
    41 ==> 14:
    42 ==> 15: dispatch
    43 ==> 16: # GOAL: want 0x0a010001 - 0x0a010002 as heir and executings
    44 ==> 17: # GOAL:   on CPUs 0 -1 respectively
    45 ==> 18: cpus
     26==> 8:
     27==> 9: # GOAL: want 0x0a010001 - 0x0a010002 as heir and executings
     28==> 10: # GOAL:   on CPUs 0 -1 respectively
     29==> 11: cpus smp1 smp2
    4630=== CPU Status
    4731          EXECUTING      /   HEIR             / SWITCH NEEDED
  • schedsim/shell/schedsim_smppriority_affinity/scenarios/cpus2_affinity_case1.scen

    rb6f5266 rf965428  
    11#
    2 
     2# Force Cores such that the first created task
     3# is on CPU 0 and the second is on CPU 1.
    34#
    45rtems_init 2
    5 task_create smp1 3
    6 # GOAL: 0x09010001, 0x0a010001
    7 # GOAL:   on CPUs 0-1 respectively
    8 cpus
     6task_create smp1 3 -a 1
     7task_create smp2 2 -a 2
    98
    10 task_create smp2 2 -a 2
    11 # GOAL: want 0x09010001, 0x0a010002 as heir and executings
    12 # GOAL:   on CPUs 0 -1 respectively
    13 cpus
    14 
    15 dispatch
    169# GOAL: want 0x0a010001 - 0x0a010002 as heir and executings
    1710# GOAL:   on CPUs 0 -1 respectively
    18 cpus
     11cpus smp1 smp2
  • schedsim/shell/schedsim_smppriority_affinity/scenarios/cpus2_affinity_case2.expected

    rb6f5266 rf965428  
    22verbose                   : 1
    33==> 1: #
    4 ==> 2: # 
    5 ==> 3: #
    6 ==> 4: rtems_init 2
     4==> 2: # Force Cores such that the first created task
     5==> 3: # is on CPU 1 and the second is on CPU 0.
     6==> 4: #
     7==> 5: rtems_init 2
    78  CPU 0: Thread Heir 0x09010001 priority=255
    89  CPU 0: Thread Executing 0x09010001 priority=255
    910  CPU 1: Thread Heir 0x09010002 priority=255
    1011  CPU 1: Thread Executing 0x09010002 priority=255
    11 ==> 5: task_create smp1 3
     12==> 6: task_create smp1 3 -a 2
    1213Creating task with:  Preemption: yes Timeslicing: no
    1314Task (smp1) created: id=0x0a010001, priority=3
     15Task (0x0a010001) Set affinity=0x00000002
    1416Task (smp1) starting: id=0x0a010001, priority=3
    1517  CPU 1: Thread Heir 0x0a010001 priority=3
    1618  CPU 1: Thread Executing 0x0a010001 priority=3
    17 ==> 6: # GOAL: 0x09010001, 0x0a010001
    18 ==> 7: # GOAL:   on CPUs 0-1 respectively
    19 ==> 8: cpus
     19==> 7: task_create smp2 2 -a 1
     20Creating task with:  Preemption: yes Timeslicing: no
     21Task (smp2) created: id=0x0a010002, priority=2
     22Task (0x0a010002) Set affinity=0x00000001
     23Task (smp2) starting: id=0x0a010002, priority=2
     24  CPU 0: Thread Heir 0x0a010002 priority=2
     25  CPU 0: Thread Executing 0x0a010002 priority=2
     26==> 8:
     27==> 9: # GOAL: want 0x0a010002 - 0x0a010001 as heir and executings
     28==> 10: # GOAL:   on CPUs 0 -1 respectively
     29==> 11: cpus smp2 smp1
    2030=== CPU Status
    2131          EXECUTING      /   HEIR             / SWITCH NEEDED
    22   CPU 0: 0x09010001 @255 / 0x09010001 @255          false
     32  CPU 0: 0x0a010002 @  2 / 0x0a010002 @  2          false
    2333  CPU 1: 0x0a010001 @  3 / 0x0a010001 @  3          false
    2434=== End of Ready Set of Threads
    25 ==> 9:
    26 ==> 10: task_create smp2 4 -a 2
    27 Creating task with:  Preemption: yes Timeslicing: no
    28 Task (smp2) created: id=0x0a010002, priority=4
    29 Task (0x0a010002) Set affinity=0x00000002
    30 Task (smp2) starting: id=0x0a010002, priority=4
    31 ==> 11: # GOAL: 0x09010001, 0x0a010001
    32 ==> 12: # GOAL:   on CPUs 0 -1 respectively
    33 ==> 13: cpus
    34 === CPU Status
    35           EXECUTING      /   HEIR             / SWITCH NEEDED
    36   CPU 0: 0x09010001 @255 / 0x09010001 @255          false
    37   CPU 1: 0x0a010001 @  3 / 0x0a010001 @  3          false
    38 === End of Ready Set of Threads
    39 ==> 14:
    40 ==> 15: dispatch
    41 ==> 16: # GOAL: 0x09010001, 0x0a010001
    42 ==> 17: # GOAL:   on CPUs 0 -1 respectively
    43 ==> 18: cpus
    44 === CPU Status
    45           EXECUTING      /   HEIR             / SWITCH NEEDED
    46   CPU 0: 0x09010001 @255 / 0x09010001 @255          false
    47   CPU 1: 0x0a010001 @  3 / 0x0a010001 @  3          false
    48 === End of Ready Set of Threads
  • schedsim/shell/schedsim_smppriority_affinity/scenarios/cpus2_affinity_case2.scen

    rb6f5266 rf965428  
    11#
    2 
     2# Force Cores such that the first created task
     3# is on CPU 1 and the second is on CPU 0.
    34#
    45rtems_init 2
    5 task_create smp1 3
    6 # GOAL: 0x09010001, 0x0a010001
    7 # GOAL:   on CPUs 0-1 respectively
    8 cpus
     6task_create smp1 3 -a 2
     7task_create smp2 2 -a 1
    98
    10 task_create smp2 4 -a 2
    11 # GOAL: 0x09010001, 0x0a010001
     9# GOAL: want 0x0a010002 - 0x0a010001 as heir and executings
    1210# GOAL:   on CPUs 0 -1 respectively
    13 cpus
    14 
    15 dispatch
    16 # GOAL: 0x09010001, 0x0a010001
    17 # GOAL:   on CPUs 0 -1 respectively
    18 cpus
     11cpus smp2 smp1
  • schedsim/shell/schedsim_smppriority_affinity/scenarios/cpus4_affinity_api_case1.expected

    rb6f5266 rf965428  
    1 Script File               : scenarios/cpus4_exercise_affinity_api.scen
     1Script File               : scenarios/cpus4_affinity_api_case1.scen
    22verbose                   : 1
    33==> 1: #
    44==> 2: #  Verify that affinity APIs work with the right values
    55==> 3: #
    6 ==> 4: rtems_init 4
     6==> 4: #  This scenario does **NOT** change the affinity of any thread
     7==> 5: #  which ever executes.
     8==> 6: #
     9==> 7: rtems_init 4
    710  CPU 0: Thread Heir 0x09010001 priority=255
    811  CPU 0: Thread Executing 0x09010001 priority=255
     
    1316  CPU 3: Thread Heir 0x09010004 priority=255
    1417  CPU 3: Thread Executing 0x09010004 priority=255
    15 ==> 5: task_create smp1 3
     18==> 8: task_create smp1 3
    1619Creating task with:  Preemption: yes Timeslicing: no
    1720Task (smp1) created: id=0x0a010001, priority=3
     
    1922  CPU 3: Thread Heir 0x0a010001 priority=3
    2023  CPU 3: Thread Executing 0x0a010001 priority=3
    21 ==> 6: task_create smp2 6
     24==> 9: task_create smp2 6
    2225Creating task with:  Preemption: yes Timeslicing: no
    2326Task (smp2) created: id=0x0a010002, priority=6
     
    2528  CPU 2: Thread Heir 0x0a010002 priority=6
    2629  CPU 2: Thread Executing 0x0a010002 priority=6
    27 ==> 7: task_create smp3 7
     30==> 10: task_create smp3 7
    2831Creating task with:  Preemption: yes Timeslicing: no
    2932Task (smp3) created: id=0x0a010003, priority=7
     
    3134  CPU 1: Thread Heir 0x0a010003 priority=7
    3235  CPU 1: Thread Executing 0x0a010003 priority=7
    33 ==> 8: task_create smp4 8
     36==> 11: task_create smp4 8
    3437Creating task with:  Preemption: yes Timeslicing: no
    3538Task (smp4) created: id=0x0a010004, priority=8
     
    3740  CPU 0: Thread Heir 0x0a010004 priority=8
    3841  CPU 0: Thread Executing 0x0a010004 priority=8
    39 ==> 9: task_create smp5 10
     42==> 12: task_create smp5 10
    4043Creating task with:  Preemption: yes Timeslicing: no
    4144Task (smp5) created: id=0x0a010005, priority=10
    4245Task (smp5) starting: id=0x0a010005, priority=10
    43 ==> 10: dispatch
    44 ==> 11: # GOAL: Tasks 0x0a010001 - 0x0a010004 as heir and executing
    45 ==> 12: # GOAL:    on CPUs 1 - 4 respectively
    46 ==> 13: cpus
     46==> 13: dispatch
     47==> 14: # GOAL: Tasks 0x0a010001 - 0x0a010004 as heir and executing
     48==> 15: # GOAL:    on CPUs 1 - 4 respectively
     49==> 16: cpus smp4 smp3 smp2 smp1
    4750=== CPU Status
    4851          EXECUTING      /   HEIR             / SWITCH NEEDED
     
    5255  CPU 3: 0x0a010001 @  3 / 0x0a010001 @  3          false
    5356=== End of Ready Set of Threads
    54 ==> 14:
    55 ==> 15: # GOAL: These should work OK and change the affinity
    56 ==> 16: task_get_affinity smp5
     57==> 17:
     58==> 18: # GOAL: These should work OK and change the affinity
     59==> 19: task_get_affinity smp5
    5760Task (0x0a010005) Get affinity=0x0000000f
    58 ==> 17: task_set_affinity smp5 0x01
     61==> 20: task_set_affinity smp5 0x01
    5962Task (0x0a010005) Set affinity=0x00000001
    60 ==> 18: task_get_affinity smp5
     63==> 21: task_get_affinity smp5
    6164Task (0x0a010005) Get affinity=0x00000001
    62 ==> 19: task_set_affinity smp5 0x02
     65==> 22: task_set_affinity smp5 0x02
    6366Task (0x0a010005) Set affinity=0x00000002
    64 ==> 20: task_get_affinity smp5
     67==> 23: task_get_affinity smp5
    6568Task (0x0a010005) Get affinity=0x00000002
    66 ==> 21: task_set_affinity smp5 0x04
     69==> 24: task_set_affinity smp5 0x04
    6770Task (0x0a010005) Set affinity=0x00000004
    68 ==> 22: task_get_affinity smp5
     71==> 25: task_get_affinity smp5
    6972Task (0x0a010005) Get affinity=0x00000004
    70 ==> 23: task_set_affinity smp5 0x08
     73==> 26: task_set_affinity smp5 0x08
    7174Task (0x0a010005) Set affinity=0x00000008
    72 ==> 24: task_get_affinity smp5
     75==> 27: task_get_affinity smp5
    7376Task (0x0a010005) Get affinity=0x00000008
    74 ==> 25:
    75 ==> 26: # GOAL This should fail.
    76 ==> 27: task_set_affinity smp5 0x10
    77 ==> 28: task_get_affinity smp5
     77==> 28:
     78==> 29: # GOAL This should fail.
     79==> 30: task_set_affinity smp5 0x10
     80==> 31: task_get_affinity smp5
    7881Task (0x0a010005) Get affinity=0x00000008
    79 ==> 29:
     82==> 32:
  • schedsim/shell/schedsim_smppriority_affinity/scenarios/cpus4_affinity_api_case1.scen

    rb6f5266 rf965428  
    1414# GOAL: Tasks 0x0a010001 - 0x0a010004 as heir and executing
    1515# GOAL:    on CPUs 1 - 4 respectively
    16 cpus
     16cpus smp4 smp3 smp2 smp1
    1717
    1818# GOAL: These should work OK and change the affinity
  • schedsim/shell/schedsim_smppriority_affinity/scenarios/cpus4_affinity_migrate_case1.expected

    rb6f5266 rf965428  
    1 Script File               : scenarios/cpus4_affinity_case2.scen
     1Script File               : scenarios/cpus4_affinity_migrate_case1.scen
    22verbose                   : 1
    33==> 1: #
    4 ==> 2: # 
    5 ==> 3: #
    6 ==> 4: rtems_init 4
     4==> 2: # Create 5 tasks of the same priority.  Then
     5==> 3: # change the affinity and the priority of the
     6==> 4: # task that is on the ready queue.
     7==> 5: #
     8==> 6: rtems_init 4
    79  CPU 0: Thread Heir 0x09010001 priority=255
    810  CPU 0: Thread Executing 0x09010001 priority=255
     
    1315  CPU 3: Thread Heir 0x09010004 priority=255
    1416  CPU 3: Thread Executing 0x09010004 priority=255
    15 ==> 5: task_create smp1 4
     17==> 7: task_create smp1 4
    1618Creating task with:  Preemption: yes Timeslicing: no
    1719Task (smp1) created: id=0x0a010001, priority=4
     
    1921  CPU 3: Thread Heir 0x0a010001 priority=4
    2022  CPU 3: Thread Executing 0x0a010001 priority=4
    21 ==> 6: task_create smp2 4
     23==> 8: task_create smp2 4
    2224Creating task with:  Preemption: yes Timeslicing: no
    2325Task (smp2) created: id=0x0a010002, priority=4
     
    2527  CPU 2: Thread Heir 0x0a010002 priority=4
    2628  CPU 2: Thread Executing 0x0a010002 priority=4
    27 ==> 7: task_create smp3 4
     29==> 9: task_create smp3 4
    2830Creating task with:  Preemption: yes Timeslicing: no
    2931Task (smp3) created: id=0x0a010003, priority=4
     
    3133  CPU 1: Thread Heir 0x0a010003 priority=4
    3234  CPU 1: Thread Executing 0x0a010003 priority=4
    33 ==> 8: task_create smp4 4
     35==> 10: task_create smp4 4
    3436Creating task with:  Preemption: yes Timeslicing: no
    3537Task (smp4) created: id=0x0a010004, priority=4
     
    3739  CPU 0: Thread Heir 0x0a010004 priority=4
    3840  CPU 0: Thread Executing 0x0a010004 priority=4
    39 ==> 9: task_create smp5 4
     41==> 11: task_create smp5 4
    4042Creating task with:  Preemption: yes Timeslicing: no
    4143Task (smp5) created: id=0x0a010005, priority=4
    4244Task (smp5) starting: id=0x0a010005, priority=4
    43 ==> 10:
    44 ==> 11: # GOAL: want 0x0a010004 - 0x0a010001 as heir and executings
    45 ==> 12: # GOAL:   on CPUs 0 -3 respectively
    46 ==> 13: cpus
     45==> 12:
     46==> 13: # GOAL: want 0x0a010004 - 0x0a010001 as heir and executings
     47==> 14: # GOAL:   on CPUs 0 -3 respectively
     48==> 15: cpus smp4 smp3 smp2 smp1
    4749=== CPU Status
    4850          EXECUTING      /   HEIR             / SWITCH NEEDED
     
    5254  CPU 3: 0x0a010001 @  4 / 0x0a010001 @  4          false
    5355=== End of Ready Set of Threads
    54 ==> 14:
    55 ==> 15: task_set_affinity smp5 0x03
     56==> 16:
     57==> 17: task_set_affinity smp5 0x03
    5658Task (0x0a010005) Set affinity=0x00000003
    57   CPU 1: Thread Heir 0x0a010005 priority=4
    58   CPU 1: Thread Executing 0x0a010005 priority=4
    59 ==> 16: # GOAL: want 0x0a010004, 0x0a010005, 0x0a010002,0x0a010001
    60 ==> 17: # GOAL:   as heir and executings on CPUs 0-3 respectively
    61 ==> 18: cpus
     59==> 18: task_priority smp5 3
     60  CPU 0: Thread Heir 0x0a010005 priority=3
     61  CPU 0: Thread Executing 0x0a010005 priority=3
     62Task (0x0a010005) Change Priority from 4 to 3
     63==> 19: 
     64==> 20: # GOAL: want 0x0a010005, 0x0a010003, 0x0a010002,0x0a010001
     65==> 21: # GOAL:   as heir and executings on CPUs 0-3 respectively
     66==> 22: cpus smp5 smp3 smp2 smp1
    6267=== CPU Status
    6368          EXECUTING      /   HEIR             / SWITCH NEEDED
    64   CPU 0: 0x0a010004 @  4 / 0x0a010004 @  4          false
    65   CPU 1: 0x0a010005 @  4 / 0x0a010005 @  4          false
     69  CPU 0: 0x0a010005 @  3 / 0x0a010005 @  3          false
     70  CPU 1: 0x0a010003 @  4 / 0x0a010003 @  4          false
    6671  CPU 2: 0x0a010002 @  4 / 0x0a010002 @  4          false
    6772  CPU 3: 0x0a010001 @  4 / 0x0a010001 @  4          false
    6873=== End of Ready Set of Threads
    69 ==> 19:
    70 ==> 20: task_set_affinity smp2 0x01
    71 Task (0x0a010002) Set affinity=0x00000001
    72   CPU 0: Thread Heir 0x0a010002 priority=4
    73   CPU 0: Thread Executing 0x0a010002 priority=4
    74   CPU 2: Thread Heir 0x0a010003 priority=4
    75   CPU 2: Thread Executing 0x0a010003 priority=4
    76 ===> 21: # GOAL: want 0x0a010002, 0x0a010005, 0x0a010003,0x0a010001
    77 ==> 22: # GOAL:   as heir and executings on CPUs 0-3 respectively
    78 ==> 23: cpus
     74==> 23:
     75==> 24: task_set_affinity smp4 0x01
     76Task (0x0a010004) Set affinity=0x00000001
     77==> 25: # GOAL: want 0x0a010002, 0x0a010005, 0x0a010003,0x0a010001
     78==> 26: # GOAL:   as heir and executings on CPUs 0-3 respectively
     79==> 27: cpus smp5 smp3 smp2 smp1
    7980=== CPU Status
    8081          EXECUTING      /   HEIR             / SWITCH NEEDED
    81   CPU 0: 0x0a010002 @  4 / 0x0a010002 @  4          false
    82   CPU 1: 0x0a010005 @  4 / 0x0a010005 @  4          false
    83   CPU 2: 0x0a010003 @  4 / 0x0a010003 @  4          false
     82  CPU 0: 0x0a010005 @  3 / 0x0a010005 @  3          false
     83  CPU 1: 0x0a010003 @  4 / 0x0a010003 @  4          false
     84  CPU 2: 0x0a010002 @  4 / 0x0a010002 @  4          false
    8485  CPU 3: 0x0a010001 @  4 / 0x0a010001 @  4          false
    8586=== End of Ready Set of Threads
  • schedsim/shell/schedsim_smppriority_affinity/scenarios/cpus4_affinity_migrate_case1.scen

    rb6f5266 rf965428  
    11#
    2 
     2# Create 5 tasks of the same priority.  Then
     3# change the affinity and the priority of the
     4# task that is on the ready queue.
    35#
    46rtems_init 4
     
    1113# GOAL: want 0x0a010004 - 0x0a010001 as heir and executings
    1214# GOAL:   on CPUs 0 -3 respectively
    13 cpus
     15cpus smp4 smp3 smp2 smp1
    1416
    1517task_set_affinity smp5 0x03
    16 # GOAL: want 0x0a010004, 0x0a010005, 0x0a010002,0x0a010001
     18task_priority smp5 3
     19 
     20# GOAL: want 0x0a010005, 0x0a010003, 0x0a010002,0x0a010001
    1721# GOAL:   as heir and executings on CPUs 0-3 respectively
    18 cpus
     22cpus smp5 smp3 smp2 smp1
    1923
    20 task_set_affinity smp2 0x01
     24task_set_affinity smp4 0x01
    2125# GOAL: want 0x0a010002, 0x0a010005, 0x0a010003,0x0a010001
    2226# GOAL:   as heir and executings on CPUs 0-3 respectively
    23 cpus
     27cpus smp5 smp3 smp2 smp1
  • schedsim/shell/schedsim_smppriority_affinity/scenarios/cpus4_affinity_overlap_case1.expected

    rb6f5266 rf965428  
    1 Script File               : scenarios/cpus4_affinity_case1.scen
     1Script File               : scenarios/cpus4_affinity_overlap_case1.scen
    22verbose                   : 1
    33==> 1: #
    4 ==> 2: # 
    5 ==> 3: #
    6 ==> 4: rtems_init 4
     4==> 2: # Create 2 sets of threads one that can run on cpus
     5==> 3: # {0,1} the others can run on cpus {1,2,3}.  Then
     6==> 4: # swap the affinity of the two sets
     7==> 5: #
     8==> 6: rtems_init 4
    79  CPU 0: Thread Heir 0x09010001 priority=255
    810  CPU 0: Thread Executing 0x09010001 priority=255
     
    1315  CPU 3: Thread Heir 0x09010004 priority=255
    1416  CPU 3: Thread Executing 0x09010004 priority=255
    15 ==> 5: task_create smp1 4 -a 14
     17==> 7: task_create smp1 4 -a 0x0e
    1618Creating task with:  Preemption: yes Timeslicing: no
    1719Task (smp1) created: id=0x0a010001, priority=4
     
    2022  CPU 3: Thread Heir 0x0a010001 priority=4
    2123  CPU 3: Thread Executing 0x0a010001 priority=4
    22 ==> 6: task_create smp2 4 -a 14
     24==> 8: task_create smp2 4 -a 0x0e
    2325Creating task with:  Preemption: yes Timeslicing: no
    2426Task (smp2) created: id=0x0a010002, priority=4
     
    2729  CPU 2: Thread Heir 0x0a010002 priority=4
    2830  CPU 2: Thread Executing 0x0a010002 priority=4
    29 ==> 7: task_create smp3 4 -a  3
     31==> 9: task_create smp3 4 -a 0x03
    3032Creating task with:  Preemption: yes Timeslicing: no
    3133Task (smp3) created: id=0x0a010003, priority=4
     
    3436  CPU 1: Thread Heir 0x0a010003 priority=4
    3537  CPU 1: Thread Executing 0x0a010003 priority=4
    36 ==> 8: task_create smp4 4 -a  3
     38==> 10: task_create smp4 4 -a 0x03
    3739Creating task with:  Preemption: yes Timeslicing: no
    3840Task (smp4) created: id=0x0a010004, priority=4
     
    4143  CPU 0: Thread Heir 0x0a010004 priority=4
    4244  CPU 0: Thread Executing 0x0a010004 priority=4
    43 ==> 9:
    44 ==> 10: # GOAL: want 0x0a010004 - 0x0a010001 as heir and executings
    45 ==> 11: # GOAL:   on CPUs 0 -3 respectively
    46 ==> 12: cpus
     45==> 11:
     46==> 12: # EXECUTING: {smp1 smp2 smp3 smp4}
     47==> 13: # READY:     {IDLE IDLE IDLE IDLE}
     48==> 14: # GOAL: want 0x0a010004 - 0x0a010001 as heir and executings
     49==> 15: # GOAL:   on CPUs 0 -3 respectively
     50==> 16: cpus smp4 smp3 smp2 smp1
    4751=== CPU Status
    4852          EXECUTING      /   HEIR             / SWITCH NEEDED
     
    5256  CPU 3: 0x0a010001 @  4 / 0x0a010001 @  4          false
    5357=== End of Ready Set of Threads
    54 ==> 13:
    55 ==> 14: task_set_affinity smp1 0x03
     58==> 17:
     59==> 18: task_set_affinity smp1 0x03
     60  CPU 3: Thread Heir 0x09010001 priority=255
     61  CPU 3: Thread Executing 0x09010001 priority=255
    5662Task (0x0a010001) Set affinity=0x00000003
    57   CPU 1: Thread Heir 0x0a010001 priority=4
    58   CPU 1: Thread Executing 0x0a010001 priority=4
    59 ==> 15: # GOAL: want 0x0a010004, 0x0a010001, 0x0a010002,0x09010001
    60 ==> 16: # GOAL:   as heir and executings on CPUs 0-3 respectively
    61 ==> 17: cpus
     63==> 19: # EXECUTING: {smp2 smp3 smp4 IDLE}
     64==> 20: # READY:     {smp1 IDLE IDLE IDLE}
     65==> 21: # GOAL: want 0x0a010004, 0x0a010003, 0x0a010002,0x09010001
     66==> 22: # GOAL:   as heir and executings on CPUs 0-3 respectively
     67==> 23: cpus smp4 smp3 smp2 IDLE
    6268=== CPU Status
    6369          EXECUTING      /   HEIR             / SWITCH NEEDED
    6470  CPU 0: 0x0a010004 @  4 / 0x0a010004 @  4          false
    65   CPU 1: 0x0a010001 @  4 / 0x0a010001 @  4          false
     71  CPU 1: 0x0a010003 @  4 / 0x0a010003 @  4          false
    6672  CPU 2: 0x0a010002 @  4 / 0x0a010002 @  4          false
    67   CPU 3: 0x09010001 @  4 / 0x09010001 @  4          false
     73  CPU 3: 0x09010001 @255 / 0x09010001 @255          false
    6874=== End of Ready Set of Threads
    69 ==> 18:
    70 ==> 19: task_set_affinity smp2 0x03
     75==> 24:
     76==> 25: task_set_affinity smp2 0x03
     77  CPU 2: Thread Heir 0x09010002 priority=255
     78  CPU 2: Thread Executing 0x09010002 priority=255
    7179Task (0x0a010002) Set affinity=0x00000003
     80==> 26: # EXECUTING: {smp3 smp4 IDLE IDLE}
     81==> 27: # READY:     {smp1 smp2 IDLE IDLE}
     82==> 28: # GOAL: want 0x0a010004, 0x0a010003, 0x00910002,0x09010001
     83==> 29: # GOAL:   as heir and executings on CPUs 0-3 respectively
     84==> 30: cpus smp4 smp3 IDLE IDLE
     85=== CPU Status
     86          EXECUTING      /   HEIR             / SWITCH NEEDED
     87  CPU 0: 0x0a010004 @  4 / 0x0a010004 @  4          false
     88  CPU 1: 0x0a010003 @  4 / 0x0a010003 @  4          false
     89  CPU 2: 0x09010002 @255 / 0x09010002 @255          false
     90  CPU 3: 0x09010001 @255 / 0x09010001 @255          false
     91=== End of Ready Set of Threads
     92==> 31:
     93==> 32: task_set_affinity smp3 0x0e
    7294  CPU 1: Thread Heir 0x0a010002 priority=4
    7395  CPU 1: Thread Executing 0x0a010002 priority=4
    74 ==> 20: # GOAL: want 0x0a010004, 0x0a010002, 0x00910002,0x09010001
    75 ==> 21: # GOAL:   as heir and executings on CPUs 0-3 respectively
    76 ==> 22: cpus
     96  CPU 2: Thread Heir 0x0a010003 priority=4
     97  CPU 2: Thread Executing 0x0a010003 priority=4
     98Task (0x0a010003) Set affinity=0x0000000e
     99==> 33: # EXECUTING: {smp4 smp2 smp3 IDLE}
     100==> 34: # READY:     {smp1 smp2 IDLE IDLE}
     101==> 35: # GOAL: want 0x0a010004, 0x0a010002, 0x0a010003,0x09010001
     102==> 36: # GOAL:   as heir and executings on CPUs 0-3 respectively
     103==> 37: cpus smp4 smp2 smp3 IDLE
    77104=== CPU Status
    78105          EXECUTING      /   HEIR             / SWITCH NEEDED
    79106  CPU 0: 0x0a010004 @  4 / 0x0a010004 @  4          false
    80107  CPU 1: 0x0a010002 @  4 / 0x0a010002 @  4          false
    81   CPU 2: 0x09010002 @  4 / 0x09010002 @  4          false
    82   CPU 3: 0x09010001 @  4 / 0x09010001 @  4          false
     108  CPU 2: 0x0a010003 @  4 / 0x0a010003 @  4          false
     109  CPU 3: 0x09010001 @255 / 0x09010001 @255          false
    83110=== End of Ready Set of Threads
    84 ==> 23:
    85 ==> 24: task_set_affinity smp3 0x0e
    86 Task (0x0a010003) Set affinity=0x0000000e
    87   CPU 3: Thread Heir 0x0a010003 priority=4
    88   CPU 3: Thread Executing 0x0a010003 priority=4
    89 ==> 25: # GOAL: want 0x0a010004, 0x0a010002, 0x09010002,0x0a010003
    90 ==> 26: # GOAL:   as heir and executings on CPUs 0-3 respectively
    91 ==> 27: cpus
     111==> 38:
     112==> 39: task_set_affinity smp4 0x0e
     113  CPU 0: Thread Heir 0x0a010001 priority=4
     114  CPU 0: Thread Executing 0x0a010001 priority=4
     115  CPU 3: Thread Heir 0x0a010004 priority=4
     116  CPU 3: Thread Executing 0x0a010004 priority=4
     117Task (0x0a010004) Set affinity=0x0000000e
     118==> 40: # EXECUTING: {smp4 smp2 smp3 smp1}
     119==> 41: # READY:     {IDLE IDLE IDLE IDLE}
     120==> 42: # GOAL: want 0x0a010001, 0x0a010002, 0x0a010003,0x0a010004
     121==> 43: # GOAL:   as heir and executings on CPUs 0-3 respectively
     122==> 44: cpus smp1 smp2 smp3 smp4
    92123=== CPU Status
    93124          EXECUTING      /   HEIR             / SWITCH NEEDED
    94   CPU 0: 0x0a010004 @  4 / 0x0a010004 @  4          false
     125  CPU 0: 0x0a010001 @  4 / 0x0a010001 @  4          false
    95126  CPU 1: 0x0a010002 @  4 / 0x0a010002 @  4          false
    96   CPU 2: 0x09010002 @  4 / 0x09010002 @  4          false
    97   CPU 3: 0x0a010003 @  4 / 0x0a010003 @  4          false
     127  CPU 2: 0x0a010003 @  4 / 0x0a010003 @  4          false
     128  CPU 3: 0x0a010004 @  4 / 0x0a010004 @  4          false
    98129=== End of Ready Set of Threads
    99 ==> 28:
    100 ==> 29: task_set_affinity smp4 0x0e
    101 Task (0x0a010004) Set affinity=0x0000000e
    102   CPU 2: Thread Heir 0x0a010004 priority=4
    103   CPU 2: Thread Executing 0x0a010004 priority=4
    104 ==> 30: # GOAL: want 0x0a010004, 0x0a010002, 0x0a010004,0x0a010003
    105 ==> 31: # GOAL:   as heir and executings on CPUs 0-3 respectively
    106 ==> 32: cpus
    107 === CPU Status
    108           EXECUTING      /   HEIR             / SWITCH NEEDED
    109   CPU 0: 0x0a010004 @  4 / 0x0a010004 @  4          false
    110   CPU 1: 0x0a010002 @  4 / 0x0a010002 @  4          false
    111   CPU 2: 0x0a010004 @  4 / 0x0a010004 @  4          false
    112   CPU 3: 0x0a010003 @  4 / 0x0a010003 @  4          false
    113 === End of Ready Set of Threads
  • schedsim/shell/schedsim_smppriority_affinity/scenarios/cpus4_affinity_overlap_case1.scen

    rb6f5266 rf965428  
    11#
    2 
     2# Create 2 sets of threads one that can run on cpus
     3# {0,1} the others can run on cpus {1,2,3}.  Then
     4# swap the affinity of the two sets
    35#
    46rtems_init 4
  • schedsim/shell/schedsim_smppriority_affinity/scenarios/cpus4_affinity_priority_case1.expected

    rb6f5266 rf965428  
    1 Script File               : scenarios/cpus4_priority_case1.scen
     1Script File               : scenarios/cpus4_affinity_priority_case1.scen
    22verbose                   : 1
    33==> 1: #
     
    4444==> 11: # GOAL: want 0x0a010001 - 0x0a010004 as heir and executings
    4545==> 12: # GOAL:   on CPUs 3-0 respectively
    46 ==> 13: cpus
     46==> 13: cpus smp4 smp3 smp2 smp1
    4747=== CPU Status
    4848          EXECUTING      /   HEIR             / SWITCH NEEDED
     
    5858==> 17: # GOAL: want 0x0a010001 - 0x0a010004 as heir and executings
    5959==> 18: # GOAL:   on CPUs 3-0 respectively
    60 ==> 19: cpus
     60==> 19: # PRI: 6    5    8   7
     61==> 20: cpus smp4 smp3 smp2 smp1
    6162=== CPU Status
    6263          EXECUTING      /   HEIR             / SWITCH NEEDED
     
    6667  CPU 3: 0x0a010001 @  7 / 0x0a010001 @  7          false
    6768=== End of Ready Set of Threads
    68 ==> 20:
    69 ==> 21: task_priority smp5 5
    70   CPU 2: Thread Heir 0x0a010005 priority=5
    71   CPU 2: Thread Executing 0x0a010005 priority=5
     69==> 21:
     70==> 22: task_priority smp5 5
     71  CPU 0: Thread Heir 0x0a010005 priority=5
     72  CPU 0: Thread Executing 0x0a010005 priority=5
     73  CPU 2: Thread Heir 0x0a010004 priority=6
     74  CPU 2: Thread Executing 0x0a010004 priority=6
    7275Task (0x0a010005) Change Priority from 9 to 5
    73 ==> 22: # GOAL: want 0x0a010005, 0x0a010003, 0x0a010004, 0x0a010001
    74 ==> 23: # GOAL:   to be heir AND executing on CPU 0-3 respectively
    75 ==> 24: cpus
     76==> 23: # GOAL: want 0x0a010005, 0x0a010003, 0x0a010004, 0x0a010001
     77==> 24: # GOAL:   to be heir AND executing on CPU 0-3 respectively
     78==> 25: # PRI: 5    5    6   7
     79==> 26: cpus smp5 smp3 smp4 smp1
    7680=== CPU Status
    7781          EXECUTING      /   HEIR             / SWITCH NEEDED
  • schedsim/shell/schedsim_smppriority_affinity/scenarios/cpus4_affinity_priority_case1.scen

    rb6f5266 rf965428  
    1111# GOAL: want 0x0a010001 - 0x0a010004 as heir and executings
    1212# GOAL:   on CPUs 3-0 respectively
    13 cpus
     13cpus smp4 smp3 smp2 smp1
    1414
    1515# Tasks are created and distributed across CPUs
     
    1717# GOAL: want 0x0a010001 - 0x0a010004 as heir and executings
    1818# GOAL:   on CPUs 3-0 respectively
    19 cpus
     19# PRI: 6    5    8   7
     20cpus smp4 smp3 smp2 smp1
    2021
    2122task_priority smp5 5
    2223# GOAL: want 0x0a010005, 0x0a010003, 0x0a010004, 0x0a010001
    2324# GOAL:   to be heir AND executing on CPU 0-3 respectively
    24 cpus
     25# PRI: 5    5    6   7
     26cpus smp5 smp3 smp4 smp1
  • schedsim/shell/schedsim_smppriority_affinity/scenarios/cpus4_affinity_priority_case2.expected

    rb6f5266 rf965428  
    1 Script File               : scenarios/cpus4_priority_case2.scen
     1Script File               : scenarios/cpus4_affinity_priority_case2.scen
    22verbose                   : 1
    33==> 1: #
     
    4343==> 10: # GOAL: want 0x0a010001 - 0x0a010004 as heir and executings
    4444==> 11: # GOAL:   on CPUs 3-0 respectively
    45 ==> 12: cpus
     45==> 12: cpus smp4 smp3 smp2 smp1
    4646=== CPU Status
    4747          EXECUTING      /   HEIR             / SWITCH NEEDED
     
    5757==> 16: # GOAL: want 0x0a010001 - 0x0a010004 as heir and executings
    5858==> 17: # GOAL:   on CPUs 3-0 respectively
    59 ==> 18: cpus
     59==> 18: cpus smp4 smp3 smp2 smp1
    6060=== CPU Status
    6161          EXECUTING      /   HEIR             / SWITCH NEEDED
     
    7070==> 21: # GOAL: want 0x0a010001 - 0x0a010004 as heir and executings
    7171==> 22: # GOAL:   on CPUs 3-0 respectively
    72 ==> 23: cpus
     72==> 23: cpus smp4 smp3 smp2 smp1
    7373=== CPU Status
    7474          EXECUTING      /   HEIR             / SWITCH NEEDED
  • schedsim/shell/schedsim_smppriority_affinity/scenarios/cpus4_affinity_priority_case2.scen

    rb6f5266 rf965428  
    1010# GOAL: want 0x0a010001 - 0x0a010004 as heir and executings
    1111# GOAL:   on CPUs 3-0 respectively
    12 cpus
     12cpus smp4 smp3 smp2 smp1
    1313
    1414# Tasks are created and distributed across CPUs
     
    1616# GOAL: want 0x0a010001 - 0x0a010004 as heir and executings
    1717# GOAL:   on CPUs 3-0 respectively
    18 cpus
     18cpus smp4 smp3 smp2 smp1
    1919
    2020task_priority smp5 6
    2121# GOAL: want 0x0a010001 - 0x0a010004 as heir and executings
    2222# GOAL:   on CPUs 3-0 respectively
    23 cpus
     23cpus smp4 smp3 smp2 smp1
Note: See TracChangeset for help on using the changeset viewer.