* commit '5e34b3abdb3cbc167fa86dab7a746c94f2bd4c6f': perfboot.py: warn if dm-verity is disabled
This commit is contained in:
commit
48f2879729
1 changed files with 11 additions and 0 deletions
|
|
@ -205,6 +205,16 @@ def init_perf(device, output, record_list, tags):
|
||||||
atexit.register(cleanup)
|
atexit.register(cleanup)
|
||||||
|
|
||||||
|
|
||||||
|
def check_dm_verity_settings(device):
|
||||||
|
device.wait()
|
||||||
|
for partition in ['system', 'vendor']:
|
||||||
|
verity_mode = device.get_prop('partition.%s.verified' % partition)
|
||||||
|
if verity_mode is None:
|
||||||
|
logging.warning('dm-verity is not enabled for /%s. Did you run '
|
||||||
|
'adb disable-verity? That may skew the result.',
|
||||||
|
partition)
|
||||||
|
|
||||||
|
|
||||||
def read_event_tags(tags_file):
|
def read_event_tags(tags_file):
|
||||||
"""Reads event tags from |tags_file|."""
|
"""Reads event tags from |tags_file|."""
|
||||||
if not tags_file:
|
if not tags_file:
|
||||||
|
|
@ -393,6 +403,7 @@ def main():
|
||||||
args.output = 'perf-%s-%s.tsv' % (
|
args.output = 'perf-%s-%s.tsv' % (
|
||||||
device.get_prop('ro.build.flavor'),
|
device.get_prop('ro.build.flavor'),
|
||||||
device.get_prop('ro.build.version.incremental'))
|
device.get_prop('ro.build.version.incremental'))
|
||||||
|
check_dm_verity_settings(device)
|
||||||
|
|
||||||
record_list = []
|
record_list = []
|
||||||
event_tags = read_event_tags(args.tags)
|
event_tags = read_event_tags(args.tags)
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue