Skip to content

Commit

Permalink
Adding support for not validating PMU counters
Browse files Browse the repository at this point in the history
  • Loading branch information
ola1olssonarm authored and marcbonnici committed Apr 2, 2024
1 parent 4839ab3 commit e0bf766
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions wa/instruments/perf.py
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ class PerfInstrument(Instrument):

name = 'perf'
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.
It is highly recomended to use perf_type = simpleperf when using this instrument
Expand Down Expand Up @@ -109,6 +109,10 @@ class PerfInstrument(Instrument):
description="""
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):
Expand Down Expand Up @@ -137,7 +141,8 @@ def initialize(self, context):
self.run_report_sample,
self.report_sample_options,
self.labels,
self.force_install)
self.force_install,
self.validate_pmu_events)

def setup(self, context):
self.outdir = os.path.join(context.output_directory, self.perf_type)
Expand Down

0 comments on commit e0bf766

Please sign in to comment.