1## Permissions to allow additional system-wide tracing to the kernel trace buffer. 2## The default list of permissions is set in frameworks/native/cmds/atrace/atrace.rc 3 4# Grant unix world read/write permissions to enable kernel tracepoints. 5# Access control to these files is now entirely in selinux policy. 6 7on post-fs 8 # On userdebug allow to enable any event via the generic 9 # set_event interface: 10 # echo sched/foo > set_event == echo 1 > events/sched/foo/enable. 11 chmod 0666 /sys/kernel/tracing/set_event 12 chmod 0666 /sys/kernel/debug/tracing/set_event 13 14 chmod 0666 /sys/kernel/tracing/events/workqueue/enable 15 chmod 0666 /sys/kernel/debug/tracing/events/workqueue/enable 16 chmod 0666 /sys/kernel/tracing/events/regulator/enable 17 chmod 0666 /sys/kernel/debug/tracing/events/regulator/enable 18 chmod 0666 /sys/kernel/tracing/events/filemap/enable 19 chmod 0666 /sys/kernel/debug/tracing/events/filemap/enable 20 21 # irq 22 chmod 0666 /sys/kernel/tracing/events/irq/enable 23 chmod 0666 /sys/kernel/debug/tracing/events/irq/enable 24 chmod 0666 /sys/kernel/tracing/events/ipi/enable 25 chmod 0666 /sys/kernel/debug/tracing/events/ipi/enable 26