diff options
author | Jennifer Averett <jennifer.averett@oarcorp.com> | 2014-06-03 07:27:33 -0500 |
---|---|---|
committer | Jennifer Averett <jennifer.averett@oarcorp.com> | 2014-06-03 07:27:33 -0500 |
commit | c8d1dbb21acb07b75c00eac3d2a0caa8a679c5db (patch) | |
tree | 6d8247d110dc8666bf099f04f243235e420fec0e /schedsim/shell/schedsim_smppriority_affinity/scenarios/cpus4_affinity_create_case1.scen | |
parent | schedsim_smpsimple: Add task verification per core to scenario. (diff) | |
download | rtems-schedsim-c8d1dbb21acb07b75c00eac3d2a0caa8a679c5db.tar.bz2 |
schedsim_smppriority_affinity: New scenarios.
Diffstat (limited to 'schedsim/shell/schedsim_smppriority_affinity/scenarios/cpus4_affinity_create_case1.scen')
-rw-r--r-- | schedsim/shell/schedsim_smppriority_affinity/scenarios/cpus4_affinity_create_case1.scen | 38 |
1 files changed, 38 insertions, 0 deletions
diff --git a/schedsim/shell/schedsim_smppriority_affinity/scenarios/cpus4_affinity_create_case1.scen b/schedsim/shell/schedsim_smppriority_affinity/scenarios/cpus4_affinity_create_case1.scen new file mode 100644 index 0000000..6204db8 --- /dev/null +++ b/schedsim/shell/schedsim_smppriority_affinity/scenarios/cpus4_affinity_create_case1.scen @@ -0,0 +1,38 @@ +# +# Create threads of single cpu affinity to fill the +# cpus. Have a single of the same priority on the +# ready chain that can run on any cpu. Change the +# affinity of one of the running threads forcing it +# to move to the ready chain and quit running. +# +rtems_init 4 +task_create smp1 8 +current_cpu 3 + +cpus IDLE IDLE IDLE smp1 + +task_create smp2 4 -a 0x4 +cpus IDLE IDLE smp2 smp1 + +task_create smp3 4 -a 0x1 +cpus smp3 IDLE smp2 smp1 + +task_delete smp2 +cpus smp3 IDLE smp1 IDLE + +task_create smp4 4 -a 0x8 +current_cpu 2 +cpus smp3 IDLE smp1 smp4 + +task_delete smp3 +cpus smp1 IDLE IDLE smp4 + +task_create smp5 4 -a 0x2 +cpus smp1 smp5 IDLE smp4 + +task_delete smp4 +cpus smp1 smp5 IDLE IDLE + +task_delete smp5 +cpus smp1 IDLE IDLE IDLE + |