From cfaaafcf40c7248eb253891aa02104741bacdb95 Mon Sep 17 00:00:00 2001 From: Woody Lin Date: Sun, 5 Feb 2023 12:26:40 +0800 Subject: [PATCH] DO NOT MERGE: gs201: init.debug.rc: Enable etm/etm2dram when ramdump is enabled Bug: 265382296 Change-Id: Ib215551397a361f5734401173e62a15691e45425 (cherry picked from commit 7d695f4bff77b8b34f75150825d4ba5e141dcca2) --- conf/init.debug.rc | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/conf/init.debug.rc b/conf/init.debug.rc index 4d5e4c77..d609d7ec 100644 --- a/conf/init.debug.rc +++ b/conf/init.debug.rc @@ -41,3 +41,8 @@ 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" + +# Enable etm/etm2dram when ramdump is enabled. +on property:ro.boot.ramdump=enabled + write /sys/devices/platform/exynos-etm/etm_on 1 + write /sys/devices/platform/etm2dram/arm 1