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    chmod 0666 /sys/kernel/tracing/events/workqueue/enable
9    chmod 0666 /sys/kernel/debug/tracing/events/workqueue/enable
10    chmod 0666 /sys/kernel/tracing/events/regulator/enable
11    chmod 0666 /sys/kernel/debug/tracing/events/regulator/enable
12    chmod 0666 /sys/kernel/tracing/events/pagecache/enable
13    chmod 0666 /sys/kernel/debug/tracing/events/pagecache/enable
14
15    # irq
16    chmod 0666 /sys/kernel/tracing/events/irq/enable
17    chmod 0666 /sys/kernel/debug/tracing/events/irq/enable
18    chmod 0666 /sys/kernel/tracing/events/ipi/enable
19    chmod 0666 /sys/kernel/debug/tracing/events/ipi/enable
20