From db49739f390992a3d68303765ac36f14ed09b68a Mon Sep 17 00:00:00 2001 From: Jamie Gennis Date: Mon, 9 Apr 2012 16:01:30 -0700 Subject: [PATCH] Add tracing initialization to init.rc. This change adds init.rc steps to allow kernel tracing to support inserting messages from any userland process. Change-Id: I01970728d7132a25408fed09a213a015ac05ccaf --- rootdir/init.rc | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/rootdir/init.rc b/rootdir/init.rc index 71ec3fad8..dfe2479c9 100644 --- a/rootdir/init.rc +++ b/rootdir/init.rc @@ -370,6 +370,10 @@ service console /system/bin/sh on property:ro.debuggable=1 start console +# Allow writing to the kernel trace log. Enabling tracing still requires root. +on property:ro.debuggable=1 + chmod 0222 /sys/kernel/debug/tracing/trace_marker + # adbd is controlled via property triggers in init..usb.rc service adbd /sbin/adbd class core