Home
last modified time | relevance | path

Searched refs:symbol (Results 1 – 25 of 52) sorted by relevance

123

/system/extras/simpleperf/runtest/
Druntest.conf6 <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 …]
Druntest.py101 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:
494 for symbol in symbols:
497 if req.is_match(symbol):
499 matched_overhead[i] += symbol.overhead
509 symbol, req, test)
[all …]
/system/extras/simpleperf/
Ddso.cpp309 uint32_t Dso::CreateSymbolDumpId(const Symbol* symbol) { in CreateSymbolDumpId() argument
310 CHECK(!symbol->HasDumpId()); in CreateSymbolDumpId()
311 symbol->dump_id_ = symbol_dump_id_++; in CreateSymbolDumpId()
312 return symbol->dump_id_; in CreateSymbolDumpId()
393 for (auto& symbol : symbols) { in SortAndFixSymbols() local
395 prev_symbol->len = symbol.addr - prev_symbol->addr; in SortAndFixSymbols()
397 prev_symbol = &symbol; in SortAndFixSymbols()
447 for (auto& symbol : dex_file_symbols) { in LoadSymbols() local
448 symbols.emplace_back(symbol.name, symbol.offset, symbol.len); in LoadSymbols()
544 auto symbol_callback = [&](const ElfFileSymbol& symbol) { in LoadSymbols() argument
[all …]
Ddso_test.cpp95 const Symbol* symbol = dso->FindSymbol(0x6c77e); in TEST() local
96 ASSERT_NE(symbol, nullptr); in TEST()
97 ASSERT_EQ(symbol->addr, static_cast<uint64_t>(0x6c77e)); in TEST()
98 ASSERT_EQ(symbol->len, static_cast<uint64_t>(0x16)); in TEST()
99 ASSERT_STREQ(symbol->DemangledName(), in TEST()
137 const Symbol* symbol = dso->FindSymbol(0x9a4); in TEST() local
138 ASSERT_TRUE(symbol != nullptr); in TEST()
139 ASSERT_STREQ(symbol->Name(), "Java_com_example_hellojni_HelloJni_callFunc1"); in TEST()
Dread_elf.cpp277 ElfFileSymbol symbol; in ReadSymbolTable() local
290 symbol.is_in_text_section = true; in ReadSymbolTable()
299 symbol.name = symbol_name_or_err.get(); in ReadSymbolTable()
300 symbol.vaddr = symbol_ref->getValue(); in ReadSymbolTable()
301 if ((symbol.vaddr & 1) != 0 && is_arm) { in ReadSymbolTable()
303 symbol.vaddr &= ~1; in ReadSymbolTable()
305 symbol.len = symbol_ref->getSize(); in ReadSymbolTable()
308 symbol.is_func = true; in ReadSymbolTable()
310 if (symbol.is_in_text_section) { in ReadSymbolTable()
311 symbol.is_label = true; in ReadSymbolTable()
[all …]
DJITDebugReader.cpp354 auto callback = [&](const ElfFileSymbol& symbol) { in GetDescriptorsLocation() argument
355 if (symbol.name == jit_str) { in GetDescriptorsLocation()
356 jit_addr = symbol.vaddr - min_vaddr_in_file; in GetDescriptorsLocation()
357 } else if (symbol.name == dex_str) { in GetDescriptorsLocation()
358 dex_addr = symbol.vaddr - min_vaddr_in_file; in GetDescriptorsLocation()
504 auto callback = [&](const ElfFileSymbol& symbol) { in ReadJITCodeDebugInfo() argument
505 min_addr = std::min(min_addr, symbol.vaddr); in ReadJITCodeDebugInfo()
506 max_addr = std::max(max_addr, symbol.vaddr + symbol.len); in ReadJITCodeDebugInfo()
507 LOG(VERBOSE) << "JITSymbol " << symbol.name << " at [" << std::hex << symbol.vaddr in ReadJITCodeDebugInfo()
508 << " - " << (symbol.vaddr + symbol.len) << " with size " << symbol.len; in ReadJITCodeDebugInfo()
Dreport_lib_interface.cpp85 SymbolEntry symbol; member
331 const Symbol* symbol = thread_tree_.FindSymbol(map, ip, &vaddr_in_file); in SetCurrentSample() local
334 entry.symbol.dso_name = map->dso->Path().c_str(); in SetCurrentSample()
335 entry.symbol.vaddr_in_file = vaddr_in_file; in SetCurrentSample()
336 entry.symbol.symbol_name = symbol->DemangledName(); in SetCurrentSample()
337 entry.symbol.symbol_addr = symbol->addr; in SetCurrentSample()
338 entry.symbol.symbol_len = symbol->len; in SetCurrentSample()
339 entry.symbol.mapping = AddMapping(*map); in SetCurrentSample()
343 current_symbol_ = &(callchain_entries_[0].symbol); in SetCurrentSample()
Dcmd_dumprecord.cpp174 const Symbol* symbol = thread_tree.FindSymbol(map, ip, &vaddr_in_file, &dso); in DumpDataSection() local
176 symbol_name = symbol->DemangledName(); in DumpDataSection()
259 for (const auto& symbol : symbols) { in DumpFeatureSection() local
260 PrintIndented(3, "%s [0x%" PRIx64 "-0x%" PRIx64 "]\n", symbol.DemangledName(), in DumpFeatureSection()
261 symbol.addr, symbol.addr + symbol.len); in DumpFeatureSection()
Dthread_tree.cpp218 const Symbol* symbol = nullptr; in FindSymbol() local
225 symbol = dso->FindSymbol(vaddr_in_file); in FindSymbol()
226 if (symbol == nullptr && dso->type() == DSO_KERNEL_MODULE) { in FindSymbol()
231 symbol = dso->FindSymbol(vaddr_in_file); in FindSymbol()
234 if (symbol == nullptr) { in FindSymbol()
240 symbol = dso->FindSymbol(vaddr_in_file); in FindSymbol()
241 CHECK(symbol != nullptr); in FindSymbol()
243 symbol = &unknown_symbol_; in FindSymbol()
252 return symbol; in FindSymbol()
Dcmd_report_sample.cpp68 const Symbol* symbol; member
371 FprintIndented(report_fp_, 1, "symbol: %s\n", file.symbol(i).c_str()); in DumpProtobufReport()
549 if (node.symbol != thread_tree_.UnknownSymbol()) { in PrintSampleRecordInProtobuf()
550 if (!node.symbol->GetDumpId(reinterpret_cast<uint32_t*>(&symbol_id))) { in PrintSampleRecordInProtobuf()
551 symbol_id = node.dso->CreateSymbolDumpId(node.symbol); in PrintSampleRecordInProtobuf()
564 (strcmp(node.symbol->Name(), "__libc_init") == 0 || in PrintSampleRecordInProtobuf()
565 strcmp(node.symbol->Name(), "__start_thread") == 0)) { in PrintSampleRecordInProtobuf()
589 entry->symbol = thread_tree_.FindSymbol(map, ip, &(entry->vaddr_in_file), &(entry->dso)); in GetCallEntry()
591 if (entry->symbol == thread_tree_.UnknownSymbol()) { in GetCallEntry()
636 std::string* symbol = file->add_symbol(); in PrintFileInfoInProtobuf() local
[all …]
Dutils.cpp353 KernelSymbol symbol; in ProcessKernelSymbols() local
354 int ret = sscanf(p, "%" PRIx64 " %c %s%s", &symbol.addr, &symbol.type, name, module); in ProcessKernelSymbols()
362 symbol.name = name; in ProcessKernelSymbols()
366 symbol.module = &module[1]; in ProcessKernelSymbols()
368 symbol.module = nullptr; in ProcessKernelSymbols()
371 if (callback(symbol)) { in ProcessKernelSymbols()
Dreport_sample.proto33 // 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.
Drecord_file_writer.cpp339 for (const auto& symbol : symbols) { in WriteFileFeature() local
340 size += strlen(symbol->Name()) + 1; in WriteFileFeature()
356 for (const auto& symbol : symbols) { in WriteFileFeature() local
357 MoveToBinaryFormat(symbol->addr, p); in WriteFileFeature()
358 uint32_t len = symbol->len; in WriteFileFeature()
360 MoveToBinaryFormat(symbol->Name(), strlen(symbol->Name()) + 1, p); in WriteFileFeature()
/system/extras/perfprofd/
Dperf_data_converter.cc116 std::string symbol = symbolizer->Decode(dso_name, file_addr); in AddSymbolInfo() local
117 if (symbol.empty()) { in AddSymbolInfo()
121 dso_data->symbols.Insert(symbol, file_addr); in AddSymbolInfo()
151 auto* symbol = symbol_info->add_symbols(); in AddSymbolInfo() local
152 symbol->set_addr(*aggr_sym.second.offsets.begin()); in AddSymbolInfo()
153 symbol->set_size(*aggr_sym.second.offsets.rbegin() - *aggr_sym.second.offsets.begin() + 1); in AddSymbolInfo()
154 symbol->set_name(aggr_sym.second.symbol); in AddSymbolInfo()
155 symbol->set_name_md5_prefix(::quipper::Md5Prefix(aggr_sym.second.symbol)); in AddSymbolInfo()
Dmap_utils.h29 SymType symbol; member
31 AggregatedSymbol(const SymType& sym, const ValType& offset) : symbol(sym) { in AggregatedSymbol()
44 if (first.symbol == sym) { in Insert()
56 if (maybe_match.symbol == sym) { in Insert()
66 if (aggr_it != map_.end() && aggr_it->second.symbol == sym) { in Insert()
78 AggregatedSymbol left(maybe_match.symbol, *maybe_match.offsets.begin()); in Insert()
90 AggregatedSymbol right(maybe_match.symbol, *offset_it); in Insert()
Dsymbolizer.cc118 for (const DexFileSymbol& symbol : symbols) { in LoadDso() local
119 vdex_data.emplace(symbol.offset, Symbol(symbol.name, symbol.len)); in LoadDso()
/system/extras/simpleperf/scripts/
Dreport_sample.py44 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))
Dannotate.py215 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 …]
Dpprof_proto_generator.py290 symbol = self.lib.GetSymbolOfCurrentSample()
300 if self._filter_symbol(symbol):
301 location_id = self.get_location_id(symbol.vaddr_in_file, symbol)
305 if self._filter_symbol(symbol):
306 location_id = self.get_location_id(entry.ip, entry.symbol)
339 def _filter_symbol(self, symbol): argument
340 if not self.dso_filter or symbol.dso_name in self.dso_filter:
372 def get_location_id(self, ip, symbol): argument
373 mapping_id = self.get_mapping_id(symbol.mapping[0], symbol.dso_name)
374 location = Location(mapping_id, ip, symbol.vaddr_in_file)
[all …]
Dreport_html.py355 def get_func_id(self, lib_id, symbol): argument
356 key = (lib_id, symbol.symbol_name)
360 function = Function(lib_id, symbol.symbol_name, func_id, symbol.symbol_addr,
361 symbol.symbol_len)
533 symbol = lib.GetSymbolOfCurrentSample()
545 lib_id = self.libs.get_lib_id(symbol.dso_name)
546 func_id = self.functions.get_func_id(lib_id, symbol)
547 callstack = [(lib_id, func_id, symbol.vaddr_in_file)]
549 symbol = callchain.entries[i].symbol
550 lib_id = self.libs.get_lib_id(symbol.dso_name)
[all …]
/system/extras/simpleperf/scripts/inferno/
Ddata_types.py36 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/netd/server/
DResolvStub.cpp48 static void resolvStubInitFunction(void* handle, const char* symbol, FunctionType** stubPtr) { in resolvStubInitFunction() argument
49 void* f = dlsym(handle, symbol); in resolvStubInitFunction()
51 ALOGE("Can't find symbol %s in %s", symbol, LIBNAME); in resolvStubInitFunction()
/system/core/libbacktrace/
Dbacktrace_offline_test.cpp162 for (const auto& symbol : function_symbols) { in TEST_F() local
165 symbol.start, symbol.end, symbol.name.c_str()); in TEST_F()
175 for (auto& symbol : symbols) { in FunctionNameForAddress() local
176 if (addr >= symbol.start && addr < symbol.end) { in FunctionNameForAddress()
177 return symbol.name; in FunctionNameForAddress()
230 FunctionSymbol& symbol = testdata->symbols.back(); in ReadOfflineTestData() local
232 sscanf(line.c_str(), "function: start: %" SCNx64 " end: %" SCNx64 " name: %n", &symbol.start, in ReadOfflineTestData()
233 &symbol.end, &pos); in ReadOfflineTestData()
234 symbol.name = line.substr(pos); in ReadOfflineTestData()
/system/extras/perfprofd/scripts/
Dperf_proto_stack.py46 import symbol
47 from symbol import SymbolInformation
53 symbol.SetAbi(["ABI: 'arm64'"])
170 path = "%s/%s" % (symbol.SYMBOLS_DIR, filename)
224 path = "%s/%s" % (symbol.SYMBOLS_DIR, filename)
333 symbol = device_symbols[name].find(offset)
334 if symbol is None:
338 return [(symbol, 0, name)]
516 symbol.SYMBOLS_DIR = args.syms[0]
/system/core/libunwindstack/
DSymbols.cpp120 std::string symbol; in GetGlobal() local
121 if (elf_memory->ReadString(str_offset, &symbol, str_end_ - str_offset) && symbol == name) { in GetGlobal()

123