Lines Matching refs:info
53 void DoChecks(dl_phdr_info* info, size_t s) { in TEST()
56 ASSERT_TRUE(info->dlpi_name != nullptr); in TEST()
59 ASSERT_NE(nullptr, info->dlpi_phdr); in TEST()
60 ASSERT_NE(0, info->dlpi_phnum); in TEST()
64 for (ElfW(Half) i = 0; i < info->dlpi_phnum; ++i) { in TEST()
65 const ElfW(Phdr)* phdr = reinterpret_cast<const ElfW(Phdr)*>(&info->dlpi_phdr[i]); in TEST()
67 const ElfW(Ehdr)* ehdr = reinterpret_cast<const ElfW(Ehdr)*>(info->dlpi_addr + in TEST()
72 ASSERT_EQ(info->dlpi_phnum, ehdr->e_phnum); in TEST()
93 auto callback = [](dl_phdr_info* info, size_t size, void* data) { in TEST() argument
98 counters.adds = info->dlpi_adds; in TEST()
99 counters.subs = info->dlpi_subs; in TEST()
102 EXPECT_EQ(counters.adds, info->dlpi_adds); in TEST()
103 EXPECT_EQ(counters.subs, info->dlpi_subs); in TEST()
196 void AddModule(dl_phdr_info* info, size_t s) { in TEST()
198 ASSERT_TRUE(dl_iter_mods.find(info->dlpi_addr) == dl_iter_mods.end()); in TEST()
199 ASSERT_TRUE(info->dlpi_name != nullptr); in TEST()
200 dl_iter_mods[info->dlpi_addr] = { in TEST()
201 .name = info->dlpi_name, in TEST()
202 .dynamic = find_dynamic({ info->dlpi_phdr, info->dlpi_phnum }, info->dlpi_addr) in TEST()
217 const DlIterateInfo& info = it->second; in TEST() local
218 ASSERT_EQ(info.name, map->l_name); in TEST()
219 ASSERT_EQ(info.dynamic, map->l_ld); in TEST()