1# 2# Copyright (C) 2020 The Android Open-Source Project 3# 4# Licensed under the Apache License, Version 2.0 (the "License"); 5# you may not use this file except in compliance with the License. 6# You may obtain a copy of the License at 7# 8# http://www.apache.org/licenses/LICENSE-2.0 9# 10# Unless required by applicable law or agreed to in writing, software 11# distributed under the License is distributed on an "AS IS" BASIS, 12# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13# See the License for the specific language governing permissions and 14# limitations under the License. 15# 16on property:sys.boot_completed=1 17 # Create mm_event trace point. 18 # For legacy devices, only mm_event is using this trace instance. 19 # Debugfs is only used in legacy devices and going to be deprecated. 20 # If others want to put more,it should get hard review from pixel-perf-team. 21 mkdir /sys/kernel/debug/tracing/instances/pixel-trace 0755 system system 22 chown system system /sys/kernel/debug/tracing/instances/pixel-trace/trace 23 chmod 0660 /sys/kernel/debug/tracing/instances/pixel-trace/trace 24 chown system system /sys/kernel/debug/tracing/instances/pixel-trace/tracing_on 25 chmod 0660 /sys/kernel/debug/tracing/instances/pixel-trace/tracing_on 26 write /sys/kernel/debug/tracing/instances/pixel-trace/buffer_size_kb 64 27 write /sys/kernel/debug/tracing/instances/pixel-trace/events/mm_event/enable 1 28 write /sys/kernel/debug/tracing/instances/pixel-trace/events/f2fs/f2fs_iostat/enable 1 29 write /sys/kernel/debug/tracing/instances/pixel-trace/events/ufs/ufs_stats/enable 1 30 write /sys/kernel/debug/tracing/instances/pixel-trace/events/ufs_pixel/ufs_stats/enable 1 31 chmod 444 /sys/kernel/debug/page_owner 32 33# turns off tracing right before bugreporting to keep more traces 34on property:init.svc.dumpstatez=running 35 write /d/tracing/instances/pixel-trace/tracing_on 0 36 37on property:init.svc.dumpstatez=stopped 38 write /d/tracing/instances/pixel-trace/tracing_on 1 39 40on property:init.svc.bugreport=running 41 write /d/tracing/instances/pixel-trace/tracing_on 0 42 43on property:init.svc.bugreport=stopped 44 write /d/tracing/instances/pixel-trace/tracing_on 1 45 46on property:init.svc.bugreportd=running 47 write /d/tracing/instances/pixel-trace/tracing_on 0 48 49on property:init.svc.bugreportd=stopped 50 write /d/tracing/instances/pixel-trace/tracing_on 1 51