summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDivyanand Rangu <quic_drangu@quicinc.com>2023-03-01 11:27:13 +0530
committerDivyanand Rangu <quic_drangu@quicinc.com>2023-03-02 18:33:29 +0530
commit8a5e508acf534117307de081a0402dd20f0cfae7 (patch)
treef328570ec48ba2dec0d9919c771e6ea961d6536f
parent04fb55e1344e4e549931999eee37e41f07f64956 (diff)
init.rc disable bootreceiver traces by default
These traces consume about 10MB of inode cache memory in slabs and are not actively used on production devices. So, disable them by default. CRs-Fixed: 3420855 Change-Id: Icce7b467fa98299c51d7b1b18251c8ae32271c2c
-rw-r--r--rootdir/init.rc13
1 files changed, 2 insertions, 11 deletions
diff --git a/rootdir/init.rc b/rootdir/init.rc
index 9c40f631f..b45abb9ab 100644
--- a/rootdir/init.rc
+++ b/rootdir/init.rc
@@ -654,18 +654,9 @@ on late-fs
# Load trusted keys from dm-verity protected partitions
exec -- /system/bin/fsverity_init --load-verified-keys
-# Only enable the bootreceiver tracing instance for kernels 5.10 and above.
-on late-fs && property:ro.kernel.version=4.9
- setprop bootreceiver.enable 0
-on late-fs && property:ro.kernel.version=4.14
- setprop bootreceiver.enable 0
-on late-fs && property:ro.kernel.version=4.19
- setprop bootreceiver.enable 0
-on late-fs && property:ro.kernel.version=5.4
- setprop bootreceiver.enable 0
+# Don't enable the bootreceiver tracing instance to save 10MB of memory
on late-fs
- # Bootreceiver tracing instance is enabled by default.
- setprop bootreceiver.enable ${bootreceiver.enable:-1}
+ setprop bootreceiver.enable 0
on property:ro.product.cpu.abilist64=* && property:bootreceiver.enable=1
# Set up a tracing instance for system_server to monitor error_report_end events.