Home
last modified time | relevance | path

Searched refs:mcontext (Results 1 – 1 of 1) sorted by relevance

/arkcompiler/ets_runtime/ecmascript/dfx/cpu_profiler/
Dcpu_profiler.cpp422 [[maybe_unused]] mcontext_t &mcontext = ucontext->uc_mcontext; in GetStackSignalHandler() local
426 fp = reinterpret_cast<void*>(mcontext.gregs[REG_RBP]); in GetStackSignalHandler()
427 sp = reinterpret_cast<void*>(mcontext.gregs[REG_RSP]); in GetStackSignalHandler()
429 fp = reinterpret_cast<void*>(mcontext.regs[29]); // FP is an alias for x29. in GetStackSignalHandler()
430 sp = reinterpret_cast<void*>(mcontext.sp); in GetStackSignalHandler()
499 [[maybe_unused]] mcontext_t &mcontext = ucontext->uc_mcontext; in GetPcFromContext() local
502 pc = static_cast<uint64_t>(mcontext.gregs[REG_RIP]); in GetPcFromContext()
504 pc = static_cast<uint64_t>(mcontext.pc); in GetPcFromContext()