Searched refs:context (Results 1 - 25 of 41) sorted by relevance

12

/art/runtime/
H A Druntime_linux.cc47 // Stores the context of the signal that was unexpected and will terminate the runtime. The
149 context(reinterpret_cast<ucontext_t*>(raw_context)->uc_mcontext) {
155 DumpRegister32(os, "eax", context->__ss.__eax);
156 DumpRegister32(os, "ebx", context->__ss.__ebx);
157 DumpRegister32(os, "ecx", context->__ss.__ecx);
158 DumpRegister32(os, "edx", context->__ss.__edx);
161 DumpRegister32(os, "edi", context->__ss.__edi);
162 DumpRegister32(os, "esi", context->__ss.__esi);
163 DumpRegister32(os, "ebp", context->__ss.__ebp);
164 DumpRegister32(os, "esp", context
286 mcontext_t& context; member in struct:art::UContext
[all...]
H A Dfault_handler.h47 void HandleFault(int sig, siginfo_t* info, void* context);
48 void HandleNestedSignal(int sig, siginfo_t* info, void* context);
54 // Note that the following two functions are called in the context of a signal handler.
58 void GetMethodAndReturnPcAndSp(siginfo_t* siginfo, void* context, ArtMethod** out_method,
61 bool IsInGeneratedCode(siginfo_t* siginfo, void *context, bool check_dex_pc)
80 virtual bool Action(int sig, siginfo_t* siginfo, void* context) = 0;
93 bool Action(int sig, siginfo_t* siginfo, void* context) OVERRIDE;
103 bool Action(int sig, siginfo_t* siginfo, void* context) OVERRIDE;
113 bool Action(int sig, siginfo_t* siginfo, void* context) OVERRIDE;
123 bool Action(int sig, siginfo_t* siginfo, void* context) OVERRID
[all...]
H A Dfault_handler.cc56 // our secondary signal handler gets called in a signal context. This results in
81 static void art_fault_handler(int sig, siginfo_t* info, void* context) { argument
82 fault_manager.HandleFault(sig, info, context);
86 static void art_nested_signal_handler(int sig, siginfo_t* info, void* context) { argument
87 fault_manager.HandleNestedSignal(sig, info, context);
148 void FaultManager::HandleFault(int sig, siginfo_t* info, void* context) { argument
154 if (IsInGeneratedCode(info, context, true)) {
158 if (handler->Action(sig, info, context)) {
182 InvokeUserSignalHandler(sig, info, context);
239 if (handler->Action(sig, info, context)) {
300 IsInGeneratedCode(siginfo_t* siginfo, void* context, bool check_dex_pc) argument
405 Action(int sig, siginfo_t* siginfo, void* context) argument
[all...]
H A Ddex_file.cc774 LineNumFromPcContext context(rel_pc, -1);
776 nullptr, &context);
777 return context.line_num_;
815 void* context, const uint8_t* stream, LocalInfo* local_in_reg)
905 InvokeLocalCbIfLive(context, reg, address, local_in_reg, local_cb);
926 InvokeLocalCbIfLive(context, reg, address, local_in_reg, local_cb);
966 if (position_cb(context, address, line)) {
979 void* context) const {
986 DecodeDebugInfo0(code_item, is_static, method_idx, position_cb, local_cb, context, stream,
990 InvokeLocalCbIfLive(context, re
813 DecodeDebugInfo0(const CodeItem* code_item, bool is_static, uint32_t method_idx, DexDebugNewPositionCb position_cb, DexDebugNewLocalCb local_cb, void* context, const uint8_t* stream, LocalInfo* local_in_reg) const argument
996 LineNumFromPcContext* context = reinterpret_cast<LineNumFromPcContext*>(raw_context); local
[all...]
H A Dquick_exception_handler.cc19 #include "arch/context.h"
46 CatchBlockStackVisitor(Thread* self, Context* context, Handle<mirror::Throwable>* exception,
49 : StackVisitor(self, context, StackVisitor::StackWalkKind::kIncludeInlinedFrames),
161 DeoptimizeStackVisitor(Thread* self, Context* context, QuickExceptionHandler* exception_handler)
163 : StackVisitor(self, context, StackVisitor::StackWalkKind::kIncludeInlinedFrames),
404 // Place context back on thread so it will be available when we continue.
H A Ddebugger.cc23 #include "arch/context.h"
886 OwnedMonitorVisitor(Thread* thread, Context* context,
890 : StackVisitor(thread, context, StackVisitor::StackWalkKind::kIncludeInlinedFrames),
926 std::unique_ptr<Context> context(Context::Create());
927 OwnedMonitorVisitor visitor(thread, context.get(), monitors, stack_depths);
1628 static bool Callback(void* context, uint32_t address, uint32_t line_number) { argument
1629 DebugCallbackContext* pContext = reinterpret_cast<DebugCallbackContext*>(context);
1656 DebugCallbackContext context; local
1657 context.numItems = 0;
1658 context
1711 DebugCallbackContext context; local
3726 DebugCallbackContext* context = reinterpret_cast<DebugCallbackContext*>(raw_context); local
[all...]
H A Ddex_file.h793 typedef bool (*DexDebugNewPositionCb)(void* context, uint32_t address, uint32_t line_num);
797 typedef void (*DexDebugNewLocalCb)(void* context, uint16_t reg,
804 static bool LineNumForPcCb(void* context, uint32_t address, uint32_t line_num);
847 void InvokeLocalCbIfLive(void* context, int reg, uint32_t end_address, argument
850 local_cb(context, reg, local_in_reg[reg].start_address_, end_address,
869 void* context) const;
975 void* context, const uint8_t* stream, LocalInfo* local_in_reg) const;
/art/test/461-get-reference-vreg/
H A Dget_reference_vreg_jni.cc17 #include "arch/context.h"
30 TestVisitor(Thread* thread, Context* context, mirror::Object* this_value)
32 : StackVisitor(thread, context, StackVisitor::StackWalkKind::kIncludeInlinedFrames),
72 std::unique_ptr<Context> context(Context::Create());
73 TestVisitor visitor(soa.Self(), context.get(), soa.Decode<mirror::Object*>(value));
80 std::unique_ptr<Context> context(Context::Create());
81 TestVisitor visitor(soa.Self(), context.get(), nullptr);
/art/runtime/arch/mips/
H A Dfault_handler_mips.cc39 void* context ATTRIBUTE_UNUSED) {
42 void FaultManager::GetMethodAndReturnPcAndSp(siginfo_t* siginfo, void* context, argument
45 struct ucontext* uc = reinterpret_cast<struct ucontext*>(context);
75 void* context) {
80 struct ucontext *uc = reinterpret_cast<struct ucontext*>(context);
91 void* context ATTRIBUTE_UNUSED) {
108 bool StackOverflowHandler::Action(int sig ATTRIBUTE_UNUSED, siginfo_t* info, void* context) { argument
109 struct ucontext* uc = reinterpret_cast<struct ucontext*>(context);
74 Action(int sig ATTRIBUTE_UNUSED, siginfo_t* info ATTRIBUTE_UNUSED, void* context) argument
/art/runtime/arch/mips64/
H A Dfault_handler_mips64.cc39 void* context ATTRIBUTE_UNUSED) {
42 void FaultManager::GetMethodAndReturnPcAndSp(siginfo_t* siginfo, void* context, argument
45 struct ucontext* uc = reinterpret_cast<struct ucontext*>(context);
75 void* context) {
80 struct ucontext *uc = reinterpret_cast<struct ucontext*>(context);
91 void* context ATTRIBUTE_UNUSED) {
108 bool StackOverflowHandler::Action(int sig ATTRIBUTE_UNUSED, siginfo_t* info, void* context) { argument
109 struct ucontext* uc = reinterpret_cast<struct ucontext*>(context);
74 Action(int sig ATTRIBUTE_UNUSED, siginfo_t* info ATTRIBUTE_UNUSED, void* context) argument
/art/sigchainlib/
H A Dsigchain.h33 extern "C" void InvokeUserSignalHandler(int sig, siginfo_t* info, void* context);
H A Dsigchain.cc123 static void sigchainlib_managed_handler_sigaction(int sig, siginfo_t* info, void* context) { argument
124 InvokeUserSignalHandler(sig, info, context);
141 extern "C" void InvokeUserSignalHandler(int sig, siginfo_t* info, void* context) { argument
154 if (managed(sig, info, context)) {
169 action.sa_sigaction(sig, info, context);
214 // This will only occur outside of a signal context since we have
302 // Don't call this from within a signal context as it makes calls to
H A Dsigchain_dummy.cc65 void* context ATTRIBUTE_UNUSED) {
/art/test/466-get-live-vreg/
H A Dget_live_vreg_jni.cc17 #include "arch/context.h"
30 TestVisitor(Thread* thread, Context* context) SHARED_LOCKS_REQUIRED(Locks::mutator_lock_)
31 : StackVisitor(thread, context, StackVisitor::StackWalkKind::kIncludeInlinedFrames) {}
63 std::unique_ptr<Context> context(Context::Create());
64 TestVisitor visitor(soa.Self(), context.get());
/art/runtime/arch/arm64/
H A Dfault_handler_arm64.cc42 void* context) {
46 struct ucontext *uc = reinterpret_cast<struct ucontext*>(context);
56 void FaultManager::GetMethodAndReturnPcAndSp(siginfo_t* siginfo ATTRIBUTE_UNUSED, void* context, argument
59 struct ucontext *uc = reinterpret_cast<struct ucontext *>(context);
88 void* context) {
93 struct ucontext *uc = reinterpret_cast<struct ucontext*>(context);
112 void* context) {
118 struct ucontext *uc = reinterpret_cast<struct ucontext *>(context);
163 void* context) {
164 struct ucontext *uc = reinterpret_cast<struct ucontext *>(context);
41 HandleNestedSignal(int sig ATTRIBUTE_UNUSED, siginfo_t* info ATTRIBUTE_UNUSED, void* context) argument
87 Action(int sig ATTRIBUTE_UNUSED, siginfo_t* info ATTRIBUTE_UNUSED, void* context) argument
111 Action(int sig ATTRIBUTE_UNUSED, siginfo_t* info ATTRIBUTE_UNUSED, void* context) argument
162 Action(int sig ATTRIBUTE_UNUSED, siginfo_t* info ATTRIBUTE_UNUSED, void* context) argument
[all...]
/art/test/004-SignalTest/
H A Dsignaltest.cc51 void* context) {
58 struct ucontext *uc = reinterpret_cast<struct ucontext*>(context);
62 struct ucontext *uc = reinterpret_cast<struct ucontext*>(context);
66 struct ucontext *uc = reinterpret_cast<struct ucontext*>(context);
69 UNUSED(context);
50 signalhandler(int sig ATTRIBUTE_UNUSED, siginfo_t* info ATTRIBUTE_UNUSED, void* context) argument
/art/runtime/arch/arm/
H A Dfault_handler_arm.cc50 void* context) {
56 struct ucontext *uc = reinterpret_cast<struct ucontext*>(context);
67 void FaultManager::GetMethodAndReturnPcAndSp(siginfo_t* siginfo ATTRIBUTE_UNUSED, void* context, argument
70 struct ucontext* uc = reinterpret_cast<struct ucontext*>(context);
111 void* context) {
119 struct ucontext *uc = reinterpret_cast<struct ucontext*>(context);
139 void* context) {
145 struct ucontext* uc = reinterpret_cast<struct ucontext*>(context);
209 void* context) {
210 struct ucontext* uc = reinterpret_cast<struct ucontext*>(context);
49 HandleNestedSignal(int sig ATTRIBUTE_UNUSED, siginfo_t* info ATTRIBUTE_UNUSED, void* context) argument
110 Action(int sig ATTRIBUTE_UNUSED, siginfo_t* info ATTRIBUTE_UNUSED, void* context) argument
138 Action(int sig ATTRIBUTE_UNUSED, siginfo_t* info ATTRIBUTE_UNUSED, void* context) argument
208 Action(int sig ATTRIBUTE_UNUSED, siginfo_t* info ATTRIBUTE_UNUSED, void* context) argument
[all...]
/art/test/457-regs/
H A Dregs_jni.cc17 #include "arch/context.h"
30 TestVisitor(Thread* thread, Context* context)
32 : StackVisitor(thread, context, StackVisitor::StackWalkKind::kIncludeInlinedFrames) {}
129 std::unique_ptr<Context> context(Context::Create());
130 TestVisitor visitor(soa.Self(), context.get());
138 std::unique_ptr<Context> context(Context::Create());
143 TestVisitor visitor(soa.Self(), context.get());
/art/runtime/gc/space/
H A Dzygote_space.cc106 SweepCallbackContext* context = static_cast<SweepCallbackContext*>(arg); local
107 DCHECK(context->space->IsZygoteSpace());
108 ZygoteSpace* zygote_space = context->space->AsZygoteSpace();
109 Locks::heap_bitmap_lock_->AssertExclusiveHeld(context->self);
113 if (!context->swap_bitmaps) {
H A Dmalloc_space.cc232 SweepCallbackContext* context = static_cast<SweepCallbackContext*>(arg); local
233 space::MallocSpace* space = context->space->AsMallocSpace();
234 Thread* self = context->self;
238 if (!context->swap_bitmaps) {
247 context->freed.objects += num_ptrs;
248 context->freed.bytes += space->FreeList(self, num_ptrs, ptrs);
/art/runtime/arch/x86/
H A Dfault_handler_x86.cc236 void FaultManager::HandleNestedSignal(int, siginfo_t*, void* context) { argument
246 struct ucontext* uc = reinterpret_cast<struct ucontext*>(context);
251 void FaultManager::GetMethodAndReturnPcAndSp(siginfo_t* siginfo, void* context, argument
254 struct ucontext* uc = reinterpret_cast<struct ucontext*>(context);
295 bool NullPointerHandler::Action(int, siginfo_t*, void* context) { argument
296 struct ucontext *uc = reinterpret_cast<struct ucontext*>(context);
335 bool SuspensionHandler::Action(int, siginfo_t*, void* context) { argument
354 struct ucontext *uc = reinterpret_cast<struct ucontext*>(context);
409 bool StackOverflowHandler::Action(int, siginfo_t* info, void* context) { argument
410 struct ucontext *uc = reinterpret_cast<struct ucontext*>(context);
[all...]
/art/runtime/native/
H A Dorg_apache_harmony_dalvik_ddmc_DdmVmInternal.cc85 static void ThreadCountCallback(Thread*, void* context) { argument
86 uint16_t& count = *reinterpret_cast<uint16_t*>(context);
93 static void ThreadStatsGetterCallback(Thread* t, void* context) { argument
121 std::vector<uint8_t>& bytes = *reinterpret_cast<std::vector<uint8_t>*>(context);
/art/test/454-get-vreg/
H A Dget_vreg_jni.cc17 #include "arch/context.h"
30 TestVisitor(Thread* thread, Context* context, mirror::Object* this_value)
32 : StackVisitor(thread, context, StackVisitor::StackWalkKind::kIncludeInlinedFrames),
116 std::unique_ptr<Context> context(Context::Create());
117 TestVisitor visitor(soa.Self(), context.get(), soa.Decode<mirror::Object*>(value));
/art/test/455-set-vreg/
H A Dset_vreg_jni.cc17 #include "arch/context.h"
30 TestVisitor(Thread* thread, Context* context, mirror::Object* this_value)
32 : StackVisitor(thread, context, StackVisitor::StackWalkKind::kIncludeInlinedFrames),
89 std::unique_ptr<Context> context(Context::Create());
90 TestVisitor visitor(soa.Self(), context.get(), soa.Decode<mirror::Object*>(value));
/art/test/115-native-bridge/
H A Dnativebridge.cc189 void* context ATTRIBUTE_UNUSED) {
386 static bool nb_signalhandler(int sig, siginfo_t* info ATTRIBUTE_UNUSED, void* context) { argument
389 struct ucontext *uc = reinterpret_cast<struct ucontext*>(context);
393 struct ucontext *uc = reinterpret_cast<struct ucontext*>(context);
397 struct ucontext *uc = reinterpret_cast<struct ucontext*>(context);
400 UNUSED(context);

Completed in 451 milliseconds

12