source: rtems-schedsim/schedsim/shell/schedsim_smppriority_affinity/scenarios/cpus4_affinity_block_case1.scn @ f965428

Last change on this file since f965428 was f965428, checked in by Jennifer Averett <jennifer.averett@…>, on 05/21/14 at 14:40:49

schedsim_smppriority_affinity: Cleanup scenarios.

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

  • Property mode set to 100644
File size: 872 bytes
Line 
1#
2#  Block a thread in an application with thread affinity and
3#  priorities such that finding an heir requires scanning the
4#  ready set of threads.
5#
6#  Basic premise:
7#    - Two threads at low priority, affinity for core 0
8#    - More threads than core at high priority, affinity for all but core 0
9#
10rtems_init 4
11task_create smp1 -a 0xe 10
12task_create smp2 -a 0xe 10
13task_create smp3 -a 0xe 10
14task_create smp4 -a 0xe 10
15# GOAL: Core 0 should be idle
16# GOAL: Cores 1-3 should be 0x0a01000[321] respectively
17cpus IDLE smp3 smp2 smp1
18
19# check_tasks IDLE smp3 smp2 smp1
20# GOAL: Core 0 should have aff1 0x0a010005
21# GOAL: Cores 1-3 should be 0x0a01000[321] respectively
22task_create aff1 -a 0x1 11
23cpus aff1 smp3 smp2 smp1
24
25# Create a low priority task with affinity to core 0
26task_create aff2 -a 0x1 11
27cpus aff1 smp3 smp2 smp1
28task_suspend aff1
29cpus aff2 smp3 smp2 smp1
Note: See TracBrowser for help on using the repository browser.