/system/extras/simpleperf/runtest/ |
D | runtest.conf | 6 <symbol name="Function1()" min="90" max="100"/> 10 <symbol name="main" min="90" max="100"/> 14 <symbol name="Function1()"> 15 <symbol name="main"/> 16 </symbol> 24 <symbol name="Function1()" min="30" max="70"/> 25 <symbol name="Function2()" min="30" max="70"/> 29 <symbol name="main" min="90" max="100"/> 33 <symbol name="Function1()"> 34 <symbol name="main"/> [all …]
|
D | runtest.py | 101 def is_match(self, symbol): argument 103 if self.symbol_name != symbol.name: 106 if self.comm != symbol.comm: 141 def is_match(self, symbol): argument 142 if symbol.name != self.symbol_name: 145 if symbol.comm != self.comm: 491 for symbol in symbols: 494 if req.is_match(symbol): 496 matched_overhead[i] += symbol.overhead 506 symbol, req, test) [all …]
|
/system/extras/simpleperf/ |
D | dso.cpp | 334 uint32_t Dso::CreateSymbolDumpId(const Symbol* symbol) { in CreateSymbolDumpId() argument 335 CHECK(!symbol->HasDumpId()); in CreateSymbolDumpId() 336 symbol->dump_id_ = symbol_dump_id_++; in CreateSymbolDumpId() 337 return symbol->dump_id_; in CreateSymbolDumpId() 417 for (auto& symbol : symbols) { in SortAndFixSymbols() local 419 prev_symbol->len = symbol.addr - prev_symbol->addr; in SortAndFixSymbols() 421 prev_symbol = &symbol; in SortAndFixSymbols() 471 for (auto& symbol : dex_file_symbols) { in LoadSymbols() local 472 symbols.emplace_back(symbol.name, symbol.offset, symbol.len); in LoadSymbols() 560 auto symbol_callback = [&](const ElfFileSymbol& symbol) { in LoadSymbols() argument [all …]
|
D | report_lib_interface.cpp | 85 SymbolEntry symbol; member 238 for (auto& symbol : dso->GetSymbols()) { in OpenRecordFileIfNecessary() local 239 java_methods_[symbol.Name()] = std::make_tuple(dso, symbol.addr, symbol.len); in OpenRecordFileIfNecessary() 336 const Symbol* symbol = thread_tree_.FindSymbol(map, ip, &vaddr_in_file); in SetCurrentSample() local 339 entry.symbol.dso_name = map->dso->GetReportPath().data(); in SetCurrentSample() 340 entry.symbol.vaddr_in_file = vaddr_in_file; in SetCurrentSample() 341 entry.symbol.symbol_name = symbol->DemangledName(); in SetCurrentSample() 342 entry.symbol.symbol_addr = symbol->addr; in SetCurrentSample() 343 entry.symbol.symbol_len = symbol->len; in SetCurrentSample() 344 entry.symbol.mapping = AddMapping(*map); in SetCurrentSample() [all …]
|
D | read_elf.cpp | 202 ElfFileSymbol symbol; in ReadSymbolTable() local 219 symbol.is_in_text_section = true; in ReadSymbolTable() 228 symbol.name = symbol_name_or_err.get(); in ReadSymbolTable() 229 symbol.vaddr = symbol_ref->getValue(); in ReadSymbolTable() 230 if ((symbol.vaddr & 1) != 0 && is_arm) { in ReadSymbolTable() 232 symbol.vaddr &= ~1; in ReadSymbolTable() 234 symbol.len = symbol_ref->getSize(); in ReadSymbolTable() 237 symbol.is_func = true; in ReadSymbolTable() 239 if (symbol.is_in_text_section) { in ReadSymbolTable() 240 symbol.is_label = true; in ReadSymbolTable() [all …]
|
D | dso_test.cpp | 157 const Symbol* symbol = dso->FindSymbol(0x6c77e); in TEST() local 158 ASSERT_NE(symbol, nullptr); in TEST() 159 ASSERT_EQ(symbol->addr, static_cast<uint64_t>(0x6c77e)); in TEST() 160 ASSERT_EQ(symbol->len, static_cast<uint64_t>(0x16)); in TEST() 161 ASSERT_STREQ(symbol->DemangledName(), in TEST() 199 const Symbol* symbol = dso->FindSymbol(0x9a4); in TEST() local 200 ASSERT_TRUE(symbol != nullptr); in TEST() 201 ASSERT_STREQ(symbol->Name(), "Java_com_example_hellojni_HelloJni_callFunc1"); in TEST()
|
D | JITDebugReader.cpp | 504 auto callback = [&](const ElfFileSymbol& symbol) { in GetDescriptorsLocation() argument 505 if (symbol.name == jit_str) { in GetDescriptorsLocation() 506 jit_addr = symbol.vaddr - aligned_segment_vaddr; in GetDescriptorsLocation() 507 } else if (symbol.name == dex_str) { in GetDescriptorsLocation() 508 dex_addr = symbol.vaddr - aligned_segment_vaddr; in GetDescriptorsLocation() 685 auto callback = [&](const ElfFileSymbol& symbol) { in ReadJITCodeDebugInfo() argument 686 if (symbol.len == 0) { // Some arm labels can have zero length. in ReadJITCodeDebugInfo() 689 LOG(VERBOSE) << "JITSymbol " << symbol.name << " at [" << std::hex << symbol.vaddr in ReadJITCodeDebugInfo() 690 << " - " << (symbol.vaddr + symbol.len) << " with size " << symbol.len; in ReadJITCodeDebugInfo() 695 debug_info->emplace_back(process.pid, jit_entry.timestamp, symbol.vaddr, symbol.len, in ReadJITCodeDebugInfo()
|
D | thread_tree.cpp | 231 const Symbol* symbol = nullptr; in FindSymbol() local 238 symbol = dso->FindSymbol(vaddr_in_file); in FindSymbol() 239 if (symbol == nullptr && dso->type() == DSO_KERNEL_MODULE) { in FindSymbol() 244 symbol = dso->FindSymbol(vaddr_in_file); in FindSymbol() 247 if (symbol == nullptr) { in FindSymbol() 253 symbol = dso->FindSymbol(vaddr_in_file); in FindSymbol() 254 CHECK(symbol != nullptr); in FindSymbol() 256 symbol = &unknown_symbol_; in FindSymbol() 265 return symbol; in FindSymbol()
|
D | cmd_report_sample.cpp | 70 const Symbol* symbol; member 374 FprintIndented(report_fp_, 1, "symbol: %s\n", file.symbol(i).c_str()); in DumpProtobufReport() 545 if (node.symbol != thread_tree_.UnknownSymbol()) { in PrintSampleRecordInProtobuf() 546 if (!node.symbol->GetDumpId(reinterpret_cast<uint32_t*>(&symbol_id))) { in PrintSampleRecordInProtobuf() 547 symbol_id = node.dso->CreateSymbolDumpId(node.symbol); in PrintSampleRecordInProtobuf() 560 (strcmp(node.symbol->Name(), "__libc_init") == 0 || in PrintSampleRecordInProtobuf() 561 strcmp(node.symbol->Name(), "__start_thread") == 0)) { in PrintSampleRecordInProtobuf() 585 entry->symbol = thread_tree_.FindSymbol(map, ip, &(entry->vaddr_in_file), &(entry->dso)); in GetCallEntry() 587 if (entry->symbol == thread_tree_.UnknownSymbol()) { in GetCallEntry() 632 std::string* symbol = file->add_symbol(); in PrintFileInfoInProtobuf() local [all …]
|
D | cmd_dumprecord.cpp | 46 const Symbol* symbol; member 330 PrintIndented(2, "%s (%s[+%" PRIx64 "])\n", s.symbol->DemangledName(), s.dso->Path().c_str(), in ProcessSampleRecord() 355 PrintIndented(2, "%s (%s[+%" PRIx64 "])\n", s.symbol->DemangledName(), s.dso->Path().c_str(), in ProcessCallChainRecord() 365 info.symbol = thread_tree_.FindSymbol(map, ip, &info.vaddr_in_file, &info.dso); in GetSymbolInfo() 441 for (const auto& symbol : symbols) { in DumpFeatureSection() local 442 PrintIndented(3, "%s [0x%" PRIx64 "-0x%" PRIx64 "]\n", symbol.DemangledName(), in DumpFeatureSection() 443 symbol.addr, symbol.addr + symbol.len); in DumpFeatureSection()
|
D | utils.cpp | 352 KernelSymbol symbol; in ProcessKernelSymbols() local 353 int ret = sscanf(p, "%" PRIx64 " %c %s%s", &symbol.addr, &symbol.type, name, module); in ProcessKernelSymbols() 361 symbol.name = name; in ProcessKernelSymbols() 365 symbol.module = &module[1]; in ProcessKernelSymbols() 367 symbol.module = nullptr; in ProcessKernelSymbols() 370 if (callback(symbol)) { in ProcessKernelSymbols()
|
D | report_sample.proto | 33 // If the function name is found, it is a valid index in the symbol table 70 // symbol table of the file. 71 repeated string symbol = 3; field 73 // mangled symbol table of the file.
|
D | record_file_writer.cpp | 362 for (const auto& symbol : symbols) { in WriteFileFeature() local 363 size += strlen(symbol->Name()) + 1; in WriteFileFeature() 379 for (const auto& symbol : symbols) { in WriteFileFeature() local 380 MoveToBinaryFormat(symbol->addr, p); in WriteFileFeature() 381 uint32_t len = symbol->len; in WriteFileFeature() 383 MoveToBinaryFormat(symbol->Name(), strlen(symbol->Name()) + 1, p); in WriteFileFeature()
|
D | cmd_report.cpp | 51 const Symbol* symbol; member 56 : map(nullptr), symbol(nullptr), vaddr_in_file(0), flags(0) {} in BranchFromEntry() 69 const Symbol* symbol; member 77 const MapEntry* map, const Symbol* symbol, uint64_t vaddr_in_file) in SampleEntry() 86 symbol(symbol), in SampleEntry() 168 const Symbol* symbol = in CreateSample() local 173 new SampleEntry(r.time_data.time, period, 0, 1, thread, map, symbol, vaddr_in_file))); in CreateSample() 192 sample->branch_from.symbol = from_symbol; in CreateBranchSample() 209 const Symbol* symbol = thread_tree_->FindSymbol(map, ip, &vaddr_in_file); in CreateCallChainSample() local 211 sample->time, 0, acc_info, 0, thread, map, symbol, vaddr_in_file)); in CreateCallChainSample() [all …]
|
D | read_elf_test.cpp | 84 void ParseSymbol(const ElfFileSymbol& symbol, std::map<std::string, ElfFileSymbol>* symbols) { in ParseSymbol() argument 85 (*symbols)[symbol.name] = symbol; in ParseSymbol() 227 auto parse_symbol = [&](const ElfFileSymbol& symbol) { in TEST() argument 228 if (symbol.name == "dlerror") { in TEST()
|
D | SampleComparator.h | 58 BUILD_COMPARE_STRING_FUNCTION(CompareSymbol, symbol->DemangledName()); 62 branch_from.symbol->DemangledName());
|
D | cmd_kmem.cpp | 35 const Symbol* symbol; // the function making allocation member 45 SlabSample(const Symbol* symbol, uint64_t ptr, uint64_t bytes_req, in SlabSample() 48 : symbol(symbol), in SlabSample() 180 const Symbol* symbol = thread_tree_->FindKernelSymbol(call_site); in CreateSample() local 187 symbol, ptr, bytes_req, bytes_alloc, 1, gfp_flags, 0))); in CreateSample() 221 const Symbol* symbol = thread_tree_->FindKernelSymbol(ip); in CreateCallChainSample() local 224 new SlabSample(symbol, sample->ptr, acc_info.bytes_req, in CreateCallChainSample()
|
/system/extras/simpleperf/scripts/ |
D | report_sample.py | 44 symbol = lib.GetSymbolOfCurrentSample() 52 print('%16x\t%s (%s)' % (sample.ip, symbol.symbol_name, symbol.dso_name)) 55 print('%16x\t%s (%s)' % (entry.ip, entry.symbol.symbol_name, entry.symbol.dso_name))
|
D | annotate.py | 215 symbols.append(callchain.entries[i].symbol) 216 for symbol in symbols: 217 if self._filter_symbol(symbol): 218 self.addr2line.add_addr(symbol.dso_name, symbol.symbol_addr, 219 symbol.vaddr_in_file) 220 self.addr2line.add_addr(symbol.dso_name, symbol.symbol_addr, 221 symbol.symbol_addr) 238 def _filter_symbol(self, symbol): argument 239 if not self.dso_filter or symbol.dso_name in self.dso_filter: 274 symbols.append(callchain.entries[i].symbol) [all …]
|
D | pprof_proto_generator.py | 301 symbol = self.lib.GetSymbolOfCurrentSample() 311 if self._filter_symbol(symbol): 312 location_id = self.get_location_id(report_sample.ip, symbol) 316 if self._filter_symbol(symbol): 317 location_id = self.get_location_id(entry.ip, entry.symbol) 351 def _filter_symbol(self, symbol): argument 352 if not self.dso_filter or symbol.dso_name in self.dso_filter: 384 def get_location_id(self, ip, symbol): argument 385 binary_path, build_id = self.get_binary(symbol.dso_name) 386 mapping_id = self.get_mapping_id(symbol.mapping[0], binary_path, build_id) [all …]
|
D | report_html.py | 422 def get_func_id(self, lib_id, symbol): argument 423 key = (lib_id, symbol.symbol_name) 427 function = Function(lib_id, symbol.symbol_name, func_id, symbol.symbol_addr, 428 symbol.symbol_len) 600 symbol = lib.GetSymbolOfCurrentSample() 612 lib_id = self.libs.get_lib_id(symbol.dso_name) 613 func_id = self.functions.get_func_id(lib_id, symbol) 614 callstack = [(lib_id, func_id, symbol.vaddr_in_file)] 616 symbol = callchain.entries[i].symbol 617 lib_id = self.libs.get_lib_id(symbol.dso_name) [all …]
|
D | binary_cache_builder.py | 68 symbols.append(callchain.entries[i].symbol) 70 for symbol in symbols: 71 dso_name = symbol.dso_name
|
/system/extras/simpleperf/scripts/inferno/ |
D | data_types.py | 36 def add_callchain(self, callchain, symbol, sample): argument 45 chain.append(CallSite(entry.symbol.symbol_name, entry.symbol.dso_name)) 47 chain.append(CallSite(symbol.symbol_name, symbol.dso_name)) 72 def add_sample(self, sample, symbol, callchain): argument 74 thread.add_callchain(callchain, symbol, sample)
|
/system/core/libunwindstack/ |
D | Symbols.cpp | 161 std::string symbol; in GetGlobal() local 162 if (elf_memory->ReadString(str_offset, &symbol, str_end_ - str_offset) && symbol == name) { in GetGlobal()
|
D | ElfInterface.cpp | 43 for (auto symbol : symbols_) { in ~ElfInterface() local 44 delete symbol; in ~ElfInterface() 480 for (const auto symbol : symbols_) { in GetFunctionNameWithTemplate() local 481 if (symbol->GetName<SymType>(addr, memory_, name, func_offset)) { in GetFunctionNameWithTemplate() 494 for (const auto symbol : symbols_) { in GetGlobalVariableWithTemplate() local 495 if (symbol->GetGlobal<SymType>(memory_, name, memory_address)) { in GetGlobalVariableWithTemplate()
|