• Home
  • Raw
  • Download

Lines Matching refs:frame

128   std::string frame;  in DumpFrames()  local
130 frame += " " + backtrace->FormatFrameData(i) + '\n'; in DumpFrames()
132 return frame; in DumpFrames()
282 for (const auto& frame : *backtrace ) { in TEST_F()
283 if (BacktraceMap::IsValid(frame.map)) { in TEST_F()
284 const std::string name = basename(frame.map.name.c_str()); in TEST_F()
303 for (const auto& frame : *backtrace) { in TEST_F()
304 if (BacktraceMap::IsValid(frame.map)) { in TEST_F()
305 const std::string name = basename(frame.map.name.c_str()); in TEST_F()
314 first_frame_non_backtrace_lib = frame.num; in TEST_F()
825 backtrace_frame_data_t frame; in TEST_F() local
826 frame.num = 1; in TEST_F()
827 frame.pc = 2; in TEST_F()
828 frame.rel_pc = 2; in TEST_F()
829 frame.sp = 0; in TEST_F()
830 frame.stack_size = 0; in TEST_F()
831 frame.func_offset = 0; in TEST_F()
834 frame.num = 1; in TEST_F()
840 backtrace->FormatFrameData(&frame)); in TEST_F()
843 frame.pc = 0xb0020; in TEST_F()
844 frame.rel_pc = 0x20; in TEST_F()
845 frame.map.start = 0xb0000; in TEST_F()
846 frame.map.end = 0xbffff; in TEST_F()
847 frame.map.load_bias = 0; in TEST_F()
853 backtrace->FormatFrameData(&frame)); in TEST_F()
856 frame.pc = 0xc0020; in TEST_F()
857 frame.map.start = 0xc0000; in TEST_F()
858 frame.map.end = 0xcffff; in TEST_F()
859 frame.map.load_bias = 0; in TEST_F()
860 frame.map.name = "[anon:thread signal stack]"; in TEST_F()
866 backtrace->FormatFrameData(&frame)); in TEST_F()
869 frame.pc = 0x12345679; in TEST_F()
870 frame.rel_pc = 0x12345678; in TEST_F()
871 frame.map.name = "MapFake"; in TEST_F()
872 frame.map.start = 1; in TEST_F()
873 frame.map.end = 1; in TEST_F()
879 backtrace->FormatFrameData(&frame)); in TEST_F()
882 frame.func_name = "ProcFake"; in TEST_F()
888 backtrace->FormatFrameData(&frame)); in TEST_F()
891 frame.func_offset = 645; in TEST_F()
897 backtrace->FormatFrameData(&frame)); in TEST_F()
900 frame.rel_pc = 0x123456dc; in TEST_F()
901 frame.func_offset = 645; in TEST_F()
902 frame.map.load_bias = 100; in TEST_F()
908 backtrace->FormatFrameData(&frame)); in TEST_F()
911 frame.map.offset = 0x1000; in TEST_F()
917 backtrace->FormatFrameData(&frame)); in TEST_F()
1630 const backtrace_frame_data_t* frame = backtrace->GetFrame(0); in UnwindFromDevice() local
1631 ASSERT_EQ(device_map_uint, frame->pc); in UnwindFromDevice()
1632 ASSERT_EQ(reinterpret_cast<uint64_t>(&ucontext), frame->sp); in UnwindFromDevice()
1649 frame = backtrace->GetFrame(0); in UnwindFromDevice()
1650 ASSERT_EQ(cur_func_offset, frame->pc); in UnwindFromDevice()
1651 ASSERT_EQ(device_map_uint, frame->sp); in UnwindFromDevice()
1802 size_t frame = 0; in UnwindThroughSignal() local
1805 frame = names.size() + 1; in UnwindThroughSignal()
1809 ASSERT_NE(0U, frame) << "Unable to find test_level_four in backtrace" << std::endl in UnwindThroughSignal()
1821 ASSERT_LE(frame + 2, names.size()) << DumpFrames(backtrace.get()); in UnwindThroughSignal()
1822 ASSERT_LE(2U, frame) << DumpFrames(backtrace.get()); in UnwindThroughSignal()
1828 ASSERT_EQ("test_level_three", names[frame]) << DumpFrames(backtrace.get()); in UnwindThroughSignal()
1829 ASSERT_EQ("test_level_two", names[frame + 1]) << DumpFrames(backtrace.get()); in UnwindThroughSignal()
1830 ASSERT_EQ("test_level_one", names[frame + 2]) << DumpFrames(backtrace.get()); in UnwindThroughSignal()