1/* 2 * Copyright (C) 2017 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 */ 16 17syntax = "proto2"; 18option optimize_for = LITE_RUNTIME; 19 20package perfetto.protos; 21 22// When editing this file run ./tools/gen_tracing_cpp_headers_from_protos.py 23// to reflect changes in the corresponding C++ headers. 24 25message InodeFileConfig { 26 message MountPointMappingEntry { 27 optional string mountpoint = 1; 28 repeated string scan_roots = 2; 29 } 30 31 // How long to pause between batches. 32 optional uint32 scan_interval_ms = 1; 33 34 // How long to wait before the first scan in order to accumulate inodes. 35 optional uint32 scan_delay_ms = 2; 36 37 // How many inodes to scan in one batch. 38 optional uint32 scan_batch_size = 3; 39 40 // Do not scan for inodes not found in the static map. 41 optional bool do_not_scan = 4; 42 43 // If non-empty, only scan inodes corresponding to block devices named in 44 // this list. 45 repeated string scan_mount_points = 5; 46 47 // When encountering an inode belonging to a block device corresponding 48 // to one of the mount points in this map, scan its scan_roots instead. 49 repeated MountPointMappingEntry mount_point_mapping = 6; 50} 51