Home
last modified time | relevance | path

Searched refs:sym (Results 1 – 8 of 8) sorted by relevance

/system/core/libunwindstack/tests/
DSymbolsTest.cpp47 void InitSym(TypeParam* sym, uint32_t st_value, uint32_t st_size, uint32_t st_name) { in InitSym() argument
48 memset(sym, 0, sizeof(*sym)); in InitSym()
49 sym->st_info = STT_FUNC; in InitSym()
50 sym->st_value = st_value; in InitSym()
51 sym->st_size = st_size; in InitSym()
52 sym->st_name = st_name; in InitSym()
53 sym->st_shndx = SHN_COMMON; in InitSym()
63 TypeParam sym; in TYPED_TEST_P() local
64 this->InitSym(&sym, 0x5000, 0x10, 0x40); in TYPED_TEST_P()
66 this->memory_.SetMemory(offset, &sym, sizeof(sym)); in TYPED_TEST_P()
[all …]
DElfInterfaceTest.cpp161 Sym sym = {}; in InitSym() local
162 sym.st_info = STT_FUNC; in InitSym()
163 sym.st_value = value; in InitSym()
164 sym.st_size = size; in InitSym()
165 sym.st_name = name_offset; in InitSym()
166 sym.st_shndx = SHN_COMMON; in InitSym()
168 memory_.SetMemory(offset, &sym, sizeof(sym)); in InitSym()
/system/core/libunwindstack/
DSymbols.cpp52 SymType sym; in ReadFuncInfo() local
53 if (!elf_memory->ReadFully(offset_ + symbol_index * entry_size_, &sym, sizeof(sym))) { in ReadFuncInfo()
56 if (!IsFunc(&sym)) { in ReadFuncInfo()
58 sym.st_size = 0; in ReadFuncInfo()
60 Info info{.addr = sym.st_value, .size = static_cast<uint32_t>(sym.st_size), .name = sym.st_name}; in ReadFuncInfo()
107 SymType sym; in BuildRemapTable() local
108 memcpy(&sym, &buffer[offset], sizeof(SymType)); // Copy to ensure alignment. in BuildRemapTable()
109 addrs.push_back(sym.st_value); // Always insert so it is indexable by symbol index. in BuildRemapTable()
110 if (IsFunc(&sym)) { in BuildRemapTable()
/system/bt/btcore/src/
Dhal_util.cc35 const char* sym = BLUETOOTH_INTERFACE_STRING; in hal_util_load_bt_library() local
48 itf = (bt_interface_t*)dlsym(handle, sym); in hal_util_load_bt_library()
51 << sym; in hal_util_load_bt_library()
/system/extras/simpleperf/
Dread_dex_file.cpp43 for (art_api::dex::MethodInfo& sym : file_syms) { in ReadSymbols()
44 sym.offset += offset; in ReadSymbols()
Dcmd_report_sample.cpp623 for (const auto& sym : symbols) { in PrintFileInfoInProtobuf() local
624 if (sym.HasDumpId()) { in PrintFileInfoInProtobuf()
625 dump_symbols.push_back(&sym); in PrintFileInfoInProtobuf()
631 for (const auto& sym : dump_symbols) { in PrintFileInfoInProtobuf() local
633 *symbol = sym->DemangledName(); in PrintFileInfoInProtobuf()
635 *mangled_symbol = sym->Name(); in PrintFileInfoInProtobuf()
Drecord_file_writer.cpp338 for (const auto& sym : symbols) { in WriteFileFeatures() local
339 if (sym.HasDumpId()) { in WriteFileFeatures()
340 dump_symbols.push_back(&sym); in WriteFileFeatures()
/system/libhidl/transport/
DServiceManagement.cpp390 const std::string sym = "HIDL_FETCH_" + ifaceName; in openLibs() local
413 } else if (!eachLib(handle, "SELF", sym)) { in openLibs()
439 if (!eachLib(handle, lib, sym)) { in openLibs()
450 openLibs(fqName, [&](void* handle, const std::string &lib, const std::string &sym) { in get() argument
452 *(void **)(&generator) = dlsym(handle, sym.c_str()); in get()
456 << " but could not find symbol " << sym << ": " in get()