diff options
Diffstat (limited to 'doc/examples')
-rw-r--r-- | doc/examples/browser-long.json | 134 | ||||
-rw-r--r-- | doc/examples/browser-short.json (renamed from doc/examples/browser.json) | 11 | ||||
-rw-r--r-- | doc/examples/mp3-long.json | 68 | ||||
-rw-r--r-- | doc/examples/mp3-short.json (renamed from doc/examples/mp3.json) | 2 |
4 files changed, 214 insertions, 1 deletions
diff --git a/doc/examples/browser-long.json b/doc/examples/browser-long.json new file mode 100644 index 0000000..be8df0c --- /dev/null +++ b/doc/examples/browser-long.json @@ -0,0 +1,134 @@ +{ + "tasks" : { + "BrowserMain" : { + "loop" : 3, + "phases" : { + "start" : { + "loop" : 1, + "sleep" : 400000, + "run" : 15000, + "resume" : "Browser", + "run" : 7000, + "sleep" : 8000 + }, + "render1" : { + "loop" : 50, + "resume" : "BrowserSub", + "run" : 3000 + }, + "render2" : { + "loop" : 1, + "suspend" : "Browser", + "run" : 10000, + "resume" : "Browser", + "run" : 5000 + }, + "render3" : { + "loop" : 20, + "resume" : "BrowserSub", + "run" : 3000 + }, + "stop" : { + "loop" : 1, + "run" : 2000, + "sleep" : 200000, + "suspend" : "Browser", + "sleep" : 600000 + }, + "scroll" : { + "loop" : 4, + "resume" : "Browser", + "suspend" : "BrowserNext", + "run" : 1000 + }, + "stop2" : { + "loop" : 1, + "suspend" : "Browser", + "run" : 200, + "sleep" : 800000 + } + } + }, + "BrowserSub1" : { + "priority" : -6, + "loop" : -1, + "suspend" : "BrowserSub", + "run" : 100 + }, + "BrowserSub2" : { + "priority" : -6, + "loop" : -1, + "suspend" : "BrowserSub", + "run" : 100 + }, + "BrowserDisplay" : { + "priority" : -6, + "loop" : -1, + "suspend" : "Browser", + "run" : 300, + "resume" : "BrowserNext", + "run" : 12000, + "lock" : "mutex11", + "sync" : { "ref" : "queue11", "mutex": "mutex11" }, + "unlock" : "mutex11", + "run" : 300, + "resume" : "Binder-display", + "run" : 400 + }, + "Binder-dummy" : { + "priority" : -6, + "loop" : -1, + "lock" : "mutex11", + "wait" : { "ref" : "queue11", "mutex": "mutex11" }, + "unlock" : "mutex11", + "run" : 200, + "lock" : "mutex11", + "signal" : "queue11", + "unlock" : "mutex11", + "run" : 100 + }, + "Binder-display" : { + "priority" : -6, + "loop" : -1, + "suspend" : "Binder-display", + "run" : 300, + "resume" : "Event-Browser", + "resume" : "Event-Display" + }, + "Event-Browser" : { + "priority" : -9, + "loop" : -1, + "suspend" : "Event-Browser", + "run" : 50, + "sleep" : 16000, + "run" : 50, + "resume" : "Browser" + }, + "Event-Display" : { + "priority" : -9, + "loop" : -1, + "suspend" : "Event-Display", + "run" : 50, + "sleep" : 16000, + "run" : 50, + "resume" : "Display" + }, + "Display" : { + "priority" : -8, + "loop" : -1, + "suspend" : "Display", + "run" : 16000 + }, + }, + "global" : { + "default_policy" : "SCHED_OTHER", + "duration" : 600, + "ftrace" : false, + "gnuplot" : false, + "logdir" : "./", + "log_basename" : "web", + "lock_pages" : true, + "frag" : 1, + "calibration" : "CPU0" + } +} diff --git a/doc/examples/browser.json b/doc/examples/browser-short.json index e217afe..4663104 100644 --- a/doc/examples/browser.json +++ b/doc/examples/browser-short.json @@ -120,4 +120,15 @@ "run" : 16000 }, }, + "global" : { + "default_policy" : "SCHED_OTHER", + "duration" : 6, + "ftrace" : false, + "gnuplot" : false, + "logdir" : "./", + "log_basename" : "web", + "lock_pages" : true, + "frag" : 1, + "calibration" : "CPU0" + } } diff --git a/doc/examples/mp3-long.json b/doc/examples/mp3-long.json new file mode 100644 index 0000000..7c179d0 --- /dev/null +++ b/doc/examples/mp3-long.json @@ -0,0 +1,68 @@ +{ + "tasks" : { + "AudioTick" : { + "priority" : -19, + "loop" : -1, + "cpus" : [0], + "phases" : { + "p1" : { + "loop" : 1, + "resume" : "AudioOut", + "timer" : { "ref" : "tick", "period": 6000 } + }, + "p2" : { + "loop" : 4, + "timer" : { "ref" : "tick", "period": 6000 } + } + } + }, + "AudioOut" : { + "priority" : -19, + "loop" : -1, + "run" : 275, + "resume" : "AudioTrack", + "run" : 4725, + "suspend" : "AudioOut" + }, + "AudioTrack" : { + "priority" : -16, + "loop" : -1, + "suspend" : "AudioTrack", + "run" : 300, + "resume" : "mp3.decoder" + }, + "mp3.decoder" : { + "priority" : -2, + "loop" : -1, + "suspend" : "mp3.decoder", + "run" : 1000, + "lock" : "mutex", + "signal" : "queue", + "wait" : { "ref" : "queue", "mutex": "mutex" }, + "unlock" : "mutex", + "run" : 150 + }, + "OMXCall" : { + "priority" : -2, + "loop" : -1, + "lock" : "mutex", + "wait" : { "ref" : "queue", "mutex": "mutex" }, + "unlock" : "mutex", + "run" : 300, + "lock" : "mutex", + "signal" : "queue", + "unlock" : "mutex" + } + }, + "global" : { + "default_policy" : "SCHED_OTHER", + "duration" : 600, + "ftrace" : false, + "gnuplot" : false, + "logdir" : "./", + "log_basename" : "mp3", + "lock_pages" : true, + "frag" : 1, + "calibration" : "CPU0" + } +} diff --git a/doc/examples/mp3.json b/doc/examples/mp3-short.json index 435275a..ad30723 100644 --- a/doc/examples/mp3.json +++ b/doc/examples/mp3-short.json @@ -56,7 +56,7 @@ }, "global" : { "default_policy" : "SCHED_OTHER", - "duration" : 5, + "duration" : 6, "ftrace" : false, "gnuplot" : false, "logdir" : "./", |