SHARE
TWEET

XPERIA Z (SO-02E) init.trace.rc (10.1.D.0.317)

huhka_com Feb 10th, 2013 42 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. ## Permissions to allow system-wide tracing to the kernel trace buffer.
  2. ##
  3. on boot
  4.  
  5. # Allow writing to the kernel trace log.
  6.     chmod 0222 /sys/kernel/debug/tracing/trace_marker
  7.  
  8. # Allow the shell group to enable (some) kernel tracing.
  9.     chown root shell /sys/kernel/debug/tracing/trace_clock
  10.     chown root shell /sys/kernel/debug/tracing/buffer_size_kb
  11.     chown root shell /sys/kernel/debug/tracing/options/overwrite
  12.     chown root shell /sys/kernel/debug/tracing/events/sched/sched_switch/enable
  13.     chown root shell /sys/kernel/debug/tracing/events/sched/sched_wakeup/enable
  14.     chown root shell /sys/kernel/debug/tracing/events/power/cpu_frequency/enable
  15.     chown root shell /sys/kernel/debug/tracing/events/power/cpu_idle/enable
  16.     chown root shell /sys/kernel/debug/tracing/events/cpufreq_interactive/enable
  17.     chown root shell /sys/kernel/debug/tracing/tracing_on
  18.  
  19.     chmod 0664 /sys/kernel/debug/tracing/trace_clock
  20.     chmod 0664 /sys/kernel/debug/tracing/buffer_size_kb
  21.     chmod 0664 /sys/kernel/debug/tracing/options/overwrite
  22.     chmod 0664 /sys/kernel/debug/tracing/events/sched/sched_switch/enable
  23.     chmod 0664 /sys/kernel/debug/tracing/events/sched/sched_wakeup/enable
  24.     chmod 0664 /sys/kernel/debug/tracing/events/power/cpu_frequency/enable
  25.     chmod 0664 /sys/kernel/debug/tracing/events/power/cpu_idle/enable
  26.     chmod 0664 /sys/kernel/debug/tracing/events/cpufreq_interactive/enable
  27.     chmod 0664 /sys/kernel/debug/tracing/tracing_on
  28.  
  29. # Allow only the shell group to read and truncate the kernel trace.
  30.     chown root shell /sys/kernel/debug/tracing/trace
  31.     chmod 0660 /sys/kernel/debug/tracing/trace
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top