Home
last modified time | relevance | path

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

123

/system/extras/simpleperf/
Dread_symbol_map_test.cpp42 auto symbols = ReadSymbolMapFromString(content); in TEST() local
44 ASSERT_EQ(4u, symbols.size()); in TEST()
46 ASSERT_EQ(0x1000, symbols[0].addr); in TEST()
47 ASSERT_EQ(0x10, symbols[0].len); in TEST()
48 ASSERT_STREQ("one", symbols[0].Name()); in TEST()
50 ASSERT_EQ(0x2000, symbols[1].addr); in TEST()
51 ASSERT_EQ(0x20, symbols[1].len); in TEST()
52 ASSERT_STREQ("two", symbols[1].Name()); in TEST()
54 ASSERT_EQ(0x3000, symbols[2].addr); in TEST()
55 ASSERT_EQ(0x30, symbols[2].len); in TEST()
[all …]
Dread_elf_test.cpp87 void ParseSymbol(const ElfFileSymbol& symbol, std::map<std::string, ElfFileSymbol>* symbols) { in ParseSymbol() argument
88 (*symbols)[symbol.name] = symbol; in ParseSymbol()
91 static void CheckGlobalVariableSymbols(const std::map<std::string, ElfFileSymbol>& symbols) { in CheckGlobalVariableSymbols() argument
92 auto pos = symbols.find("GlobalVar"); in CheckGlobalVariableSymbols()
93 ASSERT_NE(pos, symbols.end()); in CheckGlobalVariableSymbols()
97 static void CheckFunctionSymbols(const std::map<std::string, ElfFileSymbol>& symbols) { in CheckFunctionSymbols() argument
98 auto pos = symbols.find("GlobalFunc"); in CheckFunctionSymbols()
99 ASSERT_NE(pos, symbols.end()); in CheckFunctionSymbols()
104 void CheckElfFileSymbols(const std::map<std::string, ElfFileSymbol>& symbols) { in CheckElfFileSymbols() argument
105 CheckGlobalVariableSymbols(symbols); in CheckElfFileSymbols()
[all …]
Dread_dex_file_test.cpp32 std::vector<Symbol> symbols; in TEST() local
34 symbols.emplace_back(symbol->name, symbol->addr, symbol->size); in TEST()
37 ASSERT_EQ(12435u, symbols.size()); in TEST()
38 auto it = std::find_if(symbols.begin(), symbols.end(), in TEST()
40 ASSERT_NE(it, symbols.end()); in TEST()
Dread_symbol_map.cpp66 void ReadSymbol(std::string_view content, std::vector<Symbol>* symbols) { in ReadSymbol() argument
87 symbols->emplace_back(name, addr.value(), size.value()); in ReadSymbol()
93 std::vector<Symbol> symbols; in ReadSymbolMapFromString() local
99 ReadSymbol({content.c_str() + begin, content.size() - begin}, &symbols); in ReadSymbolMapFromString()
100 std::sort(symbols.begin(), symbols.end(), Symbol::CompareValueByAddr); in ReadSymbolMapFromString()
101 return symbols; in ReadSymbolMapFromString()
104 ReadSymbol({content.c_str() + begin, end - begin}, &symbols); in ReadSymbolMapFromString()
Ddso.cpp416 void Dso::SetSymbols(std::vector<Symbol>* symbols) { in SetSymbols() argument
417 symbols_ = std::move(*symbols); in SetSymbols()
418 symbols->clear(); in SetSymbols()
444 std::vector<Symbol> symbols = LoadSymbolsImpl(); in LoadSymbols() local
446 symbols_ = std::move(symbols); in LoadSymbols()
449 std::set_union(symbols_.begin(), symbols_.end(), symbols.begin(), symbols.end(), in LoadSymbols()
473 static void SortAndFixSymbols(std::vector<Symbol>& symbols) { in SortAndFixSymbols() argument
474 std::sort(symbols.begin(), symbols.end(), Symbol::CompareValueByAddr); in SortAndFixSymbols()
476 for (auto& symbol : symbols) { in SortAndFixSymbols()
503 std::vector<Symbol> symbols; in LoadSymbolsImpl() local
[all …]
Drecord_file_test.cpp202 files[0].symbols.emplace_back("dex_symbol", 0x1001, 0x1002); in TEST_F()
213 files[2].symbols.emplace_back("kernel_module_symbol", 0x3001, 0x3002); in TEST_F()
240 if (!expected_file.symbols.empty()) { in TEST_F()
241 ASSERT_EQ(file.symbols.size(), expected_file.symbols.size()); in TEST_F()
242 for (size_t i = 0; i < file.symbols.size(); i++) { in TEST_F()
243 ASSERT_TRUE(check_symbol(file.symbols[i], expected_file.symbols[i])); in TEST_F()
246 ASSERT_EQ(file.symbols.size(), expected_file.symbol_ptrs.size()); in TEST_F()
247 for (size_t i = 0; i < file.symbols.size(); i++) { in TEST_F()
248 ASSERT_TRUE(check_symbol(file.symbols[i], *expected_file.symbol_ptrs[i])); in TEST_F()
DJITDebugReader.h115 std::vector<Symbol> symbols; member
129 std::vector<Symbol> symbols) in JITDebugInfo()
137 symbols(std::move(symbols)) {} in JITDebugInfo()
DJITDebugReader.cpp725 std::vector<Symbol> symbols; in ReadDexFileDebugInfo() local
740 symbols = ReadDexFileSymbolsInMemory(process, dex_entry.symfile_addr, dex_entry.symfile_size); in ReadDexFileDebugInfo()
745 dex_file_map, std::move(symbols)); in ReadDexFileDebugInfo()
754 std::vector<Symbol> symbols; in ReadDexFileSymbolsInMemory() local
759 return symbols; in ReadDexFileSymbolsInMemory()
763 symbols.emplace_back(symbol->name, symbol->addr, symbol->size); in ReadDexFileSymbolsInMemory()
769 return symbols; in ReadDexFileSymbolsInMemory()
771 std::sort(symbols.begin(), symbols.end(), Symbol::CompareValueByAddr); in ReadDexFileSymbolsInMemory()
772 return symbols; in ReadDexFileSymbolsInMemory()
DJITDebugReader_test.cpp93 ASSERT_EQ(info.symbols.size(), 12435); in TEST()
96 for (const auto& symbol : info.symbols) { in TEST()
Dtest_util.h38 void ParseSymbol(const ElfFileSymbol& symbol, std::map<std::string, ElfFileSymbol>* symbols);
39 void CheckElfFileSymbols(const std::map<std::string, ElfFileSymbol>& symbols);
Dthread_tree_test.cpp144 auto symbols = ReadSymbolMapFromString(symbol_map); in TEST_F() local
146 thread_tree_.AddSymbolsForProcess(1, &symbols); in TEST_F()
Drecord_file.h47 std::vector<Symbol> symbols; // used for reading symbols member
58 symbols.clear(); in Clear()
/system/unwinding/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, &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/
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/extras/simpleperf/doc/
Djit_symbols.md1 # JIT symbols
5 ## Java JIT symbols
13 ## Generic JIT symbols
15 Simpleperf supports picking up symbols from per-pid symbol map files, somewhat similar to what
52 Current implementation gets confused if memory pages where JIT symbols reside are reused by mapping
56 then allocated for JIT symbols - simpleperf will report symbols from `libfoo.so` instead.
Dandroid_platform_profiling.md25 4. Since Android >= O has symbols for system libraries on device, we don't need to use unstripped
26 binaries in `$ANDROID_PRODUCT_OUT/symbols` to report call graphs. However, they are needed to add
33 # Collect unstripped binaries from $ANDROID_PRODUCT_OUT/symbols to binary_cache/.
34 $ ./binary_cache_builder.py -lib $ANDROID_PRODUCT_OUT/symbols
Dandroid_application_profiling.md87 results may contain unknown symbols or broken callgraphs. To fix this, we can pass app_profiler.py
158 are a lot of unknown symbols in the report, check [here](README.md#how-to-solve-missing-symbols-in-…
242 ## Deobfuscate Java symbols
244 Java symbols may be obfuscated by ProGuard. To restore the original symbols in a report, we can
Dview_the_profile.md39 This will print some debug logs about Failed to read symbols: this is usually OK, unless those
40 symbols are hotspots.
268 This will print some debug logs about Failed to read symbols: this is usually OK, unless those
269 symbols are hotspots.
335 # Report symbols in table format.
/system/extras/simpleperf/runtest/
Druntest.py405 symbols = []
424 symbols.append(cur_symbol)
432 symbols.append(cur_symbol)
474 return symbols
477 symbols = self._read_report_file(report_file, has_callgraph)
478 if not self._check_symbol_overhead_requirements(test, symbols):
481 if not self._check_symbol_children_overhead_requirements(test, symbols):
483 if not self._check_symbol_relation_requirements(test, symbols):
487 def _check_symbol_overhead_requirements(self, test, symbols): argument
491 for symbol in symbols:
[all …]
/system/extras/simpleperf/scripts/purgatorio/
DREADME.md39symbols" messages, and backtraces in the diagram don't show the symbols you're interested into, yo…
41 python3 purgatorio.py camera_warm_launch.data -u [symbols cache]
67 …lines filters the contents of the flame graph to the selected threads or symbols. Multiple lines c…
/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.py200 symbols = []
201 symbols.append(lib.GetSymbolOfCurrentSample())
204 symbols.append(callchain.entries[i].symbol)
205 for symbol in symbols:
240 symbols = []
241 symbols.append(lib.GetSymbolOfCurrentSample())
244 symbols.append(callchain.entries[i].symbol)
256 for j, symbol in enumerate(symbols):
Dbinary_cache_builder.py281 symbols = [lib.GetSymbolOfCurrentSample()]
284 symbols.append(callchain.entries[i].symbol)
286 for symbol in symbols:
/system/core/libutils/
DAndroid.bp192 // AFDO affects weak symbols.
193 diff_flags: ["-allow-adding-removing-weak-symbols"],
200 // AFDO affects weak symbols.
201 diff_flags: ["-allow-adding-removing-weak-symbols"],
/system/testing/gtest_extras/gtest_isolated/
DAndroid.bp53 // functions without getting duplicate symbols.
77 // functions without getting duplicate symbols.

123