Home
last modified time | relevance | path

Searched refs:Symbol (Results 1 – 25 of 32) sorted by relevance

12

/system/extras/simpleperf/
Ddso.h59 struct Symbol { struct
64 Symbol(std::string_view name, uint64_t addr, uint64_t len); argument
82 static bool CompareByDumpId(const Symbol* s1, const Symbol* s2) { in CompareByDumpId() argument
90 static bool CompareByAddr(const Symbol* s1, const Symbol* s2) { return s1->addr < s2->addr; } in CompareByAddr() argument
92 static bool CompareValueByAddr(const Symbol& s1, const Symbol& s2) { return s1.addr < s2.addr; } in CompareValueByAddr() argument
171 uint32_t CreateSymbolDumpId(const Symbol* symbol);
185 const Symbol* FindSymbol(uint64_t vaddr_in_dso);
187 const std::vector<Symbol>& GetSymbols() const { return symbols_; } in GetSymbols()
188 void SetSymbols(std::vector<Symbol>* symbols);
208 virtual std::vector<Symbol> LoadSymbolsImpl() = 0;
[all …]
Ddso.cpp212 Symbol::Symbol(std::string_view name, uint64_t addr, uint64_t len) in Symbol() function in simpleperf::Symbol
219 const char* Symbol::DemangledName() const { in DemangledName()
227 void Symbol::SetDemangledName(std::string_view name) const { in SetDemangledName()
235 std::string_view Symbol::FunctionName() const { in FunctionName()
249 static bool CompareSymbolToAddr(const Symbol& s, uint64_t addr) { in CompareSymbolToAddr()
253 static bool CompareAddrToSymbol(uint64_t addr, const Symbol& s) { in CompareAddrToSymbol()
386 uint32_t Dso::CreateSymbolDumpId(const Symbol* symbol) { in CreateSymbolDumpId()
396 const Symbol* Dso::FindSymbol(uint64_t vaddr_in_dso) { in FindSymbol()
416 void Dso::SetSymbols(std::vector<Symbol>* symbols) { in SetSymbols()
422 unknown_symbols_.insert(std::make_pair(vaddr_in_dso, Symbol(name, vaddr_in_dso, 1))); in AddUnknownSymbol()
[all …]
Dread_symbol_map.cpp66 void ReadSymbol(std::string_view content, std::vector<Symbol>* symbols) { in ReadSymbol()
91 std::vector<Symbol> ReadSymbolMapFromString(const std::string& content) { in ReadSymbolMapFromString()
92 std::vector<Symbol> symbols; in ReadSymbolMapFromString()
99 std::sort(symbols.begin(), symbols.end(), Symbol::CompareValueByAddr); in ReadSymbolMapFromString()
Dreport_utils_test.cpp83 Symbol("native_func1", 0x0, 0x100), in SetUp()
84 Symbol("art_jni_trampoline", 0x100, 0x100), in SetUp()
91 Symbol("art_func1", 0x0, 0x100), in SetUp()
92 Symbol("art_func2", 0x100, 0x100), in SetUp()
93 Symbol("_ZN3artL13Method_invokeEP7_JNIEnvP8_jobjectS3_P13_jobjectArray", 0x200, 0x100), in SetUp()
94 Symbol("art_quick_generic_jni_trampoline", 0x300, 0x100), in SetUp()
100 Symbol("java_method1", 0x0, 0x100), in SetUp()
101 Symbol("java_method2", 0x100, 0x100), in SetUp()
102 Symbol("obfuscated_class.obfuscated_java_method", 0x200, 0x100), in SetUp()
108 Symbol("java_method2", 0x3000, 0x100), in SetUp()
[all …]
Dthread_tree.h116 void AddSymbolsForProcess(int pid, std::vector<Symbol>* symbols);
121 const Symbol* FindSymbol(const MapEntry* map, uint64_t ip, uint64_t* pvaddr_in_file,
123 const Symbol* FindKernelSymbol(uint64_t ip);
125 const Symbol* UnknownSymbol() const { return &unknown_symbol_; } in UnknownSymbol()
130 unknown_symbol_ = Symbol("*unknown", 0, ULLONG_MAX); in ShowMarkForUnknownSymbol()
170 Symbol unknown_symbol_;
Dread_symbol_map.h28 std::vector<Symbol> ReadSymbolMapFromString(const std::string& content);
30 inline std::vector<Symbol> ReadSymbolMapFromFile(const std::string& path) { in ReadSymbolMapFromFile()
Dread_dex_file_test.cpp31 std::vector<Symbol> symbols; in TEST()
38 [](const Symbol& symbol) { return symbol.addr == 0x6c77e; }); in TEST()
Ddso_test.cpp158 const Symbol* symbol = dso->FindSymbol(0x6c77e); in TEST()
200 const Symbol* symbol = dso->FindSymbol(0x9a4); in TEST()
232 const Symbol* symbol = dso->FindSymbol(0x400510); in TEST()
287 std::vector<Symbol> kernel_symbols; in TEST()
290 std::vector<Symbol> module_symbols; in TEST()
314 Symbol symbol = Symbol("void ctep.v(cteo, ctgc, ctbn)", 0x0, 0x1); in TEST()
316 symbol = Symbol("ctep.v(cteo, ctgc, ctbn)", 0x0, 0x1); in TEST()
318 symbol = Symbol("ctep.v", 0x0, 0x1); in TEST()
364 std::vector<Symbol> symbols; in TEST()
Dreport_utils.h86 const Symbol* symbol = nullptr;
111 const Symbol* symbol;
112 JavaMethod(Dso* dso, const Symbol* symbol) : dso(dso), symbol(symbol) {} in JavaMethod()
Drecord_file.proto38 message Symbol { message
43 repeated Symbol symbol = 4;
Drecord_file_writer.cpp344 const std::vector<Symbol>& symbols = dso->GetSymbols(); in WriteFileFeatures()
350 std::sort(file.symbol_ptrs.begin(), file.symbol_ptrs.end(), Symbol::CompareByAddr); in WriteFileFeatures()
367 auto write_symbol = [&](const Symbol& symbol) { in WriteFileFeature()
368 proto::FileFeature::Symbol* proto_symbol = proto_file.add_symbol(); in WriteFileFeature()
379 for (const Symbol& symbol : file.symbols) { in WriteFileFeature()
382 for (const Symbol* symbol_ptr : file.symbol_ptrs) { in WriteFileFeature()
Drecord_file_test.cpp201 Symbol symbol("elf_symbol", 0x2001, 0x2002); in TEST_F()
223 auto check_symbol = [](const Symbol& sym1, const Symbol& sym2) { in TEST_F()
Dthread_tree.cpp220 void ThreadTree::AddSymbolsForProcess(int pid, std::vector<Symbol>* symbols) { in AddSymbolsForProcess()
311 const Symbol* ThreadTree::FindSymbol(const MapEntry* map, uint64_t ip, uint64_t* pvaddr_in_file, in FindSymbol()
314 const Symbol* symbol = nullptr; in FindSymbol()
351 const Symbol* ThreadTree::FindKernelSymbol(uint64_t ip) { in FindKernelSymbol()
Drecord_file.h47 std::vector<Symbol> symbols; // used for reading symbols
48 std::vector<const Symbol*> symbol_ptrs; // used for writing symbols
Dcmd_report.cpp58 const Symbol* symbol;
76 const Symbol* symbol;
87 int cpu, const ThreadEntry* thread, const MapEntry* map, const Symbol* symbol, in SampleEntry()
181 const Symbol* symbol = thread_tree_->FindSymbol(map, r.ip_data.ip, &vaddr_in_file); in CreateSample()
196 const Symbol* from_symbol = thread_tree_->FindSymbol(from_map, item.from, &from_vaddr_in_file); in CreateBranchSample()
199 const Symbol* to_symbol = thread_tree_->FindSymbol(to_map, item.to, &to_vaddr_in_file); in CreateBranchSample()
221 const Symbol* symbol = thread_tree_->FindSymbol(map, ip, &vaddr_in_file); in CreateCallChainSample()
Dcmd_kmem.cpp36 const Symbol* symbol; // the function making allocation
46 SlabSample(const Symbol* symbol, uint64_t ptr, uint64_t bytes_req, uint64_t bytes_alloc, in SlabSample()
172 const Symbol* symbol = thread_tree_->FindKernelSymbol(call_site); in CreateSample()
209 const Symbol* symbol = thread_tree_->FindKernelSymbol(ip); in CreateCallChainSample()
Dthread_tree_test.cpp69 const Symbol* FindSymbol(int pid, int tid, uint64_t ip, bool in_kernel = false) { in FindSymbol()
Dcmd_record_test.cpp360 const std::function<bool(const Symbol&, uint32_t)>& callback) { in ProcessSymbolsInPerfDataFile() argument
379 auto callback = [&](const Symbol&, uint32_t) { in CheckDumpedSymbols() argument
415 auto callback = [&](const Symbol&, uint32_t file_type) { in TEST() argument
735 auto callback = [&](const Symbol& symbol, uint32_t) { in CheckData()
913 const Symbol* symbol = thread_tree.FindSymbol(map, ip, nullptr, nullptr); in TEST()
Dcmd_report_sample.cpp822 const std::vector<Symbol>& symbols = dso->GetSymbols(); in PrintFileInfoInProtobuf()
823 std::vector<const Symbol*> dump_symbols; in PrintFileInfoInProtobuf()
829 std::sort(dump_symbols.begin(), dump_symbols.end(), Symbol::CompareByDumpId); in PrintFileInfoInProtobuf()
Dcmd_merge.cpp97 std::map<uint64_t, Symbol> symbol_map_;
Dreport_utils.cpp223 const Symbol* symbol = thread_tree_.FindSymbol(map, ips[i], &vaddr_in_file, &dso); in Build()
Dcmd_monitor.cpp66 const Symbol* symbol;
/system/extras/simpleperf/doc/
Djit_symbols.md18 ### Symbol map file location for application
25 ### Symbol map file location for standalone program
31 ### Symbol map file format
33 Symbol map file is a text file.
/system/extras/simpleperf/runtest/
Druntest.py56 class Symbol(object): class
423 cur_symbol = Symbol(symbol_name, comm, overhead, children_overhead)
431 cur_symbol = Symbol(symbol_name, comm, overhead, 0)
/system/chre/build/sys_support/qcom/
Duimage_v2.lcs53 /* Dynamic Symbol Table section */

12