From: Vincent Guittot vincent.guittot@linaro.org
update taskset.json example file with new run and sleep type of resources
Signed-off-by: Vincent Guittot vincent.guittot@linaro.org --- doc/taskset.json | 37 +++++++++++++++++++++++-------------- 1 file changed, 23 insertions(+), 14 deletions(-)
diff --git a/doc/taskset.json b/doc/taskset.json index 62acfeb..a87d50a 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 }, } }, },