diff --git a/perf/perf_24x7_all_events.py b/perf/perf_24x7_all_events.py index 7b6df1068..537efe5a0 100755 --- a/perf/perf_24x7_all_events.py +++ b/perf/perf_24x7_all_events.py @@ -93,7 +93,7 @@ def setUp(self): # Collect all hv_24x7 events self.list_of_hv_24x7_events = [] - for lne in process.get_command_output_matching('perf list', 'hv_24x7'): + for lne in process.get_command_output_matching("perf list | grep 'hv_24x7' | grep -v 'descriptor'", 'hv_24x7'): lne = lne.split(',')[0].split('/')[1] self.list_of_hv_24x7_events.append(lne) diff --git a/perf/perf_hv_gpci.py b/perf/perf_hv_gpci.py index 193f4e996..ec41edd02 100644 --- a/perf/perf_hv_gpci.py +++ b/perf/perf_hv_gpci.py @@ -68,7 +68,7 @@ def setUp(self): self.list_partition = [] self.list_hw = [] self.list_noid = [] - for line in process.get_command_output_matching('perf list', 'hv_gpci'): + for line in process.get_command_output_matching("perf list | grep 'hv_gpci' | grep -v 'descriptor'", 'hv_gpci'): line = "%s/%s" % (line.split('/')[0], line.split('/')[1]) if 'phys_processor_idx' in line: self.list_phys.append(line)