1/* 2 * Copyright (C) 2021 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 17// message types used in perf.data. 18 19syntax = "proto3"; 20 21package simpleperf.proto; 22 23 24message DebugUnwindFeature { 25 message File { 26 string path = 1; 27 uint64 size = 2; 28 } 29 30 repeated File file = 1; 31} 32 33message FileFeature { 34 string path = 1; 35 uint32 type = 2; 36 uint64 min_vaddr = 3; 37 38 message Symbol { 39 uint64 vaddr = 1; 40 uint32 len = 2; 41 string name = 3; 42 } 43 repeated Symbol symbol = 4; 44 45 message DexFile { 46 repeated uint64 dex_file_offset = 1; 47 } 48 message ElfFile { 49 uint64 file_offset_of_min_vaddr = 1; 50 } 51 message KernelModule { 52 uint64 memory_offset_of_min_vaddr = 1; 53 } 54 55 oneof type_specific_msg { 56 DexFile dex_file = 5; // Only when type = DSO_DEX_FILE 57 ElfFile elf_file = 6; // Only when type = DSO_ELF_FILE 58 KernelModule kernel_module = 7; // Only when type = DSO_KERNEL_MODULE 59 } 60} 61