On Wed, Jul 29, 2015 at 02:23:35PM +0200, Vincent Guittot wrote:
Add the capability to modify the duration value of json file with tune_json.py
Signed-off-by: Vincent Guittot vincent.guittot@linaro.org
doc/tune_json.py | 5 +++++ 1 file changed, 5 insertions(+)
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)
Have verfied this patch at my side, thanks for sharing.
Tested by: Leo Yan leo.yan@linaro.org
Thanks, Leo Yan