From 39008028333da54c7f8621d32b6666af6ec79754 Mon Sep 17 00:00:00 2001 From: David Brazdil Date: Mon, 23 Jan 2023 11:58:35 +0000 Subject: [PATCH] Set pKVM metrics tag Performance of pKVM differs between hardware revisions. Set AVF's debug property on A0 chips to separate benchmark results from each other. Bug: 266183966 Test: getprop | grep 'debug.hypervisor.metrics_tag' Change-Id: Ic7c048e1209bf957cef2373b92dc2e9de2733a9c --- conf/init.debug.rc | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/conf/init.debug.rc b/conf/init.debug.rc index 282acd40..77fd49bd 100644 --- a/conf/init.debug.rc +++ b/conf/init.debug.rc @@ -31,3 +31,12 @@ on property:power.battery_input.suspended=false on post-fs-data chown bluetooth system /dev/logbuffer_btlpm chown bluetooth system /dev/logbuffer_tty18 + +# pKVM performance is different on A0 and B0 chips. +# Add extra tag to metrics collected on A0 to separate the results. +on property:ro.revision=PROTO1.0 + setprop debug.hypervisor.metrics_tag "hwrev_a0" +on property:ro.revision=PROTO1.1 + setprop debug.hypervisor.metrics_tag "hwrev_a0" +on property:ro.revision=EVT1.0 + setprop debug.hypervisor.metrics_tag "hwrev_a0"