summaryrefslogtreecommitdiff
path: root/doc
diff options
context:
space:
mode:
authorVincent Guittot <vincent.guittot@linaro.org>2014-09-10 09:06:58 +0200
committerVincent Guittot <vincent.guittot@linaro.org>2014-09-10 09:41:54 +0200
commitc176837d7871d2fa78fe84ed4bc200301f81e5b6 (patch)
tree5aa7844ef1f3785623e319c76071cd5bf7585800 /doc
parent9b4378356d6cc46e4ab6606759bba76cc5fb871d (diff)
new browser use case
Diffstat (limited to 'doc')
-rw-r--r--doc/examples/browser.json246
1 files changed, 113 insertions, 133 deletions
diff --git a/doc/examples/browser.json b/doc/examples/browser.json
index 4c4ea90..f9cb034 100644
--- a/doc/examples/browser.json
+++ b/doc/examples/browser.json
@@ -2,182 +2,166 @@
"tasks" : {
"BrowserMain" : {
"loop" : 3,
- "delay" : 400000,
"phases" : {
"start" : {
"loop" : 1,
- "exec" : 22000,
- "period" : 30000,
- "lock_order" : [ "r0", "trig0"],
- "resources" : {
- "r0" : { "duration" : 15000 },
- "trig0" : { "duration" : 0, "access": ["trig0_mutex"]},
- }
+ "sleep0" : 400000,
+ "run0" : 15000,
+ "lock0" : "trig0_mutex",
+ "signal0" : "trig0",
+ "unlock0" : "trig0_mutex",
+ "run1" : 7000,
+ "sleep1" : 8000,
},
"render1" : {
"loop" : 50,
- "exec" : 3000,
- "sleep" : false,
- "lock_order" : [ "trig00"],
- "resources" : {
- "trig00" : { "duration" : 0, "access": ["trig00_mutex"]},
- }
+ "lock0" : "trig00_mutex",
+ "signal0" : "trig00",
+ "unlock0" : "trig00_mutex",
+ "run0" : 3000,
},
"render2" : {
"loop" : 1,
- "exec" : 150000,
- "sleep" : false,
- "lock_order" : [ "wait0", "r0", "trig0" ],
- "resources" : {
- "wait0" : { "duration" : 0, "access": ["trig0_mutex"] },
- "r0" : { "duration" : 100000 },
- "trig0" : { "duration" : 0, "access": ["trig0_mutex"]},
- }
+ "lock0" : "trig0_mutex",
+ "wait0" : { "ref" : "wait0", "mutex": "trig0_mutex" },
+ "unlock0" : "trig0_mutex",
+ "run0" : 10000,
+ "lock1" : "trig0_mutex",
+ "signal1" : "trig0",
+ "unlock1" : "trig0_mutex",
+ "run1" : 5000,
},
"render3" : {
"loop" : 20,
- "exec" : 3000,
- "sleep" : false,
- "lock_order" : [ "trig00"],
- "resources" : {
- "trig00" : { "duration" : 0, "access": ["trig00_mutex"]},
- }
+ "lock0" : "trig00_mutex",
+ "signal0" : "trig00",
+ "unlock0" : "trig00_mutex",
+ "run0" : 3000,
},
"stop" : {
"loop" : 1,
- "exec" : 2000,
- "period" : 800000,
- "lock_order" : ["r0", "s0", "wait0"],
- "resources" : {
- "r0" : { "duration" : 2000 },
- "s0" : { "duration" : 200000 },
- "wait0" : { "duration" : 0, "access": ["trig0_mutex"] },
- }
+ "run0" : 2000,
+ "sleep0" : 200000,
+ "lock0" : "trig0_mutex",
+ "wait0" : { "ref" : "wait0", "mutex": "trig0_mutex" },
+ "unlock0" : "trig0_mutex",
+ "sleep1" : 600000,
},
"scroll" : {
"loop" : 4,
- "exec" : 1000,
- "sleep" : false,
- "lock_order" : [ "trig0", "wait000"],
- "resources" : {
- "trig0" : { "duration" : 0, "access": ["trig0_mutex"]},
- "wait000" : { "duration" : 0, "access": ["trig000_mutex"] },
- }
+ "lock0" : "trig0_mutex",
+ "signal0" : "trig0",
+ "unlock0" : "trig0_mutex",
+ "lock1" : "trig000_mutex",
+ "signal1" : "trig000",
+ "unlock1" : "trig000_mutex",
+ "run" : 1000,
},
"stop2" : {
"loop" : 1,
- "exec" : 200,
- "period" : 800000,
- "lock_order" : ["wait0"],
- "resources" : {
- "wait0" : { "duration" : 0, "access": ["trig0_mutex"] },
- }
+ "lock0" : "trig0_mutex",
+ "wait0" : { "ref" : "wait0", "mutex": "trig0_mutex" },
+ "unlock0" : "trig0_mutex",
+ "run0" : 200,
+ "sleep0" : 800000,
},
}
},
"BrowserSub1" : {
"priority" : -6,
- "delay" : 1000,
- "exec" : 100,
- "period" : 100,
- "sleep" : false,
- "lock_order" : [ "wait00", "r0", "trig00" ],
- "resources" : {
- "wait00" : { "duration" : 0, "access": ["trig00_mutex"] },
- "r0" : { "duration" : 100 },
- "trig00" : { "duration" : 0, "access": ["trig00_mutex"]},
- }
+ "loop" : -1,
+ "lock0" : "trig00_mutex",
+ "wait0" : { "ref" : "wait00", "mutex": "trig00_mutex" },
+ "unlock0" : "trig00_mutex",
+ "run0" : 100,
},
"BrowserSub2" : {
"priority" : -6,
- "delay" : 2000,
- "exec" : 100,
- "period" : 100,
- "sleep" : false,
- "lock_order" : [ "wait00", "r0" ],
- "resources" : {
- "wait00" : { "duration" : 0, "access": ["trig00_mutex"] },
- "r0" : { "duration" : 100 },
- }
+ "loop" : -1,
+ "lock0" : "trig00_mutex",
+ "wait0" : { "ref" : "wait00", "mutex": "trig00_mutex" },
+ "unlock0" : "trig00_mutex",
+ "run0" : 100,
},
"BrowserDisplay" : {
"priority" : -6,
- "exec" : 13000,
- "period" : 25000,
- "sleep" : false,
- "lock_order" : [ "wait0", "r0", "trig000", "r1", "sync11", "r2", "trig1" ],
- "resources" : {
- "wait0" : { "duration" : 0, "access": ["trig0_mutex"] },
- "r0" : { "duration" : 300 },
- "trig000" : { "duration" : 0, "access": ["trig000_mutex"]},
- "r1" : { "duration" : 12000 },
- "sync11" : { "duration" : 0, "access": ["trig11_mutex"]},
- "r2" : { "duration" : 300 },
- "trig1" : { "duration" : 0, "access": ["trig1_mutex"]},
- }
+ "loop" : -1,
+ "lock0" : "trig0_mutex",
+ "wait0" : { "ref" : "wait0", "mutex": "trig0_mutex" },
+ "unlock0" : "trig0_mutex",
+ "run0" : 300,
+ "lock1" : "trig000_mutex",
+ "signal1" : "trig000",
+ "unlock1" : "trig000_mutex",
+ "run1" : 12000,
+ "lock2" : "trig11_mutex",
+ "sync2" : { "ref" : "sync11", "mutex": "trig11_mutex" },
+ "unlock2" : "trig11_mutex",
+ "run2" : 300,
+ "lock3" : "trig1_mutex",
+ "signal3" : "trig1",
+ "unlock3" : "trig1_mutex",
+ "run3" : 400,
},
"Binder-dummy" : {
"priority" : -6,
- "exec" : 300,
- "period" : 25000,
- "sleep" : false,
- "lock_order" : [ "wait11", "r0", "trig11" ],
- "resources" : {
- "wait11" : { "duration" : 0, "access": ["trig11_mutex"] },
- "r0" : { "duration" : 200 },
- "trig11" : { "duration" : 0, "access": ["trig11_mutex"] },
- }
+ "loop" : -1,
+ "lock0" : "trig11_mutex",
+ "wait0" : { "ref" : "wait11", "mutex": "trig11_mutex" },
+ "unlock0" : "trig11_mutex",
+ "run0" : 200,
+ "lock1" : "trig11_mutex",
+ "signal1" : "trig11",
+ "unlock1" : "trig11_mutex",
+ "run1" : 100,
},
"Binder-display" : {
"priority" : -6,
- "exec" : 300,
- "period" : 25000,
- "sleep" : false,
- "lock_order" : [ "wait1", "r0", "trig2", "trig22" ],
- "resources" : {
- "wait1" : { "duration" : 0, "access": ["trig1_mutex"] },
- "r0" : { "duration" : 300 },
- "trig2" : { "duration" : 0, "access": ["trig2_mutex"] },
- "trig22" : { "duration" : 0, "access": ["trig22_mutex"] },
- }
+ "loop" : -1,
+ "lock0" : "trig1_mutex",
+ "wait0" : { "ref" : "wait1", "mutex": "trig1_mutex" },
+ "unlock0" : "trig1_mutex",
+ "run0" : 300,
+ "lock1" : "trig2_mutex",
+ "signal1" : "trig2",
+ "unlock1" : "trig2_mutex",
+ "lock2" : "trig22_mutex",
+ "signal2" : "trig22",
+ "unlock2" : "trig22_mutex",
},
"Event-Browser" : {
"priority" : -9,
- "exec" : 100,
- "period" : 25000,
- "sleep" : false,
- "lock_order" : ["wait2", "r0", "s0", "r1", "trig0"],
- "resources" : {
- "wait2" : { "duration" : 0, "access": ["trig2_mutex"] },
- "r0" : { "duration" : 50 },
- "s0" : { "duration" : 16000 },
- "trig0" : { "duration" : 0, "access": ["trig0_mutex"] },
- "r1" : { "duration" : 50 },
- }
+ "loop" : -1,
+ "lock0" : "trig2_mutex",
+ "wait0" : { "ref" : "wait2", "mutex": "trig2_mutex" },
+ "unlock0" : "trig2_mutex",
+ "run0" : 50,
+ "sleep0" : 16000,
+ "run1" : 50,
+ "lock1" : "trig0_mutex",
+ "signal1" : "trig0",
+ "unlock1" : "trig0_mutex",
},
"Event-Display" : {
"priority" : -9,
- "exec" : 100,
- "period" : 25000,
- "sleep" : false,
- "lock_order" : ["wait22", "r0", "s0", "r1", "trig3"],
- "resources" : {
- "wait22" : { "duration" : 0, "access": ["trig22_mutex"] },
- "r0" : { "duration" : 50 },
- "s0" : { "duration" : 16000 },
- "trig3" : { "duration" : 0, "access": ["trig3_mutex"] },
- "r1" : { "duration" : 50 },
- }
+ "loop" : -1,
+ "lock0" : "trig22_mutex",
+ "wait0" : { "ref" : "wait22", "mutex": "trig22_mutex" },
+ "unlock0" : "trig22_mutex",
+ "run0" : 50,
+ "sleep0" : 16000,
+ "run1" : 50,
+ "lock1" : "trig3_mutex",
+ "signal1" : "trig3",
+ "unlock1" : "trig3_mutex",
},
"Display" : {
"priority" : -8,
- "exec" : 16000,
- "period" : 25000,
- "sleep" : false,
- "lock_order" : ["wait3"],
- "resources" : {
- "wait3" : { "duration" : 0, "access": ["trig3_mutex"] },
- }
+ "loop" : -1,
+ "lock0" : "trig3_mutex",
+ "wait0" : { "ref" : "wait3", "mutex": "trig3_mutex" },
+ "unlock0" : "trig3_mutex",
+ "run0" : 16000,
},
},
"resources" : {
@@ -206,10 +190,6 @@
"trig3_mutex" : { "type" : "mutex" },
"wait3" : { "type" : "wait" },
"trig3" : { "type" : "signal", "target" : "wait3" },
- "r0" : { "type" : "run" },
- "r1" : { "type" : "run" },
- "r2" : { "type" : "run" },
- "s0" : { "type" : "sleep" },
},
"global" : {
"default_policy" : "SCHED_OTHER",