diff options
author | Jennifer Averett <jennifer.averett@oarcorp.com> | 2014-05-19 12:57:12 -0500 |
---|---|---|
committer | Jennifer Averett <jennifer.averett@oarcorp.com> | 2014-05-19 12:57:12 -0500 |
commit | b4a269aea6f47e52637f09aae154bcfd398e214b (patch) | |
tree | 05f13139d10e9f929022fab47626f7a140a6a8a6 /schedsim/shell/schedsim_smppriority_affinity/scenarios/cpus4_affinity_case1.scen | |
parent | Add scenarios for setting affinity before start of task. (diff) | |
download | rtems-schedsim-b4a269aea6f47e52637f09aae154bcfd398e214b.tar.bz2 |
schedsim_smppriority_affinity: Add overlapping affinity scenario.
Diffstat (limited to 'schedsim/shell/schedsim_smppriority_affinity/scenarios/cpus4_affinity_case1.scen')
-rw-r--r-- | schedsim/shell/schedsim_smppriority_affinity/scenarios/cpus4_affinity_case1.scen | 32 |
1 files changed, 32 insertions, 0 deletions
diff --git a/schedsim/shell/schedsim_smppriority_affinity/scenarios/cpus4_affinity_case1.scen b/schedsim/shell/schedsim_smppriority_affinity/scenarios/cpus4_affinity_case1.scen new file mode 100644 index 0000000..e131502 --- /dev/null +++ b/schedsim/shell/schedsim_smppriority_affinity/scenarios/cpus4_affinity_case1.scen @@ -0,0 +1,32 @@ +# +# +# +rtems_init 4 +task_create smp1 4 -a 14 +task_create smp2 4 -a 14 +task_create smp3 4 -a 3 +task_create smp4 4 -a 3 + +# GOAL: want 0x0a010004 - 0x0a010001 as heir and executings +# GOAL: on CPUs 0 -3 respectively +cpus + +task_set_affinity smp1 0x03 +# GOAL: want 0x0a010004, 0x0a010001, 0x0a010002,0x09010001 +# GOAL: as heir and executings on CPUs 0-3 respectively +cpus + +task_set_affinity smp2 0x03 +# GOAL: want 0x0a010004, 0x0a010002, 0x00910002,0x09010001 +# GOAL: as heir and executings on CPUs 0-3 respectively +cpus + +task_set_affinity smp3 0x0e +# GOAL: want 0x0a010004, 0x0a010002, 0x09010002,0x0a010003 +# GOAL: as heir and executings on CPUs 0-3 respectively +cpus + +task_set_affinity smp4 0x0e +# GOAL: want 0x0a010004, 0x0a010002, 0x0a010004,0x0a010003 +# GOAL: as heir and executings on CPUs 0-3 respectively +cpus |