Allow to access debugfs
authorJan Altensen <info@stricted.net>
Mon, 25 Feb 2019 16:13:56 +0000 (17:13 +0100)
committerJan Altensen <info@stricted.net>
Mon, 25 Feb 2019 16:13:56 +0000 (17:13 +0100)
Change-Id: I09d8fd11244e1c6d21c64079ef247f58836515f3

ramdisk/init.mt8127.rc

index 9bb5e568b00b92e8b09c7a4df680623511191782..823c0182c379723e7309ea8d1b70eab694a8af16 100644 (file)
@@ -168,6 +168,12 @@ on init
     chown root system /proc/mtprof/reboot_pid
        
 on boot
+    # Allow to access debugfs
+    chmod 755 /sys/kernel/debug
+
+    # Set up kernel tracing, but disable it by default
+    chmod 0222 /sys/kernel/debug/tracing/trace_marker
+    write /sys/kernel/debug/tracing/tracing_on 0
 # start sensor services
 # start akmd8963