Lines Matching refs:symbols
362 void Dso::SetSymbols(std::vector<Symbol>* symbols) { in SetSymbols() argument
363 symbols_ = std::move(*symbols); in SetSymbols()
364 symbols->clear(); in SetSymbols()
386 std::vector<Symbol> symbols = LoadSymbols(); in Load() local
388 symbols_ = std::move(symbols); in Load()
391 std::set_union(symbols_.begin(), symbols_.end(), symbols.begin(), symbols.end(), in Load()
414 static void SortAndFixSymbols(std::vector<Symbol>& symbols) { in SortAndFixSymbols() argument
415 std::sort(symbols.begin(), symbols.end(), Symbol::CompareValueByAddr); in SortAndFixSymbols()
417 for (auto& symbol : symbols) { in SortAndFixSymbols()
448 std::vector<Symbol> symbols; in LoadSymbols() local
468 return symbols; in LoadSymbols()
472 symbols.emplace_back(symbol.name, symbol.offset, symbol.len); in LoadSymbols()
474 SortAndFixSymbols(symbols); in LoadSymbols()
475 return symbols; in LoadSymbols()
558 std::vector<Symbol> symbols; in LoadSymbols() local
562 symbols.emplace_back(symbol.name, symbol.vaddr, symbol.len); in LoadSymbols()
572 SortAndFixSymbols(symbols); in LoadSymbols()
573 return symbols; in LoadSymbols()
595 std::vector<Symbol> symbols; in LoadSymbols() local
600 symbols.emplace_back(symbol.name, symbol.vaddr, symbol.len); in LoadSymbols()
610 symbols = ReadSymbolsFromKallsyms(kallsyms_); in LoadSymbols()
627 symbols = ReadSymbolsFromKallsyms(kallsyms); in LoadSymbols()
631 SortAndFixSymbols(symbols); in LoadSymbols()
632 if (!symbols.empty()) { in LoadSymbols()
633 symbols.back().len = std::numeric_limits<uint64_t>::max() - symbols.back().addr; in LoadSymbols()
635 return symbols; in LoadSymbols()
640 std::vector<Symbol> symbols; in ReadSymbolsFromKallsyms() local
643 symbols.emplace_back(symbol.name, symbol.addr, 0); in ReadSymbolsFromKallsyms()
648 if (symbols.empty()) { in ReadSymbolsFromKallsyms()
652 return symbols; in ReadSymbolsFromKallsyms()
667 std::vector<Symbol> symbols; in LoadSymbols() local
671 symbols.emplace_back(symbol.name, symbol.vaddr, symbol.len); in LoadSymbols()
681 SortAndFixSymbols(symbols); in LoadSymbols()
682 return symbols; in LoadSymbols()