Home
last modified time | relevance | path

Searched refs:context (Results 1 – 25 of 43) sorted by relevance

12

/art/runtime/
Druntime_linux.cc153 context(reinterpret_cast<ucontext_t*>(raw_context)->uc_mcontext) { in UContext()
159 DumpRegister32(os, "eax", context->__ss.__eax); in Dump()
160 DumpRegister32(os, "ebx", context->__ss.__ebx); in Dump()
161 DumpRegister32(os, "ecx", context->__ss.__ecx); in Dump()
162 DumpRegister32(os, "edx", context->__ss.__edx); in Dump()
165 DumpRegister32(os, "edi", context->__ss.__edi); in Dump()
166 DumpRegister32(os, "esi", context->__ss.__esi); in Dump()
167 DumpRegister32(os, "ebp", context->__ss.__ebp); in Dump()
168 DumpRegister32(os, "esp", context->__ss.__esp); in Dump()
171 DumpRegister32(os, "eip", context->__ss.__eip); in Dump()
[all …]
Dfault_handler.h47 void HandleFault(int sig, siginfo_t* info, void* context);
48 void HandleNestedSignal(int sig, siginfo_t* info, void* context);
58 void GetMethodAndReturnPcAndSp(siginfo_t* siginfo, void* context, ArtMethod** out_method,
61 bool IsInGeneratedCode(siginfo_t* siginfo, void *context, bool check_dex_pc)
66 bool HandleFaultByOtherHandlers(int sig, siginfo_t* info, void* context)
84 virtual bool Action(int sig, siginfo_t* siginfo, void* context) = 0;
97 bool Action(int sig, siginfo_t* siginfo, void* context) OVERRIDE;
107 bool Action(int sig, siginfo_t* siginfo, void* context) OVERRIDE;
117 bool Action(int sig, siginfo_t* siginfo, void* context) OVERRIDE;
127 bool Action(int sig, siginfo_t* siginfo, void* context) OVERRIDE NO_THREAD_SAFETY_ANALYSIS;
Dfault_handler.cc82 static void art_fault_handler(int sig, siginfo_t* info, void* context) { in art_fault_handler() argument
83 fault_manager.HandleFault(sig, info, context); in art_fault_handler()
87 static void art_nested_signal_handler(int sig, siginfo_t* info, void* context) { in art_nested_signal_handler() argument
88 fault_manager.HandleNestedSignal(sig, info, context); in art_nested_signal_handler()
149 bool FaultManager::HandleFaultByOtherHandlers(int sig, siginfo_t* info, void* context) { in HandleFaultByOtherHandlers() argument
215 if (handler->Action(sig, info, context)) { in HandleFaultByOtherHandlers()
246 void FaultManager::HandleFault(int sig, siginfo_t* info, void* context) { in HandleFault() argument
252 if (IsInGeneratedCode(info, context, true)) { in HandleFault()
256 if (handler->Action(sig, info, context)) { in HandleFault()
273 if (HandleFaultByOtherHandlers(sig, info, context)) { in HandleFault()
[all …]
Ddebugger.cc824 OwnedMonitorVisitor(Thread* thread, Context* context, in GetOwnedMonitors()
828 : StackVisitor(thread, context, StackVisitor::StackWalkKind::kIncludeInlinedFrames), in GetOwnedMonitors()
864 std::unique_ptr<Context> context(Context::Create()); in GetOwnedMonitors() local
865 OwnedMonitorVisitor visitor(thread, context.get(), monitors, stack_depths); in GetOwnedMonitors()
1566 static bool Callback(void* context, const DexFile::PositionInfo& entry) { in OutputLineTable()
1567 DebugCallbackContext* pContext = reinterpret_cast<DebugCallbackContext*>(context); in OutputLineTable()
1594 DebugCallbackContext context; in OutputLineTable() local
1595 context.numItems = 0; in OutputLineTable()
1596 context.pReply = pReply; in OutputLineTable()
1599 m->GetDexFile()->DecodeDebugPositionInfo(code_item, DebugCallbackContext::Callback, &context); in OutputLineTable()
[all …]
Doat_file.cc582 } context; in PreLoad()
584 dl_iterate_phdr(dl_iterate_context::callback, &context); in PreLoad()
585 shared_objects_before_ = context.count; in PreLoad()
692 auto* context = reinterpret_cast<dl_iterate_context*>(data); in PreSetup()
693 context->shared_objects_seen++; in PreSetup()
694 if (context->shared_objects_seen < context->shared_objects_before) { in PreSetup()
708 if (vaddr <= context->begin_ && context->begin_ < vaddr + memsz) { in PreSetup()
722 context->dlopen_mmaps_->push_back(std::unique_ptr<MemMap>(mmap)); in PreSetup()
734 dl_iterate_context context = { Begin(), &dlopen_mmaps_, shared_objects_before_, 0}; in PreSetup()
736 if (dl_iterate_phdr(dl_iterate_context::callback, &context) == 0) { in PreSetup()
/art/runtime/arch/mips64/
Dfault_handler_mips64.cc39 void* context ATTRIBUTE_UNUSED) { in HandleNestedSignal()
42 void FaultManager::GetMethodAndReturnPcAndSp(siginfo_t* siginfo, void* context, in GetMethodAndReturnPcAndSp() argument
45 struct ucontext* uc = reinterpret_cast<struct ucontext*>(context); in GetMethodAndReturnPcAndSp()
75 void* context) { in Action() argument
80 struct ucontext *uc = reinterpret_cast<struct ucontext*>(context); in Action()
91 void* context ATTRIBUTE_UNUSED) { in Action()
108 bool StackOverflowHandler::Action(int sig ATTRIBUTE_UNUSED, siginfo_t* info, void* context) { in Action() argument
109 struct ucontext* uc = reinterpret_cast<struct ucontext*>(context); in Action()
/art/runtime/arch/mips/
Dfault_handler_mips.cc39 void* context ATTRIBUTE_UNUSED) { in HandleNestedSignal()
42 void FaultManager::GetMethodAndReturnPcAndSp(siginfo_t* siginfo, void* context, in GetMethodAndReturnPcAndSp() argument
45 struct ucontext* uc = reinterpret_cast<struct ucontext*>(context); in GetMethodAndReturnPcAndSp()
75 void* context) { in Action() argument
80 struct ucontext *uc = reinterpret_cast<struct ucontext*>(context); in Action()
91 void* context ATTRIBUTE_UNUSED) { in Action()
108 bool StackOverflowHandler::Action(int sig ATTRIBUTE_UNUSED, siginfo_t* info, void* context) { in Action() argument
109 struct ucontext* uc = reinterpret_cast<struct ucontext*>(context); in Action()
/art/runtime/arch/arm64/
Dfault_handler_arm64.cc42 void* context) { in HandleNestedSignal() argument
46 struct ucontext *uc = reinterpret_cast<struct ucontext*>(context); in HandleNestedSignal()
56 void FaultManager::GetMethodAndReturnPcAndSp(siginfo_t* siginfo ATTRIBUTE_UNUSED, void* context, in GetMethodAndReturnPcAndSp() argument
59 struct ucontext *uc = reinterpret_cast<struct ucontext *>(context); in GetMethodAndReturnPcAndSp()
88 void* context) { in Action() argument
93 struct ucontext *uc = reinterpret_cast<struct ucontext*>(context); in Action()
112 void* context) { in Action() argument
118 struct ucontext *uc = reinterpret_cast<struct ucontext *>(context); in Action()
163 void* context) { in Action() argument
164 struct ucontext *uc = reinterpret_cast<struct ucontext *>(context); in Action()
/art/test/004-SignalTest/
Dsignaltest.cc51 void* context) { in signalhandler() argument
58 struct ucontext *uc = reinterpret_cast<struct ucontext*>(context); in signalhandler()
62 struct ucontext *uc = reinterpret_cast<struct ucontext*>(context); in signalhandler()
66 struct ucontext *uc = reinterpret_cast<struct ucontext*>(context); in signalhandler()
69 struct ucontext *uc = reinterpret_cast<struct ucontext*>(context); in signalhandler()
72 UNUSED(context); in signalhandler()
/art/runtime/arch/arm/
Dfault_handler_arm.cc50 void* context) { in HandleNestedSignal() argument
56 struct ucontext *uc = reinterpret_cast<struct ucontext*>(context); in HandleNestedSignal()
67 void FaultManager::GetMethodAndReturnPcAndSp(siginfo_t* siginfo ATTRIBUTE_UNUSED, void* context, in GetMethodAndReturnPcAndSp() argument
70 struct ucontext* uc = reinterpret_cast<struct ucontext*>(context); in GetMethodAndReturnPcAndSp()
111 void* context) { in Action() argument
119 struct ucontext *uc = reinterpret_cast<struct ucontext*>(context); in Action()
139 void* context) { in Action() argument
145 struct ucontext* uc = reinterpret_cast<struct ucontext*>(context); in Action()
209 void* context) { in Action() argument
210 struct ucontext* uc = reinterpret_cast<struct ucontext*>(context); in Action()
/art/test/461-get-reference-vreg/
Dget_reference_vreg_jni.cc30 TestVisitor(Thread* thread, Context* context, mirror::Object* this_value) in TestVisitor() argument
32 : StackVisitor(thread, context, StackVisitor::StackWalkKind::kIncludeInlinedFrames), in TestVisitor()
72 std::unique_ptr<Context> context(Context::Create()); in Java_Main_doNativeCallRef() local
73 TestVisitor visitor(soa.Self(), context.get(), soa.Decode<mirror::Object*>(value)); in Java_Main_doNativeCallRef()
80 std::unique_ptr<Context> context(Context::Create()); in Java_Main_doStaticNativeCallRef() local
81 TestVisitor visitor(soa.Self(), context.get(), nullptr); in Java_Main_doStaticNativeCallRef()
/art/test/543-env-long-ref/
Denv_long_ref.cc30 TestVisitor(const ScopedObjectAccess& soa, Context* context, jobject expected_value) in TestVisitor() argument
32 : StackVisitor(soa.Self(), context, StackVisitor::StackWalkKind::kIncludeInlinedFrames), in TestVisitor()
60 std::unique_ptr<Context> context(Context::Create()); in Java_Main_lookForMyRegisters() local
61 TestVisitor visitor(soa, context.get(), value); in Java_Main_lookForMyRegisters()
/art/test/466-get-live-vreg/
Dget_live_vreg_jni.cc31 TestVisitor(Thread* thread, Context* context) SHARED_REQUIRES(Locks::mutator_lock_) in TestVisitor() argument
32 : StackVisitor(thread, context, StackVisitor::StackWalkKind::kIncludeInlinedFrames) {} in TestVisitor()
68 std::unique_ptr<Context> context(Context::Create()); in Java_Main_doStaticNativeCallLiveVreg() local
69 TestVisitor visitor(soa.Self(), context.get()); in Java_Main_doStaticNativeCallLiveVreg()
/art/runtime/arch/x86/
Dfault_handler_x86.cc236 void FaultManager::HandleNestedSignal(int, siginfo_t*, void* context) { in HandleNestedSignal() argument
246 struct ucontext* uc = reinterpret_cast<struct ucontext*>(context); in HandleNestedSignal()
251 void FaultManager::GetMethodAndReturnPcAndSp(siginfo_t* siginfo, void* context, in GetMethodAndReturnPcAndSp() argument
254 struct ucontext* uc = reinterpret_cast<struct ucontext*>(context); in GetMethodAndReturnPcAndSp()
295 bool NullPointerHandler::Action(int, siginfo_t*, void* context) { in Action() argument
296 struct ucontext *uc = reinterpret_cast<struct ucontext*>(context); in Action()
335 bool SuspensionHandler::Action(int, siginfo_t*, void* context) { in Action() argument
354 struct ucontext *uc = reinterpret_cast<struct ucontext*>(context); in Action()
409 bool StackOverflowHandler::Action(int, siginfo_t* info, void* context) { in Action() argument
410 struct ucontext *uc = reinterpret_cast<struct ucontext*>(context); in Action()
/art/test/457-regs/
Dregs_jni.cc31 TestVisitor(Thread* thread, Context* context) in TestVisitor() argument
33 : StackVisitor(thread, context, StackVisitor::StackWalkKind::kIncludeInlinedFrames) {} in TestVisitor()
132 std::unique_ptr<Context> context(Context::Create()); in Java_PhiLiveness_regsNativeCall() local
133 TestVisitor visitor(soa.Self(), context.get()); in Java_PhiLiveness_regsNativeCall()
141 std::unique_ptr<Context> context(Context::Create()); in Java_PhiLiveness_regsNativeCallWithParameters() local
146 TestVisitor visitor(soa.Self(), context.get()); in Java_PhiLiveness_regsNativeCallWithParameters()
/art/runtime/gc/space/
Dzygote_space.cc105 SweepCallbackContext* context = static_cast<SweepCallbackContext*>(arg); in SweepCallback() local
106 DCHECK(context->space->IsZygoteSpace()); in SweepCallback()
107 ZygoteSpace* zygote_space = context->space->AsZygoteSpace(); in SweepCallback()
108 Locks::heap_bitmap_lock_->AssertExclusiveHeld(context->self); in SweepCallback()
112 if (!context->swap_bitmaps) { in SweepCallback()
Dmalloc_space.cc232 SweepCallbackContext* context = static_cast<SweepCallbackContext*>(arg); in SweepCallback() local
233 space::MallocSpace* space = context->space->AsMallocSpace(); in SweepCallback()
234 Thread* self = context->self; in SweepCallback()
238 if (!context->swap_bitmaps) { in SweepCallback()
247 context->freed.objects += num_ptrs; in SweepCallback()
248 context->freed.bytes += space->FreeList(self, num_ptrs, ptrs); in SweepCallback()
/art/compiler/optimizing/
Dinduction_var_range.h65 bool GetInductionRange(HInstruction* context,
81 bool CanGenerateCode(HInstruction* context,
101 void GenerateRangeCode(HInstruction* context,
114 void GenerateTakenTest(HInstruction* context,
184 bool GenerateCode(HInstruction* context,
Dinduction_var_range.cc126 bool InductionVarRange::GetInductionRange(HInstruction* context, in GetInductionRange() argument
131 HLoopInformation* loop = context->GetBlock()->GetLoopInformation(); // closest enveloping loop in GetInductionRange()
153 bool in_body = context->GetBlock() != header; in GetInductionRange()
190 bool InductionVarRange::CanGenerateCode(HInstruction* context, in CanGenerateCode() argument
194 return GenerateCode(context, in CanGenerateCode()
201 void InductionVarRange::GenerateRangeCode(HInstruction* context, in GenerateRangeCode() argument
208 if (!GenerateCode(context, instruction, graph, block, lower, upper, nullptr, &b1, &b2)) { in GenerateRangeCode()
213 void InductionVarRange::GenerateTakenTest(HInstruction* context, in GenerateTakenTest() argument
218 if (!GenerateCode(context, context, graph, block, nullptr, nullptr, taken_test, &b1, &b2)) { in GenerateTakenTest()
605 bool InductionVarRange::GenerateCode(HInstruction* context, in GenerateCode() argument
[all …]
/art/test/454-get-vreg/
Dget_vreg_jni.cc31 TestVisitor(Thread* thread, Context* context, mirror::Object* this_value) in TestVisitor() argument
33 : StackVisitor(thread, context, StackVisitor::StackWalkKind::kIncludeInlinedFrames), in TestVisitor()
125 std::unique_ptr<Context> context(Context::Create()); in Java_Main_doNativeCall() local
126 TestVisitor visitor(soa.Self(), context.get(), soa.Decode<mirror::Object*>(value)); in Java_Main_doNativeCall()
/art/runtime/native/
Dorg_apache_harmony_dalvik_ddmc_DdmVmInternal.cc85 static void ThreadCountCallback(Thread*, void* context) { in ThreadCountCallback() argument
86 uint16_t& count = *reinterpret_cast<uint16_t*>(context); in ThreadCountCallback()
93 static void ThreadStatsGetterCallback(Thread* t, void* context) { in ThreadStatsGetterCallback() argument
121 std::vector<uint8_t>& bytes = *reinterpret_cast<std::vector<uint8_t>*>(context); in ThreadStatsGetterCallback()
/art/sigchainlib/
Dsigchain.cc123 static void sigchainlib_managed_handler_sigaction(int sig, siginfo_t* info, void* context) { in sigchainlib_managed_handler_sigaction() argument
124 InvokeUserSignalHandler(sig, info, context); in sigchainlib_managed_handler_sigaction()
141 extern "C" void InvokeUserSignalHandler(int sig, siginfo_t* info, void* context) { in InvokeUserSignalHandler() argument
157 if (managed(sig, info, context)) { in InvokeUserSignalHandler()
176 action.sa_sigaction(sig, info, context); in InvokeUserSignalHandler()
Dsigchain.h33 extern "C" void InvokeUserSignalHandler(int sig, siginfo_t* info, void* context);
Dsigchain_dummy.cc65 void* context ATTRIBUTE_UNUSED) { in InvokeUserSignalHandler()
/art/test/115-native-bridge/
Dnativebridge.cc189 void* context ATTRIBUTE_UNUSED) { in test_sigaction_handler()
414 static bool nb_signalhandler(int sig, siginfo_t* info ATTRIBUTE_UNUSED, void* context) { in nb_signalhandler() argument
418 struct ucontext *uc = reinterpret_cast<struct ucontext*>(context); in nb_signalhandler()
422 struct ucontext *uc = reinterpret_cast<struct ucontext*>(context); in nb_signalhandler()
426 struct ucontext *uc = reinterpret_cast<struct ucontext*>(context); in nb_signalhandler()
429 struct ucontext *uc = reinterpret_cast<struct ucontext*>(context); in nb_signalhandler()
432 UNUSED(context); in nb_signalhandler()

12