• Home
  • Raw
  • Download

Lines Matching refs:map

226     if (BacktraceMap::IsValid(frame.map)) {  in TEST()
227 const std::string name = basename(frame.map.name.c_str()); in TEST()
310 std::unique_ptr<BacktraceMap> map; in VerifyProcTest() local
312 map.reset(BacktraceMap::Create(pid)); in VerifyProcTest()
314 std::unique_ptr<Backtrace> backtrace(Backtrace::Create(pid, tid, map.get())); in VerifyProcTest()
741 backtrace_map_t map; in TEST() local
743 map.start = 1; in TEST()
744 map.end = 3; in TEST()
745 map.flags = 1; in TEST()
746 map.name = "Initialized"; in TEST()
747 back_map->FillIn(0, &map); in TEST()
750 ASSERT_FALSE(BacktraceMap::IsValid(map)); in TEST()
751 ASSERT_EQ(static_cast<uintptr_t>(0), map.start); in TEST()
752 ASSERT_EQ(static_cast<uintptr_t>(0), map.end); in TEST()
753 ASSERT_EQ(0, map.flags); in TEST()
754 ASSERT_EQ("", map.name); in TEST()
778 frame.map.start = 1; in TEST()
779 frame.map.end = 1; in TEST()
780 frame.map.load_base = 0; in TEST()
791 frame.map.name = "MapFake"; in TEST()
792 frame.map.start = 1; in TEST()
793 frame.map.end = 1; in TEST()
821 frame.map.load_base = 100; in TEST()
830 frame.map.offset = 0x1000; in TEST()
856 map_test_t map; in VerifyMap() local
857 ASSERT_EQ(2, sscanf(buffer, "%" SCNxPTR "-%" SCNxPTR " ", &map.start, &map.end)); in VerifyMap()
858 test_maps.push_back(map); in VerifyMap()
863 std::unique_ptr<BacktraceMap> map(BacktraceMap::Create(pid)); in VerifyMap() local
867 for (BacktraceMap::const_iterator it = map->begin(); it != map->end(); ++it) { in VerifyMap()
1146 void* map = mmap(NULL, map_size, PROT_READ, MAP_PRIVATE, fd, 0); in TEST() local
1147 ASSERT_TRUE(map != MAP_FAILED); in TEST()
1160 map_size += reinterpret_cast<uintptr_t>(map); in TEST()
1162 for (uintptr_t read_addr = reinterpret_cast<uintptr_t>(map); in TEST()
1172 ASSERT_TRUE(munmap(map, map_size - reinterpret_cast<uintptr_t>(map)) == 0); in TEST()
1196 void* map = mmap(NULL, map_size, PROT_READ, MAP_PRIVATE, fd, 0); in TEST() local
1197 if (map == MAP_FAILED) { in TEST()
1208 g_addr = reinterpret_cast<uintptr_t>(map); in TEST()
1264 backtrace_map_t map; in FindFuncFrameInBacktrace() local
1265 backtrace->FillInMap(test_func, &map); in FindFuncFrameInBacktrace()
1266 if (!BacktraceMap::IsValid(map)) { in FindFuncFrameInBacktrace()
1273 if (BacktraceMap::IsValid(it->map) && map.start == it->map.start && in FindFuncFrameInBacktrace()