diff options
author | Martin Peres <martin.peres@linux.intel.com> | 2017-03-20 15:13:18 +0200 |
---|---|---|
committer | Martin Peres <martin.peres@linux.intel.com> | 2017-10-04 17:48:28 +0300 |
commit | 7e87149a076f90b268d2276131992c420235a8d1 (patch) | |
tree | 273197360ed5bc698a6925c47e49bd4c22de940b | |
parent | d6fc93f5be67924dd6e3fb6293c4fcd970e859cb (diff) |
smartezbench: add new attributes (priority, deadline_soft, deadline_hard)
-rw-r--r-- | python-modules/ezbench/smartezbench.py | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/python-modules/ezbench/smartezbench.py b/python-modules/ezbench/smartezbench.py index efe2973..becf3e6 100644 --- a/python-modules/ezbench/smartezbench.py +++ b/python-modules/ezbench/smartezbench.py @@ -206,6 +206,10 @@ class SmartEzbenchAttributes(Enum): variance_max_run_count = 301 variance_min_run_count = 302 + report_priority = 400 + report_deadline_soft = 401 + report_deadline_hard = 402 + class SmartEzbench: def __init__(self, ezbench_dir, report_name, readonly = False, hook_binary_path = None): @@ -1070,6 +1074,12 @@ class SmartEzbench: return self.__attribute__(param, 20) elif p == SmartEzbenchAttributes.variance_min_run_count: return self.__attribute__(param, 2) + elif p == SmartEzbenchAttributes.report_priority: + return self.__attribute__(param, 0) + elif p == SmartEzbenchAttributes.report_deadline_soft: + return self.__attribute__(param, -1) + elif p == SmartEzbenchAttributes.report_deadline_hard: + return self.__attribute__(param, -1) def set_attribute(self, param, value): # verify that the attribute exists |