1
0
mirror of https://github.com/ARM-software/workload-automation.git synced 2025-01-18 12:06:08 +00:00

Adding support for not validating PMU counters

This commit is contained in:
Ola Olsson 2024-04-01 08:39:42 +02:00 committed by Marc Bonnici
parent 4839ab354f
commit e0bf7668b8

View File

@ -31,7 +31,7 @@ class PerfInstrument(Instrument):
name = 'perf' name = 'perf'
description = """ description = """
Perf is a Linux profiling with performance counters. Perf is a Linux profiling tool with performance counters.
Simpleperf is an Android profiling tool with performance counters. Simpleperf is an Android profiling tool with performance counters.
It is highly recomended to use perf_type = simpleperf when using this instrument It is highly recomended to use perf_type = simpleperf when using this instrument
@ -109,6 +109,10 @@ class PerfInstrument(Instrument):
description=""" description="""
always install perf binary even if perf is already present on the device. always install perf binary even if perf is already present on the device.
"""), """),
Parameter('validate_pmu_events', kind=bool, default=True,
description="""
Query the hardware capabilities to verify the specified PMU events.
"""),
] ]
def __init__(self, target, **kwargs): def __init__(self, target, **kwargs):
@ -137,7 +141,8 @@ class PerfInstrument(Instrument):
self.run_report_sample, self.run_report_sample,
self.report_sample_options, self.report_sample_options,
self.labels, self.labels,
self.force_install) self.force_install,
self.validate_pmu_events)
def setup(self, context): def setup(self, context):
self.outdir = os.path.join(context.output_directory, self.perf_type) self.outdir = os.path.join(context.output_directory, self.perf_type)