From 09464811ca13db457579a78590a31aaa9b836c12 Mon Sep 17 00:00:00 2001 From: Yabin Cui <yabinc@google.com> Date: Fri, 29 Jun 2018 14:53:34 -0700 Subject: [PATCH] Export more files in proc_perf. Export /proc/sys/kernel/perf_cpu_time_max_percent and /proc/sys/kernel/perf_event_mlock_kb in proc_perf. So they can be read in shell and written by init. This is needed by simpleperf to control cpu percent and memory used for profiling. Bug: 110706031 Test: build and boot hikey960 successfully. Change-Id: I2a01f583508003ab73427bab30a7982a27dfa677 --- private/genfs_contexts | 2 ++ 1 file changed, 2 insertions(+) diff --git a/private/genfs_contexts b/private/genfs_contexts index b4d7cbc07..a538544c6 100644 --- a/private/genfs_contexts +++ b/private/genfs_contexts @@ -46,6 +46,8 @@ genfscon proc /sys/kernel/modules_disabled u:object_r:proc_security:s0 genfscon proc /sys/kernel/panic_on_oops u:object_r:proc_panic:s0 genfscon proc /sys/kernel/perf_event_max_sample_rate u:object_r:proc_perf:s0 genfscon proc /sys/kernel/perf_event_paranoid u:object_r:proc_perf:s0 +genfscon proc /sys/kernel/perf_cpu_time_max_percent u:object_r:proc_perf:s0 +genfscon proc /sys/kernel/perf_event_mlock_kb u:object_r:proc_perf:s0 genfscon proc /sys/kernel/pid_max u:object_r:proc_pid_max:s0 genfscon proc /sys/kernel/poweroff_cmd u:object_r:usermodehelper:s0 genfscon proc /sys/kernel/random u:object_r:proc_random:s0 -- GitLab