summaryrefslogtreecommitdiff
path: root/doc
diff options
context:
space:
mode:
authorVincent Guittot <vincent.guittot@linaro.org>2015-08-03 16:44:49 +0200
committerVincent Guittot <vincent.guittot@linaro.org>2015-08-03 16:44:49 +0200
commitc0dec8fd7edce16acaa065a7984ac79e07ed6e7a (patch)
treeb305762dc1db0cb22ade5cfa65bb83cb1b55b038 /doc
parent380c8872361cf65cd45b4117fab2b2d75acd3cb0 (diff)
rt-app: add duration parameter in tune_json.py
Add the capability to modify the duration value of json file with tune_json.py Signed-off-by: Vincent Guittot <vincent.guittot@linaro.org> Tested by: Leo Yan <leo.yan@linaro.org>
Diffstat (limited to 'doc')
-rwxr-xr-xdoc/tune_json.py5
1 files changed, 5 insertions, 0 deletions
diff --git a/doc/tune_json.py b/doc/tune_json.py
index 3045437..726ad8e 100755
--- a/doc/tune_json.py
+++ b/doc/tune_json.py
@@ -94,6 +94,8 @@ if __name__ == '__main__':
parser.add_argument('--loop', default=0,type=int, help='loop count of each thread/phase (-1 as infinite loop)')
parser.add_argument('--loading', default=0, type=int, help='loading of each thread (%%)')
parser.add_argument('--key', type=str, help='the key id of thread/phase in which the parameters will be changed')
+ parser.add_argument('--duration', default=0, type=int, help='max duration of the use case (s)')
+
args = parser.parse_args()
@@ -116,6 +118,9 @@ if __name__ == '__main__':
if args.period > 0:
dict_find_and_replace_value(target, 'period', args.period)
+ if args.duration > 0:
+ dict_find_and_replace_value(target, 'duration', args.duration)
+
if args.run > 0:
dict_find_and_replace_value(target, 'run', args.run)