mirror of
https://github.com/ARM-software/devlib.git
synced 2025-01-31 02:00:45 +00: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:
parent
3c85738f0d
commit
a4f9231707
@ -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 == '':
|
||||
|
Loading…
x
Reference in New Issue
Block a user