1
0
mirror of https://github.com/ARM-software/devlib.git synced 2024-10-06 02:40:50 +01:00

collector/perf: Disable pager for perf event list.

Pipe the list of perf events via cat to ensure that a pager is not
used to display the output as this can cause some systems to hang
waiting for user input.
This commit is contained in:
Marc Bonnici 2020-05-12 09:34:33 +01:00 committed by setrofim
parent 3c85738f0d
commit a4f9231707

View File

@ -236,7 +236,7 @@ class PerfCollector(CollectorBase):
self.target.execute(report_command)
def _validate_events(self, events):
available_events_string = self.target.execute('{} list'.format(self.perf_type))
available_events_string = self.target.execute('{} list | {} cat'.format(self.perf_type, self.target.busybox))
available_events = available_events_string.splitlines()
for available_event in available_events:
if available_event == '':