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.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • 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
Note: See TracChangeset for help on using the changeset viewer.