Update the example to be aligned wit the tutorial document
Signed-off-by: Vincent Guittot vincent.guittot@linaro.org --- doc/examples/tutorial/example1.json | 15 +++++++++++++-- doc/examples/tutorial/example2.json | 15 +++++++++++++-- doc/examples/tutorial/example3.json | 11 ++++++----- 3 files changed, 32 insertions(+), 9 deletions(-)
diff --git a/doc/examples/tutorial/example1.json b/doc/examples/tutorial/example1.json index df4df4f..4ae2914 100644 --- a/doc/examples/tutorial/example1.json +++ b/doc/examples/tutorial/example1.json @@ -6,8 +6,19 @@ "tasks" : { "thread0" : { "loop" : -1, - "run" : 1000, - "sleep" : 9000 + "run" : 20000, + "sleep" : 80000 } + }, + "global" : { + "duration" : 2, + "calibration" : "CPU0", + "default_policy" : "SCHED_OTHER", + "pi_enabled" : false, + "lock_pages" : false, + "logdir" : "./", + "log_basename" : "rt-app1", + "ftrace" : true, + "gnuplot" : true, } } diff --git a/doc/examples/tutorial/example2.json b/doc/examples/tutorial/example2.json index ff142c9..08b757e 100644 --- a/doc/examples/tutorial/example2.json +++ b/doc/examples/tutorial/example2.json @@ -7,8 +7,19 @@ "thread0" : { "instance" : 1, "loop" : -1, - "run" : 1000, - "timer" : { "ref" : "unique", "period" : 10000 } + "run" : 20000, + "timer" : { "ref" : "unique", "period" : 100000 } } + }, + "global" : { + "duration" : 2, + "calibration" : "CPU0", + "default_policy" : "SCHED_OTHER", + "pi_enabled" : false, + "lock_pages" : false, + "logdir" : "./", + "log_basename" : "rt-app2", + "ftrace" : true, + "gnuplot" : true, } } diff --git a/doc/examples/tutorial/example3.json b/doc/examples/tutorial/example3.json index 4ec6e0d..7dbd94c 100644 --- a/doc/examples/tutorial/example3.json +++ b/doc/examples/tutorial/example3.json @@ -5,17 +5,18 @@ */ "tasks" : { "thread0" : { + "instance" : 12, "loop" : 1, "phases" : { "light" : { - "loop" : 100, + "loop" : 10, "run" : 1000, - "timer" : { "ref" : "tick", "period" : 10000 } + "timer" : { "ref" : "unique", "period" : 30000 } }, "heavy" : { - "loop" : 100, - "run" : 9000, - "timer" : { "ref" : "tick", "period" : 10000 } + "loop" : 10, + "run" : 4000, + "timer" : { "ref" : "unique", "period" : 30000 } } } }