1/*
2 * Copyright (C) 2018 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";
18package perfetto.protos;
19
20// Represents the mapping between inode numbers in a block device and their path
21// on the filesystem
22message InodeFileMap {
23  // Representation of Entry
24  message Entry {
25    optional uint64 inode_number = 1;
26
27    // The path to the file, e.g. "etc/file.xml"
28    // List of strings for multiple hardlinks
29    repeated string paths = 2;
30
31    // The file type
32    enum Type {
33      UNKNOWN = 0;
34      FILE = 1;
35      DIRECTORY = 2;
36    }
37    optional Type type = 3;
38  }
39
40  optional uint64 block_device_id = 1;
41
42  // The mount points of the block device, e.g. ["system"].
43  repeated string mount_points = 2;
44
45  // The list of all the entries from the block device
46  repeated Entry entries = 3;
47}
48