Lines Matching refs:frame_num
201 size_t frame_num = 0; in VerifyLevelDump() local
204 frame_num = i; in VerifyLevelDump()
208 ASSERT_LT(static_cast<size_t>(0), frame_num) << DumpFrames(backtrace); in VerifyLevelDump()
209 ASSERT_LE(static_cast<size_t>(3), frame_num) << DumpFrames(backtrace); in VerifyLevelDump()
211 ASSERT_EQ(backtrace->GetFrame(frame_num)->func_name, "test_level_one") in VerifyLevelDump()
213 ASSERT_EQ(backtrace->GetFrame(frame_num-1)->func_name, "test_level_two") in VerifyLevelDump()
215 ASSERT_EQ(backtrace->GetFrame(frame_num-2)->func_name, "test_level_three") in VerifyLevelDump()
217 ASSERT_EQ(backtrace->GetFrame(frame_num-3)->func_name, "test_level_four") in VerifyLevelDump()
1359 static bool FindFuncFrameInBacktrace(Backtrace* backtrace, uint64_t test_func, size_t* frame_num) { in FindFuncFrameInBacktrace() argument
1367 *frame_num = 0; in FindFuncFrameInBacktrace()
1371 *frame_num = it->num; in FindFuncFrameInBacktrace()
1378 static void VerifyUnreadableElfFrame(Backtrace* backtrace, uint64_t test_func, size_t frame_num) { in VerifyUnreadableElfFrame() argument
1382 ASSERT_TRUE(frame_num != 0) << DumpFrames(backtrace); in VerifyUnreadableElfFrame()
1384 ASSERT_LT(frame_num, backtrace->NumFrames()) << DumpFrames(backtrace); in VerifyUnreadableElfFrame()
1386 uint64_t diff = backtrace->GetFrame(frame_num)->pc - test_func; in VerifyUnreadableElfFrame()
1397 size_t frame_num; in VerifyUnreadableElfBacktrace() local
1399 ASSERT_TRUE(FindFuncFrameInBacktrace(backtrace.get(), test_func, &frame_num)) in VerifyUnreadableElfBacktrace()
1402 VerifyUnreadableElfFrame(backtrace.get(), test_func, frame_num); in VerifyUnreadableElfBacktrace()
1473 size_t frame_num; in TEST_F() local
1475 &frame_num) && in TEST_F()
1476 frame_num != 0) { in TEST_F()
1477 VerifyUnreadableElfFrame(backtrace.get(), reinterpret_cast<uint64_t>(test_func), frame_num); in TEST_F()