summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVincent Guittot <vincent.guittot@linaro.org>2015-05-29 10:01:14 +0200
committerVincent Guittot <vincent.guittot@linaro.org>2015-05-29 11:31:16 +0200
commitd71d7b47e60880eb9bc57cd20d4ce361a9d4386a (patch)
treea575188b96ea8d06fb8f9c3acbf456899bc9a0dc
parentf9a6bed0c8fb33abe4a0f10d4561a67f44e3f6e3 (diff)
rt-app: add a template file
add a temple.json file taht can be used by tune_json.py to create use cases with various type a load Signed-off-by: Vincent Guittot <vincent.guittot@linaro.org>
-rw-r--r--doc/examples/template.json28
1 files changed, 28 insertions, 0 deletions
diff --git a/doc/examples/template.json b/doc/examples/template.json
new file mode 100644
index 0000000..5ed3215
--- /dev/null
+++ b/doc/examples/template.json
@@ -0,0 +1,28 @@
+{
+ /*
+ * Simple use case which creates 10% load
+ * for 6 seconds.
+ * A "sleep" : 0 has been added so the file can be used by tune_json.py to
+ * use a sleep event instead of the timer. In this latter case, you need
+ * to set the timer's period to 0
+ */
+ "tasks" : {
+ "thread0" : {
+ "instance" : 1,
+ "loop" : -1,
+ "run" : 10000,
+ "sleep" : 0,
+ "timer" : { "ref" : "unique", "period" : 100000 }
+ }
+ },
+ "global" : {
+ "duration" : 6,
+ "calibration" : "CPU0",
+ "default_policy" : "SCHED_OTHER",
+ "pi_enabled" : false,
+ "lock_pages" : false,
+ "logdir" : "./",
+ "log_basename" : "rt-app2",
+ "gnuplot" : true
+ }
+}