1
0
mirror of https://github.com/ARM-software/workload-automation.git synced 2024-10-06 19:01:15 +01:00

perf: reverting type change for optionstring

This commit is contained in:
Sergei Trofimov 2015-07-24 16:20:14 +01:00
parent 0db14e2466
commit 507efaec48

View File

@ -23,7 +23,7 @@ import itertools
from wlauto import Instrument, Executable, Parameter from wlauto import Instrument, Executable, Parameter
from wlauto.exceptions import ConfigError from wlauto.exceptions import ConfigError
from wlauto.utils.misc import ensure_file_directory_exists as _f from wlauto.utils.misc import ensure_file_directory_exists as _f
from wlauto.utils.types import arguments, list_of_strs from wlauto.utils.types import list_or_string, list_of_strs
PERF_COMMAND_TEMPLATE = '{} stat {} {} sleep 1000 > {} 2>&1 ' PERF_COMMAND_TEMPLATE = '{} stat {} {} sleep 1000 > {} 2>&1 '
@ -72,7 +72,7 @@ class PerfInstrument(Instrument):
global_alias='perf_events', global_alias='perf_events',
constraint=(lambda x: x, 'must not be empty.'), constraint=(lambda x: x, 'must not be empty.'),
description="""Specifies the events to be counted."""), description="""Specifies the events to be counted."""),
Parameter('optionstring', kind=arguments, default='-a', Parameter('optionstring', kind=list_or_string, default='-a',
global_alias='perf_options', global_alias='perf_options',
description="""Specifies options to be used for the perf command. This description="""Specifies options to be used for the perf command. This
may be a list of option strings, in which case, multiple instances of perf may be a list of option strings, in which case, multiple instances of perf