diff options
author | Vincent Guittot <vincent.guittot@linaro.org> | 2014-06-24 15:50:17 +0200 |
---|---|---|
committer | Vincent Guittot <vincent.guittot@linaro.org> | 2014-06-25 09:52:25 +0200 |
commit | 181bca6678b5d7091481651703faf2f3cec9fcd2 (patch) | |
tree | 4262eb54cad4ed0115b925519144b7ea5c9162d2 | |
parent | b48567d5f18918e225c0b8700a5354b217c4022e (diff) |
Add a directory for typical use cases descriptionexamples
-rw-r--r-- | doc/examples/mp3.json | 40 |
1 files changed, 40 insertions, 0 deletions
diff --git a/doc/examples/mp3.json b/doc/examples/mp3.json new file mode 100644 index 0000000..12e580b --- /dev/null +++ b/doc/examples/mp3.json @@ -0,0 +1,40 @@ +{ + "resources" : { + "buffer" : { "type" : "mutex" }, + "sync_mutex" : { "type" : "mutex" }, + "empty" : { "type" : "wait" }, + "trig" : { "type" : "signal", "target" : "empty" }, + }, + "tasks" : { + "decode" : { + "exec" : 5000, + "period" : 5000, + "deadline" : 5000, + "lock_order" : ["empty", "buffer"], + "resources" : { + "buffer" : { "duration" : 1000 }, + "empty" : { "duration" : 1000, "access": ["sync_mutex"] }, + } + }, + "fill_fifo" : { + "exec" : 1000, + "period" : 10000, + "deadline" : 8000, + "lock_order" : ["buffer", "trig"], + "resources" : { + "buffer" : { "duration" : 500 }, + "trig" : { "duration" : 0, "access": ["sync_mutex"] }, + } + }, + }, + "global" : { + "default_policy" : "SCHED_OTHER", + "duration" : 5, + "ftrace" : true, + "gnuplot" : true, + "logdir" : "/tmp/", + "log_basename" : "rt-app", + "lock_pages" : true, + "frag" : 1 + } +} |