/system/extras/simpleperf/ |
D | read_elf_test.cpp | 75 void ParseSymbol(const ElfFileSymbol& symbol, std::map<std::string, ElfFileSymbol>* symbols) { in ParseSymbol() argument 76 (*symbols)[symbol.name] = symbol; in ParseSymbol() 79 static void CheckGlobalVariableSymbols(const std::map<std::string, ElfFileSymbol>& symbols) { in CheckGlobalVariableSymbols() argument 80 auto pos = symbols.find("GlobalVar"); in CheckGlobalVariableSymbols() 81 ASSERT_NE(pos, symbols.end()); in CheckGlobalVariableSymbols() 85 static void CheckFunctionSymbols(const std::map<std::string, ElfFileSymbol>& symbols) { in CheckFunctionSymbols() argument 86 auto pos = symbols.find("GlobalFunc"); in CheckFunctionSymbols() 87 ASSERT_NE(pos, symbols.end()); in CheckFunctionSymbols() 92 void CheckElfFileSymbols(const std::map<std::string, ElfFileSymbol>& symbols) { in CheckElfFileSymbols() argument 93 CheckGlobalVariableSymbols(symbols); in CheckElfFileSymbols() [all …]
|
D | read_dex_file_test.cpp | 28 std::vector<DexFileSymbol> symbols; in TEST() local 29 ASSERT_TRUE(ReadSymbolsFromDexFile(GetTestData("base.vdex"), {0x28}, &symbols)); in TEST() 30 ASSERT_EQ(12435u, symbols.size()); in TEST() 36 ASSERT_NE(std::find(symbols.begin(), symbols.end(), target), symbols.end()); in TEST()
|
D | read_dex_file.cpp | 32 const std::vector<uint64_t>& dex_file_offsets, std::vector<DexFileSymbol>* symbols, in ReadSymbols() argument 47 if (symbols->empty()) { in ReadSymbols() 48 *symbols = std::move(file_syms); in ReadSymbols() 50 symbols->reserve(symbols->size() + file_syms.size()); in ReadSymbols() 51 std::move(std::begin(file_syms), std::end(file_syms), std::back_inserter(*symbols)); in ReadSymbols() 60 std::vector<DexFileSymbol>* symbols) { in ReadSymbolsFromDexFileInMemory() argument 62 dex_file_offsets, symbols, [&](uint64_t offset) -> std::unique_ptr<art_api::dex::DexFile> { in ReadSymbolsFromDexFileInMemory() 81 std::vector<DexFileSymbol>* symbols) { in ReadSymbolsFromDexFile() argument 87 dex_file_offsets, symbols, [&](uint64_t offset) -> std::unique_ptr<art_api::dex::DexFile> { in ReadSymbolsFromDexFile()
|
D | dso.cpp | 337 void Dso::SetSymbols(std::vector<Symbol>* symbols) { in SetSymbols() argument 338 symbols_ = std::move(*symbols); in SetSymbols() 339 symbols->clear(); in SetSymbols() 362 std::vector<Symbol> symbols = LoadSymbols(); in Load() local 364 symbols_ = std::move(symbols); in Load() 367 std::set_union(symbols_.begin(), symbols_.end(), symbols.begin(), symbols.end(), in Load() 390 static void SortAndFixSymbols(std::vector<Symbol>& symbols) { in SortAndFixSymbols() argument 391 std::sort(symbols.begin(), symbols.end(), Symbol::CompareValueByAddr); in SortAndFixSymbols() 393 for (auto& symbol : symbols) { in SortAndFixSymbols() 424 std::vector<Symbol> symbols; in LoadSymbols() local [all …]
|
D | read_dex_file.h | 41 std::vector<DexFileSymbol>* symbols); 44 std::vector<DexFileSymbol>* symbols);
|
D | test_util.h | 33 void ParseSymbol(const ElfFileSymbol& symbol, std::map<std::string, ElfFileSymbol>* symbols); 34 void CheckElfFileSymbols(const std::map<std::string, ElfFileSymbol>& symbols);
|
D | record_file_writer.cpp | 313 const std::vector<Symbol>& symbols = dso->GetSymbols(); in WriteFileFeatures() local 315 for (const auto& sym : symbols) { in WriteFileFeatures() 335 const std::vector<const Symbol*>& symbols, in WriteFileFeature() argument 338 sizeof(uint64_t) + symbols.size() * (sizeof(uint64_t) + sizeof(uint32_t)); in WriteFileFeature() 339 for (const auto& symbol : symbols) { in WriteFileFeature() 354 uint32_t symbol_count = static_cast<uint32_t>(symbols.size()); in WriteFileFeature() 356 for (const auto& symbol : symbols) { in WriteFileFeature()
|
D | record_file_reader.cpp | 417 std::vector<Symbol>* symbols, in ReadFileFeature() argument 448 symbols->clear(); in ReadFileFeature() 449 symbols->reserve(symbol_count); in ReadFileFeature() 457 symbols->emplace_back(name, start_vaddr, len); in ReadFileFeature() 504 std::vector<Symbol> symbols; in LoadBuildIdAndFileFeatures() local 508 &symbols, &dex_file_offsets)) { in LoadBuildIdAndFileFeatures() 509 thread_tree.AddDsoInfo(file_path, file_type, min_vaddr, file_offset_of_min_vaddr, &symbols, in LoadBuildIdAndFileFeatures()
|
D | cmd_record_test.cpp | 399 std::vector<Symbol> symbols; in CheckDumpedSymbols() local 404 &file_offset_of_min_vaddr, &symbols, &dex_file_offsets)) { in CheckDumpedSymbols() 405 if (!symbols.empty()) { in CheckDumpedSymbols() 452 std::vector<Symbol> symbols; in TEST() local 457 &file_offset_of_min_vaddr, &symbols, &dex_file_offsets)) { in TEST() 458 if (file_type == DSO_KERNEL && !symbols.empty()) { in TEST() 772 std::vector<Symbol> symbols; in TestRecordingApps() local 778 &file_offset_of_min_vaddr, &symbols, &dex_file_offsets)) { in TestRecordingApps() 779 for (const auto& symbol : symbols) { in TestRecordingApps()
|
D | cmd_dumprecord.cpp | 247 std::vector<Symbol> symbols; in DumpFeatureSection() local 253 &symbols, &dex_file_offsets)) { in DumpFeatureSection() 259 for (const auto& symbol : symbols) { in DumpFeatureSection()
|
D | record_file.h | 80 const std::vector<const Symbol*>& symbols, 154 std::vector<Symbol>* symbols, std::vector<uint64_t>* dex_file_offsets);
|
/system/core/libunwindstack/tests/ |
D | SymbolsTest.cpp | 61 Symbols symbols(0x1000, sizeof(TypeParam), sizeof(TypeParam), 0x2000, 0x100); in TYPED_TEST_P() local 73 ASSERT_TRUE(symbols.GetName<TypeParam>(0x5000, &this->memory_, &name, &func_offset)); in TYPED_TEST_P() 78 ASSERT_TRUE(symbols.GetName<TypeParam>(0x500f, &this->memory_, &name, &func_offset)); in TYPED_TEST_P() 83 ASSERT_FALSE(symbols.GetName<TypeParam>(0x4fff, &this->memory_, &name, &func_offset)); in TYPED_TEST_P() 84 ASSERT_FALSE(symbols.GetName<TypeParam>(0x5010, &this->memory_, &name, &func_offset)); in TYPED_TEST_P() 88 Symbols symbols(0x1000, sizeof(TypeParam), sizeof(TypeParam), 0x2000, 0x100); in TYPED_TEST_P() local 101 ASSERT_TRUE(symbols.GetName<TypeParam>(0x5000, &this->memory_, &name, &func_offset)); in TYPED_TEST_P() 109 symbols.ClearCache(); in TYPED_TEST_P() 110 ASSERT_FALSE(symbols.GetName<TypeParam>(0x5000, &this->memory_, &name, &func_offset)); in TYPED_TEST_P() 117 symbols.ClearCache(); in TYPED_TEST_P() [all …]
|
/system/extras/tools/ |
D | graph_lockdep_chains | 217 sort -u > /tmp/${progname}.symbols 227 if [ -s /tmp/${progname}.symbols ]; then 231 grep "${filter}" /tmp/${progname}.symbols | 233 grep -v "${filter}" /tmp/${progname}.symbols | 238 grep "${filter}" /tmp/${progname}.symbols | 240 grep -v "${filter}" /tmp/${progname}.symbols | 248 if [ -s /tmp/${progname}.symbols ]; then 251 fgrep -f /tmp/${progname}.symbols /tmp/${progname}.formed 266 if [ -s /tmp/${progname}.symbols ]; then 267 beautify < /tmp/${progname}.symbols |
|
/system/core/libbacktrace/ |
D | backtrace_offline_test.cpp | 49 std::vector<FunctionSymbol> symbols = { in GetFunctionSymbols() local 61 symbols.begin(), symbols.end(), in GetFunctionSymbols() 63 for (size_t i = 0; i + 1 < symbols.size(); ++i) { in GetFunctionSymbols() 64 symbols[i].end = symbols[i + 1].start; in GetFunctionSymbols() 66 return symbols; in GetFunctionSymbols() 174 const std::vector<FunctionSymbol>& symbols) { in FunctionNameForAddress() argument 175 for (auto& symbol : symbols) { in FunctionNameForAddress() 190 std::vector<FunctionSymbol> symbols; member 229 testdata->symbols.resize(testdata->symbols.size() + 1); in ReadOfflineTestData() 230 FunctionSymbol& symbol = testdata->symbols.back(); in ReadOfflineTestData() [all …]
|
/system/extras/simpleperf/runtest/ |
D | runtest.py | 408 symbols = [] 427 symbols.append(cur_symbol) 435 symbols.append(cur_symbol) 477 return symbols 480 symbols = self._read_report_file(report_file, has_callgraph) 481 if not self._check_symbol_overhead_requirements(test, symbols): 484 if not self._check_symbol_children_overhead_requirements(test, symbols): 486 if not self._check_symbol_relation_requirements(test, symbols): 490 def _check_symbol_overhead_requirements(self, test, symbols): argument 494 for symbol in symbols: [all …]
|
/system/extras/perfprofd/ |
D | symbolizer.cc | 115 std::vector<DexFileSymbol> symbols; in LoadDso() local 116 if (ReadSymbolsFromDexFile(dso, dex_file_offsets, &symbols)) { in LoadDso() 118 for (const DexFileSymbol& symbol : symbols) { in LoadDso() 122 LOG(INFO) << "Found " << symbols.size() << " dex symbols in " << dso; in LoadDso()
|
D | perf_data_converter.cc | 63 RangeMap<std::string, uint64_t> symbols; in AddSymbolInfo() member 121 dso_data->symbols.Insert(symbol, file_addr); in AddSymbolInfo() 142 if (dso.symbols.empty()) { in AddSymbolInfo() 150 for (auto& aggr_sym : dso.symbols) { in AddSymbolInfo()
|
D | perfprofd_record.proto | 26 repeated Symbol symbols = 4; field
|
/system/media/ |
D | CleanSpec.mk | 56 $(call add-clean-step, rm -f $(PRODUCT_OUT)/symbols/system/lib/libalsautils.so) 57 $(call add-clean-step, rm -f $(PRODUCT_OUT)/symbols/system/lib64/libalsautils.so)
|
/system/extras/simpleperf/scripts/ |
D | annotate.py | 211 symbols = [] 212 symbols.append(lib.GetSymbolOfCurrentSample()) 215 symbols.append(callchain.entries[i].symbol) 216 for symbol in symbols: 270 symbols = [] 271 symbols.append(lib.GetSymbolOfCurrentSample()) 274 symbols.append(callchain.entries[i].symbol) 286 for j, symbol in enumerate(symbols):
|
D | binary_cache_builder.py | 65 symbols = [lib.GetSymbolOfCurrentSample()] 68 symbols.append(callchain.entries[i].symbol) 70 for symbol in symbols:
|
/system/netd/resolv/ |
D | res_debug.cpp | 475 const struct res_sym* symbols; in p_section() local 479 symbols = p_update_section_syms; in p_section() 482 symbols = p_default_section_syms; in p_section() 485 return (sym_ntos(symbols, section, (int*) 0)); in p_section()
|
/system/bt/vendor_libs/test_vendor_lib/scripts/ |
D | build_and_run.sh | 52 VENDOR_SYMBOLS_REL=/symbols/system/vendor/lib
|
/system/extras/simpleperf/doc/ |
D | README.md | 64 - [How to solve missing symbols in report](#how-to-solve-missing-symbols-in-report) 76 needed symbols, device info and recording time. 87 b. Supports reading symbols and debug information from the .gnu_debugdata section, because 221 results may contain unknown symbols or broken callgraphs. To fix this, we can pass app_profiler.py 293 symbols in the report, check [here](#how-to-solve-missing-symbols-in-report). 429 4. Since Android >= O has symbols for system libraries on device, we don't need to use unstripped 430 binaries in `$ANDROID_PRODUCT_OUT/symbols` to report call graphs. However, they are needed to add 437 # Collect unstripped binaries from $ANDROID_PRODUCT_OUT/symbols to binary_cache/. 438 $ python binary_cache_builder.py -lib $ANDROID_PRODUCT_OUT/symbols 937 To report function symbols, simpleperf needs to read executable binaries used by the monitored [all …]
|
/system/core/llkd/ |
D | README.md | 45 for the symbols are: 137 checking for persistent stack symbols maximum timelimit. 145 comma separated list of kernel symbols. 146 Look for kernel stack symbols that if ever persistently present can
|