Home
last modified time | relevance | path

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

/art/runtime/
Dfault_handler.cc97 static void SetUpArtAction(struct sigaction* action) { in SetUpArtAction() argument
98 action->sa_sigaction = art_fault_handler; in SetUpArtAction()
99 sigemptyset(&action->sa_mask); in SetUpArtAction()
100 action->sa_flags = SA_SIGINFO | SA_ONSTACK; in SetUpArtAction()
102 action->sa_restorer = nullptr; in SetUpArtAction()
108 struct sigaction action; in EnsureArtActionInFrontOfSignalChain() local
109 SetUpArtAction(&action); in EnsureArtActionInFrontOfSignalChain()
110 EnsureFrontOfChain(SIGSEGV, &action); in EnsureArtActionInFrontOfSignalChain()
118 struct sigaction action; in Init() local
119 SetUpArtAction(&action); in Init()
[all …]
Druntime_android.cc61 struct sigaction action; in InitPlatformSignalHandlers() local
62 memset(&action, 0, sizeof(action)); in InitPlatformSignalHandlers()
63 sigemptyset(&action.sa_mask); in InitPlatformSignalHandlers()
64 action.sa_sigaction = HandleUnexpectedSignal; in InitPlatformSignalHandlers()
66 action.sa_flags |= SA_SIGINFO; in InitPlatformSignalHandlers()
68 action.sa_flags |= SA_ONSTACK; in InitPlatformSignalHandlers()
70 rc += sigaction(SIGSEGV, &action, &old_action); in InitPlatformSignalHandlers()
Druntime_linux.cc332 struct sigaction action; in HandleUnexpectedSignal() local
333 memset(&action, 0, sizeof(action)); in HandleUnexpectedSignal()
334 sigemptyset(&action.sa_mask); in HandleUnexpectedSignal()
335 action.sa_handler = SIG_DFL; in HandleUnexpectedSignal()
336 sigaction(signal_number, &action, NULL); in HandleUnexpectedSignal()
346 struct sigaction action; in InitPlatformSignalHandlers() local
347 memset(&action, 0, sizeof(action)); in InitPlatformSignalHandlers()
348 sigemptyset(&action.sa_mask); in InitPlatformSignalHandlers()
349 action.sa_sigaction = HandleUnexpectedSignal; in InitPlatformSignalHandlers()
351 action.sa_flags |= SA_SIGINFO; in InitPlatformSignalHandlers()
[all …]
Dtrace.cc132 TraceAction action) { in EncodeTraceMethodAndAction() argument
133 uint32_t tmid = PointerToLowMemUInt32(method) | action; in EncodeTraceMethodAndAction()
500 TraceAction action = DecodeTraceAction(tmid); in DumpBuf() local
501 LOG(INFO) << PrettyMethod(method) << " " << static_cast<int>(action); in DumpBuf()
656 TraceAction action = kTraceMethodEnter; in LogMethodTraceEvent() local
659 action = kTraceMethodEnter; in LogMethodTraceEvent()
662 action = kTraceMethodExit; in LogMethodTraceEvent()
665 action = kTraceUnroll; in LogMethodTraceEvent()
671 uint32_t method_value = EncodeTraceMethodAndAction(method, action); in LogMethodTraceEvent()
Druntime.h408 void DidForkFromZygote(JNIEnv* env, NativeBridgeAction action, const char* isa);
Druntime.cc530 void Runtime::DidForkFromZygote(JNIEnv* env, NativeBridgeAction action, const char* isa) { in DidForkFromZygote() argument
534 switch (action) { in DidForkFromZygote()
/art/sigchainlib/
Dsigchain.cc45 void Claim(const struct sigaction& action) { in Claim() argument
46 action_ = action; in Claim()
67 void SetAction(const struct sigaction& action) { in SetAction() argument
68 action_ = action; in SetAction()
124 const struct sigaction& action = user_sigactions[sig].GetAction(); in InvokeUserSignalHandler() local
125 if ((action.sa_flags & SA_SIGINFO) == 0) { in InvokeUserSignalHandler()
126 if (action.sa_handler != NULL) { in InvokeUserSignalHandler()
127 action.sa_handler(sig); in InvokeUserSignalHandler()
133 if (action.sa_sigaction != NULL) { in InvokeUserSignalHandler()
134 action.sa_sigaction(sig, info, context); in InvokeUserSignalHandler()
/art/test/004-SignalTest/
Dsignaltest.cc73 struct sigaction action; in Java_Main_initSignalTest() local
74 action.sa_sigaction = signalhandler; in Java_Main_initSignalTest()
75 sigemptyset(&action.sa_mask); in Java_Main_initSignalTest()
76 action.sa_flags = SA_SIGINFO | SA_ONSTACK; in Java_Main_initSignalTest()
78 action.sa_restorer = nullptr; in Java_Main_initSignalTest()
81 sigaction(SIGSEGV, &action, &oldaction); in Java_Main_initSignalTest()
/art/runtime/native/
Ddalvik_system_ZygoteHooks.cc122 Runtime::NativeBridgeAction action = Runtime::NativeBridgeAction::kUnload; in ZygoteHooks_nativePostForkChild() local
124 action = Runtime::NativeBridgeAction::kInitialize; in ZygoteHooks_nativePostForkChild()
126 Runtime::Current()->DidForkFromZygote(env, action, isa_string.c_str()); in ZygoteHooks_nativePostForkChild()