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