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