Home
last modified time | relevance | path

Searched refs:symbols (Results 1 – 25 of 40) sorted by relevance

12

/system/extras/simpleperf/
Dread_elf_test.cpp76 void ParseSymbol(const ElfFileSymbol& symbol, std::map<std::string, ElfFileSymbol>* symbols) { in ParseSymbol() argument
77 (*symbols)[symbol.name] = symbol; in ParseSymbol()
80 static void CheckGlobalVariableSymbols(const std::map<std::string, ElfFileSymbol>& symbols) { in CheckGlobalVariableSymbols() argument
81 auto pos = symbols.find("GlobalVar"); in CheckGlobalVariableSymbols()
82 ASSERT_NE(pos, symbols.end()); in CheckGlobalVariableSymbols()
86 static void CheckFunctionSymbols(const std::map<std::string, ElfFileSymbol>& symbols) { in CheckFunctionSymbols() argument
87 auto pos = symbols.find("GlobalFunc"); in CheckFunctionSymbols()
88 ASSERT_NE(pos, symbols.end()); in CheckFunctionSymbols()
93 void CheckElfFileSymbols(const std::map<std::string, ElfFileSymbol>& symbols) { in CheckElfFileSymbols() argument
94 CheckGlobalVariableSymbols(symbols); in CheckElfFileSymbols()
[all …]
Dtest_util.h30 void ParseSymbol(const ElfFileSymbol& symbol, std::map<std::string, ElfFileSymbol>* symbols);
31 void CheckElfFileSymbols(const std::map<std::string, ElfFileSymbol>& symbols);
Dread_apk_test.cpp70 std::map<std::string, ElfFileSymbol> symbols; in TEST() local
73 std::bind(ParseSymbol, std::placeholders::_1, &symbols))); in TEST()
74 CheckElfFileSymbols(symbols); in TEST()
Ddso.cpp244 void Dso::SetSymbols(std::vector<Symbol>* symbols) { in SetSymbols() argument
245 symbols_ = std::move(*symbols); in SetSymbols()
246 symbols->clear(); in SetSymbols()
333 std::vector<Symbol>* symbols) { in KernelSymbolCallback() argument
335 symbols->emplace_back(Symbol(kernel_symbol.name, kernel_symbol.addr, 0)); in KernelSymbolCallback()
341 std::vector<Symbol>* symbols) { in VmlinuxSymbolCallback() argument
343 symbols->emplace_back( in VmlinuxSymbolCallback()
431 std::vector<Symbol>* symbols) { in ElfFileSymbolCallback() argument
433 symbols->emplace_back(elf_symbol.name, elf_symbol.vaddr, elf_symbol.len); in ElfFileSymbolCallback()
Drecord_file_writer.cpp310 const std::vector<Symbol>& symbols = dso->GetSymbols(); in WriteFileFeatures() local
312 for (const auto& sym : symbols) { in WriteFileFeatures()
329 const std::vector<const Symbol*>& symbols) { in WriteFileFeature() argument
331 sizeof(uint64_t) + symbols.size() * (sizeof(uint64_t) + sizeof(uint32_t)); in WriteFileFeature()
332 for (const auto& symbol : symbols) { in WriteFileFeature()
341 uint32_t symbol_count = static_cast<uint32_t>(symbols.size()); in WriteFileFeature()
343 for (const auto& symbol : symbols) { in WriteFileFeature()
Drecord_file_reader.cpp446 std::vector<Symbol>* symbols) { in ReadFileFeature() argument
476 symbols->clear(); in ReadFileFeature()
477 symbols->reserve(symbol_count); in ReadFileFeature()
485 symbols->emplace_back(name, start_vaddr, len); in ReadFileFeature()
520 std::vector<Symbol> symbols; in LoadBuildIdAndFileFeatures() local
523 read_pos, &file_path, &file_type, &min_vaddr, &symbols)) { in LoadBuildIdAndFileFeatures()
524 thread_tree.AddDsoInfo(file_path, file_type, min_vaddr, &symbols); in LoadBuildIdAndFileFeatures()
Dcmd_dumprecord.cpp237 std::vector<Symbol> symbols; in DumpFeatureSection() local
242 &symbols)) { in DumpFeatureSection()
247 for (const auto& symbol : symbols) { in DumpFeatureSection()
Drecord_file.h61 const std::vector<const Symbol*>& symbols);
152 std::vector<Symbol>* symbols);
Ddso.h141 void SetSymbols(std::vector<Symbol>* symbols);
Dthread_tree.h119 uint64_t min_vaddr, std::vector<Symbol>* symbols);
Dcmd_record_test.cpp391 std::vector<Symbol> symbols; in TEST() local
394 while (reader->ReadFileFeature(read_pos, &file_path, &file_type, &min_vaddr, &symbols)) { in TEST()
395 if (file_type == DSO_KERNEL && !symbols.empty()) { in TEST()
Dthread_tree.cpp282 uint64_t min_vaddr, std::vector<Symbol>* symbols) { in AddDsoInfo() argument
291 dso->SetSymbols(symbols); in AddDsoInfo()
/system/core/libunwindstack/tests/
DSymbolsTest.cpp61 Symbols symbols(0x1000, sizeof(TypeParam), sizeof(TypeParam), 0x2000, 0x100); in TYPED_TEST_P() local
73 ASSERT_TRUE(symbols.GetName<TypeParam>(0x5000, 0, &this->memory_, &name, &func_offset)); in TYPED_TEST_P()
78 ASSERT_TRUE(symbols.GetName<TypeParam>(0x500f, 0, &this->memory_, &name, &func_offset)); in TYPED_TEST_P()
83 ASSERT_FALSE(symbols.GetName<TypeParam>(0x4fff, 0, &this->memory_, &name, &func_offset)); in TYPED_TEST_P()
84 ASSERT_FALSE(symbols.GetName<TypeParam>(0x5010, 0, &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, 0, &this->memory_, &name, &func_offset)); in TYPED_TEST_P()
109 symbols.ClearCache(); in TYPED_TEST_P()
110 ASSERT_FALSE(symbols.GetName<TypeParam>(0x5000, 0, &this->memory_, &name, &func_offset)); in TYPED_TEST_P()
117 symbols.ClearCache(); in TYPED_TEST_P()
[all …]
/system/extras/tools/
Dgraph_lockdep_chains217 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/
Dbacktrace_offline_test.cpp57 std::vector<FunctionSymbol> symbols = { in GetFunctionSymbols() local
68 symbols.begin(), symbols.end(), in GetFunctionSymbols()
70 for (size_t i = 0; i + 1 < symbols.size(); ++i) { in GetFunctionSymbols()
71 symbols[i].end = symbols[i + 1].start; in GetFunctionSymbols()
73 return symbols; in GetFunctionSymbols()
181 const std::vector<FunctionSymbol>& symbols) { in FunctionNameForAddress() argument
182 for (auto& symbol : symbols) { in FunctionNameForAddress()
197 std::vector<FunctionSymbol> symbols; member
236 testdata->symbols.resize(testdata->symbols.size() + 1); in ReadOfflineTestData()
237 FunctionSymbol& symbol = testdata->symbols.back(); in ReadOfflineTestData()
[all …]
/system/extras/simpleperf/runtest/
Druntest.py408 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/
Dperf_data_converter.cc60 RangeMap<std::string, uint64_t> symbols; in AddSymbolInfo() member
118 dso_data->symbols.Insert(symbol, file_addr); in AddSymbolInfo()
138 if (dso.symbols.empty()) { in AddSymbolInfo()
146 for (auto& aggr_sym : dso.symbols) { in AddSymbolInfo()
Dperfprofd_record.proto27 repeated Symbol symbols = 4; field
/system/media/
DCleanSpec.mk56 $(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/
Dannotate.py344 symbols = []
345 symbols.append(lib.GetSymbolOfCurrentSample())
348 symbols.append(callchain.entries[i].symbol)
349 for symbol in symbols:
400 symbols = []
401 symbols.append(lib.GetSymbolOfCurrentSample())
404 symbols.append(callchain.entries[i].symbol)
416 for i in range(len(symbols)):
417 symbol = symbols[i]
Dbinary_cache_builder.py79 symbols = [lib.GetSymbolOfCurrentSample()]
82 symbols.append(callchain.entries[i].symbol)
84 for symbol in symbols:
/system/bt/vendor_libs/test_vendor_lib/scripts/
Dbuild_and_run.sh52 VENDOR_SYMBOLS_REL=/symbols/system/vendor/lib
/system/tools/aidl/
Daidl_language_l.ll52 /* symbols */
/system/bt/main/
DAndroid.bp82 // References to global symbols and functions should bind to the library
/system/chre/build/sys_support/qcom/
Duimage_v2.lcs86 /* Standard symbols for Text */

12