From cf0ca5047991a275379694b46e12eb6fbcfe436a Mon Sep 17 00:00:00 2001 From: Scott Bauer Date: Thu, 16 Jul 2015 10:42:19 -0700 Subject: [PATCH] Added shell permisisons for memreclaim tracing --- rootdir/init.trace.rc | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/rootdir/init.trace.rc b/rootdir/init.trace.rc index 50944e6c4..b9b922900 100644 --- a/rootdir/init.trace.rc +++ b/rootdir/init.trace.rc @@ -16,6 +16,10 @@ on boot 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/tracing_on chmod 0664 /sys/kernel/debug/tracing/trace_clock @@ -28,6 +32,10 @@ on boot 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 # Allow only the shell group to read and truncate the kernel trace.