Lines Matching refs:rec
2013 for (const auto& rec : maps) { in TEST() local
2014 if (rec.pathname == private_library_absolute_path) { in TEST()
2016 addr_start = rec.addr_start; in TEST()
2018 addr_end = rec.addr_end; in TEST()
2019 has_executable_segment = has_executable_segment || (rec.perms & PROT_EXEC) != 0; in TEST()
2021 maps_to_copy.push_back(rec); in TEST()
2037 for (auto& rec : maps_to_copy) { in TEST() local
2038 if (ns_get_dlopened_string_addr >= rec.addr_start && in TEST()
2039 ns_get_dlopened_string_addr < rec.addr_end) { in TEST()
2040 ASSERT_TRUE((rec.perms & PROT_WRITE) == 0); in TEST()
2041 rec.perms |= PROT_EXEC; in TEST()
2053 for (const auto& rec : maps_to_copy) { in TEST() local
2054 uintptr_t offset = rec.addr_start - addr_start; in TEST()
2055 size_t size = rec.addr_end - rec.addr_start; in TEST()
2060 memcpy(map, reinterpret_cast<void*>(rec.addr_start), size); in TEST()
2061 mprotect(map, size, rec.perms); in TEST()