summaryrefslogtreecommitdiff
path: root/doc
diff options
context:
space:
mode:
authorVincent Guittot <vincent.guittot@linaro.org>2014-06-27 16:00:11 +0200
committerVincent Guittot <vincent.guittot@linaro.org>2014-08-01 15:29:29 +0200
commit12823f2dc7a1f7cd874b1ee7a84389e949510578 (patch)
treefdbae1cac947c0c38c7934cde66b592f2b99d929 /doc
parent9e63fe40b0dc39908d629195263af8fcb512b60c (diff)
update taskset.json example
Signed-off-by: Vincent Guittot <vincent.guittot@linaro.org>
Diffstat (limited to 'doc')
-rw-r--r--doc/taskset.json37
1 files changed, 23 insertions, 14 deletions
diff --git a/doc/taskset.json b/doc/taskset.json
index 80246f5..2767e1b 100644
--- a/doc/taskset.json
+++ b/doc/taskset.json
@@ -9,27 +9,33 @@
"wake" : { "type" : "wait" },
"broad" : { "type" : "broadcast", "target" : "wake" },
"m2" : { "type" : "mutex" },
+ "s1" : { "type" : "sleep" },
+ "s2" : { "type" : "sleep" },
+ "r1" : { "type" : "run" },
+ "r2" : { "type" : "run" },
},
"tasks" : {
"thread0" : {
- "exec" : 5000,
- "period" : 5000,
- "deadline" : 5000,
- "lock_order" : ["wait", "m0", "broad", "m0", "broad"],
+ "exec" : 1000,
+ "period" : 20000,
+ "deadline" : 8000,
+ "lock_order" : ["r1", "m0", "trig"],
"resources" : {
+ "r1" : { "duration" : 200 },
"m0" : { "duration" : 500 },
- "wait" : { "duration" : 0, "access": ["sync_mutex"] },
- "broad" : { "duration" : 0, "access": ["m1"] }
+ "trig" : { "duration" : 0, "access": ["sync_mutex"] },
}
},
"thread1" : {
- "exec" : 1000,
- "period" : 10000,
- "deadline" : 8000,
- "lock_order" : ["m0", "trig"],
+ "exec" : 5000,
+ "period" : 5000,
+ "deadline" : 5000,
+ "lock_order" : ["wait", "m0", "broad", "r1", "broad"],
"resources" : {
+ "wait" : { "duration" : 0, "access": ["sync_mutex"] },
"m0" : { "duration" : 500 },
- "trig" : { "duration" : 0, "access": ["sync_mutex"] },
+ "broad" : { "duration" : 0, "access": ["m1"] },
+ "r1" : { "duration" : 1000 },
}
},
"thread2" : {
@@ -40,16 +46,19 @@
"lock_order" : [ "m2", "wake", "m2", "wake"],
"resources" : {
"wake" : { "duration" : 0, "access": ["m1"] },
- "m2" : { "duration" : 200 }
+ "m2" : { "duration" : 200 },
}
},
"thread3" : {
"exec" : 1000,
"period" : 1000,
"deadline" : 1000,
- "lock_order" : ["wake"],
+ "lock_order" : ["wake", "r1", "s1", "r2" ],
"resources" : {
- "wake" : { "duration" : 0, "access": ["m1"] }
+ "wake" : { "duration" : 0, "access": ["m1"] },
+ "r1" : { "duration" : 200 },
+ "s1" : { "duration" : 2000 },
+ "r2" : { "duration" : 200 },
}
},
},