am b4998341: Merge "move init.trace.rc to frameworks/native"
* commit 'b499834121854fd98664d8d96734c733f96dbc1f': move init.trace.rc to frameworks/native
This commit is contained in:
commit
b2acb6b2ce
|
@ -8,7 +8,6 @@ import /init.environ.rc
|
|||
import /init.usb.rc
|
||||
import /init.${ro.hardware}.rc
|
||||
import /init.${ro.zygote}.rc
|
||||
import /init.trace.rc
|
||||
|
||||
on early-init
|
||||
# Set init and its forked children's oom_adj.
|
||||
|
|
|
@ -1,62 +0,0 @@
|
|||
## Permissions to allow system-wide tracing to the kernel trace buffer.
|
||||
##
|
||||
on boot
|
||||
|
||||
# Allow writing to the kernel trace log.
|
||||
chmod 0222 /sys/kernel/debug/tracing/trace_marker
|
||||
|
||||
# Allow the shell group to enable (some) kernel tracing.
|
||||
chown root shell /sys/kernel/debug/tracing/trace_clock
|
||||
chown root shell /sys/kernel/debug/tracing/buffer_size_kb
|
||||
chown root shell /sys/kernel/debug/tracing/options/overwrite
|
||||
chown root shell /sys/kernel/debug/tracing/options/print-tgid
|
||||
chown root shell /sys/kernel/debug/tracing/events/sched/sched_switch/enable
|
||||
chown root shell /sys/kernel/debug/tracing/events/sched/sched_wakeup/enable
|
||||
chown root shell /sys/kernel/debug/tracing/events/power/cpu_frequency/enable
|
||||
chown root shell /sys/kernel/debug/tracing/events/power/cpu_idle/enable
|
||||
chown root shell /sys/kernel/debug/tracing/events/power/clock_set_rate/enable
|
||||
chown root shell /sys/kernel/debug/tracing/events/cpufreq_interactive/enable
|
||||
chown root shell /sys/kernel/debug/tracing/events/vmscan/mm_vmscan_direct_reclaim_begin/enable
|
||||
chown root shell /sys/kernel/debug/tracing/events/vmscan/mm_vmscan_direct_reclaim_end/enable
|
||||
chown root shell /sys/kernel/debug/tracing/events/vmscan/mm_vmscan_kswapd_wake/enable
|
||||
chown root shell /sys/kernel/debug/tracing/events/vmscan/mm_vmscan_kswapd_sleep/enable
|
||||
chown root shell /sys/kernel/debug/tracing/events/binder/binder_transaction/enable
|
||||
chown root shell /sys/kernel/debug/tracing/events/binder/binder_transaction_received/enable
|
||||
chown root shell /sys/kernel/debug/tracing/events/binder/binder_lock/enable
|
||||
chown root shell /sys/kernel/debug/tracing/events/binder/binder_locked/enable
|
||||
chown root shell /sys/kernel/debug/tracing/events/binder/binder_unlock/enable
|
||||
|
||||
chown root shell /sys/kernel/debug/tracing/tracing_on
|
||||
|
||||
chmod 0664 /sys/kernel/debug/tracing/trace_clock
|
||||
chmod 0664 /sys/kernel/debug/tracing/buffer_size_kb
|
||||
chmod 0664 /sys/kernel/debug/tracing/options/overwrite
|
||||
chmod 0664 /sys/kernel/debug/tracing/options/print-tgid
|
||||
chmod 0664 /sys/kernel/debug/tracing/events/sched/sched_switch/enable
|
||||
chmod 0664 /sys/kernel/debug/tracing/events/sched/sched_wakeup/enable
|
||||
chmod 0664 /sys/kernel/debug/tracing/events/power/cpu_frequency/enable
|
||||
chmod 0664 /sys/kernel/debug/tracing/events/power/cpu_idle/enable
|
||||
chmod 0664 /sys/kernel/debug/tracing/events/power/clock_set_rate/enable
|
||||
chmod 0664 /sys/kernel/debug/tracing/events/cpufreq_interactive/enable
|
||||
chmod 0664 /sys/kernel/debug/tracing/events/vmscan/mm_vmscan_direct_reclaim_begin/enable
|
||||
chmod 0664 /sys/kernel/debug/tracing/events/vmscan/mm_vmscan_direct_reclaim_end/enable
|
||||
chmod 0664 /sys/kernel/debug/tracing/events/vmscan/mm_vmscan_kswapd_wake/enable
|
||||
chmod 0664 /sys/kernel/debug/tracing/events/vmscan/mm_vmscan_kswapd_sleep/enable
|
||||
chmod 0664 /sys/kernel/debug/tracing/tracing_on
|
||||
chmod 0664 /sys/kernel/debug/tracing/events/binder/binder_transaction/enable
|
||||
chmod 0664 /sys/kernel/debug/tracing/events/binder/binder_transaction_received/enable
|
||||
chmod 0664 /sys/kernel/debug/tracing/events/binder/binder_lock/enable
|
||||
chmod 0664 /sys/kernel/debug/tracing/events/binder/binder_locked/enable
|
||||
chmod 0664 /sys/kernel/debug/tracing/events/binder/binder_unlock/enable
|
||||
|
||||
# Allow only the shell group to read and truncate the kernel trace.
|
||||
chown root shell /sys/kernel/debug/tracing/trace
|
||||
chmod 0660 /sys/kernel/debug/tracing/trace
|
||||
|
||||
on property:persist.debug.atrace.boottrace=1
|
||||
start boottrace
|
||||
|
||||
# Run atrace with the categories written in a file
|
||||
service boottrace /system/bin/atrace --async_start -f /data/misc/boottrace/categories
|
||||
disabled
|
||||
oneshot
|
Loading…
Reference in New Issue