From f212ce9083495b79e0d0c0b25605243aee81519f Mon Sep 17 00:00:00 2001 From: Paul Lawrence Date: Tue, 29 Nov 2016 15:31:25 -0800 Subject: [PATCH] Use tracefs not debugfs Test: Device boots Can take photos Run "adb shell atrace -c -b 16000 -t 5 gfx" without root and check produces output Run "python systrace.py view gfx freq sched am wm dalvik binder_driver" from external/chromium-trace after adb root and check populated Bug: 31856701 Change-Id: Ie4f8017d4ef37e12848b1e498e06ed2482752ab2 --- rootdir/etc/init.qcom.rc | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/rootdir/etc/init.qcom.rc b/rootdir/etc/init.qcom.rc index 1f289ac..f8ca007 100644 --- a/rootdir/etc/init.qcom.rc +++ b/rootdir/etc/init.qcom.rc @@ -28,8 +28,9 @@ import /init.mmi.rc on early-init - mount debugfs debugfs /sys/kernel/debug - chmod 0755 /sys/kernel/debug + mount tracefs tracefs /sys/kernel/tracing + chmod 0755 /sys/kernel/tracing + restorecon --recursive /sys/kernel/tracing mkdir /firmware 0771 system system mkdir /system 0777 root root symlink /data/tombstones /tombstones