source: rtems-schedsim/schedsim/shell/schedsim_smppriority_affinity/scenarios/cpus4_exercise_affinity_api.scen @ 05a8dca

Last change on this file since 05a8dca was 05a8dca, checked in by Joel Sherrill <joel.sherrill@…>, on May 14, 2014 at 2:25:25 PM

cpus4_exercise_affinity_api.scen: Scenario to exercise affinity

  • Property mode set to 100644
File size: 640 bytes
Line 
1#
2#  Verify that affinity APIs work with the right values
3#
4rtems_init 4
5task_create smp1 3
6task_create smp2 6
7task_create smp3 7
8task_create smp4 8
9task_create smp5 10
10dispatch
11# GOAL: Tasks 0x0a010001 - 0x0a010004 as heir and executing
12# GOAL:    on CPUs 1 - 4 respectively
13cpus
14
15# GOAL: These should work OK and change the affinity
16task_get_affinity smp5
17task_set_affinity smp5 0x01
18task_get_affinity smp5
19task_set_affinity smp5 0x02
20task_get_affinity smp5
21task_set_affinity smp5 0x04
22task_get_affinity smp5
23task_set_affinity smp5 0x08
24task_get_affinity smp5
25
26# GOAL This should fail.
27task_set_affinity smp5 0x10
28task_get_affinity smp5
29
Note: See TracBrowser for help on using the repository browser.