mirror of
https://github.com/ARM-software/workload-automation.git
synced 2025-02-07 13:41:24 +00:00
rt-app: added taskset_mask parameter
This commit is contained in:
parent
e0ecc9aaf4
commit
c6ede56942
@ -130,6 +130,8 @@ class RtApp(Workload):
|
|||||||
Duration of the workload execution in Seconds. If specified, this
|
Duration of the workload execution in Seconds. If specified, this
|
||||||
will override the corresponing parameter in the JSON config.
|
will override the corresponing parameter in the JSON config.
|
||||||
'''),
|
'''),
|
||||||
|
Parameter('taskset_mask', kind=int,
|
||||||
|
description='Constrain execution to specific CPUs.'),
|
||||||
]
|
]
|
||||||
|
|
||||||
def initialize(self, context):
|
def initialize(self, context):
|
||||||
@ -158,7 +160,8 @@ class RtApp(Workload):
|
|||||||
self.timeout = self.duration + time_buffer
|
self.timeout = self.duration + time_buffer
|
||||||
|
|
||||||
def run(self, context):
|
def run(self, context):
|
||||||
self.output = self.device.execute(self.command,
|
self.output = self.device.invoke(self.command,
|
||||||
|
on_cpus=self.taskset_mask,
|
||||||
timeout=self.timeout,
|
timeout=self.timeout,
|
||||||
as_root=True)
|
as_root=True)
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user