• Home
  • Raw
  • Download

Lines Matching refs:ucontext

1529 static void SetUcontextSp(uint64_t sp, ucontext_t* ucontext) {  in SetUcontextSp()  argument
1531 ucontext->uc_mcontext.arm_sp = sp; in SetUcontextSp()
1533 ucontext->uc_mcontext.sp = sp; in SetUcontextSp()
1535 ucontext->uc_mcontext.gregs[REG_ESP] = sp; in SetUcontextSp()
1537 ucontext->uc_mcontext.gregs[REG_RSP] = sp; in SetUcontextSp()
1540 UNUSED(ucontext); in SetUcontextSp()
1545 static void SetUcontextPc(uint64_t pc, ucontext_t* ucontext) { in SetUcontextPc() argument
1547 ucontext->uc_mcontext.arm_pc = pc; in SetUcontextPc()
1549 ucontext->uc_mcontext.pc = pc; in SetUcontextPc()
1551 ucontext->uc_mcontext.gregs[REG_EIP] = pc; in SetUcontextPc()
1553 ucontext->uc_mcontext.gregs[REG_RIP] = pc; in SetUcontextPc()
1556 UNUSED(ucontext); in SetUcontextPc()
1561 static void SetUcontextLr(uint64_t lr, ucontext_t* ucontext) { in SetUcontextLr() argument
1563 ucontext->uc_mcontext.arm_lr = lr; in SetUcontextLr()
1565 ucontext->uc_mcontext.regs[30] = lr; in SetUcontextLr()
1569 ASSERT_TRUE(ucontext != nullptr); in SetUcontextLr()
1573 ASSERT_TRUE(ucontext != nullptr); in SetUcontextLr()
1576 UNUSED(ucontext); in SetUcontextLr()
1617 ucontext_t ucontext; in UnwindFromDevice() local
1621 memset(&ucontext, 0, sizeof(ucontext)); in UnwindFromDevice()
1622 SetUcontextSp(reinterpret_cast<uint64_t>(&ucontext), &ucontext); in UnwindFromDevice()
1623 SetUcontextPc(device_map_uint, &ucontext); in UnwindFromDevice()
1624 SetUcontextLr(cur_func_offset, &ucontext); in UnwindFromDevice()
1626 ASSERT_TRUE(backtrace->Unwind(0, &ucontext)); in UnwindFromDevice()
1632 ASSERT_EQ(reinterpret_cast<uint64_t>(&ucontext), frame->sp); in UnwindFromDevice()
1635 ASSERT_TRUE(backtrace->Unwind(1, &ucontext)); in UnwindFromDevice()
1640 memset(&ucontext, 0, sizeof(ucontext)); in UnwindFromDevice()
1641 SetUcontextSp(device_map_uint, &ucontext); in UnwindFromDevice()
1642 SetUcontextPc(cur_func_offset, &ucontext); in UnwindFromDevice()
1643 SetUcontextLr(cur_func_offset, &ucontext); in UnwindFromDevice()
1645 ASSERT_TRUE(backtrace->Unwind(0, &ucontext)); in UnwindFromDevice()
1654 ASSERT_TRUE(backtrace->Unwind(1, &ucontext)); in UnwindFromDevice()