Lines Matching defs:context
348 static void FillRegisterState(void* context, RegisterState* regs);
349 static void HandleProfilerSignal(int signal, siginfo_t* info, void* context);
364 void* context) {
368 FillRegisterState(context, &state);
372 void SignalHandler::FillRegisterState(void* context, RegisterState* state) {
373 // Extracting the sample from the context is extremely machine dependent.
374 ucontext_t* ucontext = reinterpret_cast<ucontext_t*>(context);
587 CONTEXT context;
588 memset(&context, 0, sizeof(context));
589 context.ContextFlags = CONTEXT_FULL;
590 if (GetThreadContext(profiled_thread, &context) != 0) {
593 state.pc = reinterpret_cast<void*>(context.Rip);
594 state.sp = reinterpret_cast<void*>(context.Rsp);
595 state.fp = reinterpret_cast<void*>(context.Rbp);
597 state.pc = reinterpret_cast<void*>(context.Pc);
598 state.sp = reinterpret_cast<void*>(context.Sp);
599 state.fp = reinterpret_cast<void*>(context.Fp);
601 state.pc = reinterpret_cast<void*>(context.Eip);
602 state.sp = reinterpret_cast<void*>(context.Esp);
603 state.fp = reinterpret_cast<void*>(context.Ebp);