/art/sigchainlib/ |
H A D | sigchain.h | 20 #include <signal.h> 34 extern "C" void AddSpecialSignalHandlerFn(int signal, SigchainAction* sa); 35 extern "C" void RemoveSpecialSignalHandlerFn(int signal, bool (*fn)(int, siginfo_t*, void*)); 37 extern "C" void EnsureFrontOfChain(int signal);
|
H A D | sigchain.cc | 27 #include <signal.h> 48 // libsigchain provides an interception layer for signal handlers, to allow ART and others to give 49 // their signal handlers the first stab at handling signals before passing them on to user code. 51 // It implements wrapper functions for signal, sigaction, and sigprocmask, and a handler that 54 // In our handler, we start off with all signals blocked, fetch the original signal mask from the 55 // passed in ucontext, and then adjust our signal mask appropriately for the user handler. 59 // SA_NODEFER: unimplemented, we can manually change the signal mask appropriately. 62 // ~SA_RESTART: unimplemented, maybe we can reserve an RT signal, register an empty handler that 63 // doesn't have SA_RESTART, and raise the signal to avoid restarting syscalls that are 104 fatal("Unable to find next sigaction in signal chai 284 sigaction(int signal, const struct sigaction* new_action, struct sigaction* old_action) argument 312 extern "C" sighandler_t signal(int signo, sighandler_t handler) { function in namespace:art 379 AddSpecialSignalHandlerFn(int signal, SigchainAction* sa) argument 391 RemoveSpecialSignalHandlerFn(int signal, bool (*fn)(int, siginfo_t*, void*)) argument 401 EnsureFrontOfChain(int signal) argument [all...] |
H A D | sigchain_dummy.cc | 51 extern "C" void EnsureFrontOfChain(int signal ATTRIBUTE_UNUSED) { 56 extern "C" void AddSpecialSignalHandlerFn(int signal ATTRIBUTE_UNUSED, 62 extern "C" void RemoveSpecialSignalHandlerFn(int signal ATTRIBUTE_UNUSED,
|
/art/runtime/ |
H A D | signal_set.h | 20 #include <signal.h> 34 void Add(int signal) { argument 35 if (sigaddset(&set_, signal) == -1) { 36 PLOG(FATAL) << "sigaddset " << signal << " failed"; 47 // Sleep in sigwait() until a signal arrives. gdb causes EINTR failures.
|
H A D | runtime_android.cc | 19 #include <signal.h> 32 // Run the old signal handler. 37 // Enable the signal handler dumping crash information to the logcat
|
H A D | native_bridge_art_interface.cc | 19 #include <signal.h> 117 // Managed signal handling support added in version 2. 118 for (int signal = 0; signal < _NSIG; ++signal) { 119 android::NativeBridgeSignalHandlerFn fn = android::NativeBridgeGetSignalHandler(signal); 126 // The native bridge signal might not return back to sigchain's handler. 129 AddSpecialSignalHandlerFn(signal, &sa);
|
H A D | runtime_linux.cc | 19 #include <signal.h> 46 // Remove our signal handler for this signal...
|
H A D | thread_linux.cc | 17 #include <signal.h> 38 // The default SIGSTKSZ on linux is 8K. If we do any logging in a signal 40 // instead of the minimum signal stack size. 41 // TODO: We shouldn't do logging (with locks) in signal handlers. 46 // Create and set an alternate signal stack. 48 LOG(FATAL) << "Invalid use of alternate signal stack on Android"; 60 VLOG(threads) << "Alternate signal stack is " << PrettySize(ss.ss_size) << " at " << ss.ss_sp;
|
H A D | fault_handler.h | 21 #include <signal.h> 53 // Note that the following two functions are called in the context of a signal handler. 101 // reasonably do in signal processing code) based on the dex instruction 140 // Statically allocated so the the signal handler can Get access to it.
|
H A D | signal_catcher.cc | 21 #include <signal.h> 76 CHECK_PTHREAD_CALL(pthread_create, (&pthread_, nullptr, &Run, this), "signal catcher thread"); 89 CHECK_PTHREAD_CALL(pthread_kill, (pthread_, SIGQUIT), "signal catcher shutdown"); 90 CHECK_PTHREAD_CALL(pthread_join, (pthread_, nullptr), "signal catcher shutdown"); 168 // is met. When the signal hits, we wake up, without any signal 172 // Let the user know we got the signal, just in case the system's too screwed for us to 174 LOG(INFO) << *self << ": reacting to signal " << signal_number; 219 LOG(ERROR) << "Unexpected signal %d" << signal_number;
|
H A D | native_stack_dump.cc | 35 #include <signal.h>
|
H A D | runtime_callbacks_test.cc | 20 #include <signal.h> 338 // The runtime needs to be started for the signal handler.
|
H A D | runtime_common.cc | 19 #include <signal.h> 59 // Try the signal-specific codes... 411 << StringPrintf("Fatal signal %d (%s), code %d (%s)", 437 // Special timeout signal. Try to dump all threads. 465 // Use the alternate signal stack so we can catch stack overflows.
|
/art/test/004-SignalTest/ |
H A D | signaltest.cc | 18 #include <signal.h> 55 printf("blocked signal received\n"); 59 printf("unblocked signal received\n"); 64 printf("signal caught\n"); 72 printf("unblocking blocked signal\n"); 97 printf("signal handler done\n"); 118 signal(BLOCKED_SIGNAL, blocked_signal); 119 signal(UNBLOCKED_SIGNAL, unblocked_signal); 142 // in the signal handler
|
/art/test/933-misc-events/ |
H A D | misc_events.cc | 18 #include <signal.h>
|
/art/runtime/interpreter/mterp/arm/ |
H A D | footer.S | 255 mov r0, #0 @ signal retry with reference interpreter. 267 mov r0, #1 @ signal return to caller. 273 mov r0, #1 @ signal return to caller.
|
/art/runtime/interpreter/mterp/mips/ |
H A D | footer.S | 246 move v0, zero # signal retry with reference interpreter. 257 li v0, 1 # signal return to caller. 263 li v0, 1 # signal return to caller.
|
/art/runtime/interpreter/mterp/mips64/ |
H A D | footer.S | 204 li v0, 0 # signal retry with reference interpreter. 216 li v0, 1 # signal return to caller. 226 li v0, 1 # signal return to caller.
|
/art/test/137-cfi/ |
H A D | cfi.cc | 19 #include <signal.h> 99 PLOG(ERROR) << "Failed to send signal"; 196 PLOG(WARNING) << "timed out waiting for stop signal: tid=" << tid; 231 int signal = wait_for_sigstop(pid, &total_sleep_time_usec, &detach_failed); local 232 if (signal == -1) {
|
/art/dalvikvm/ |
H A D | dalvikvm.cc | 17 #include <signal.h>
|
/art/test/115-native-bridge/ |
H A D | nativebridge.cc | 23 #include <signal.h> 200 // in the signal handler 296 // The context is used to jump out from signal handler. 299 // Test whether NativeBridge can receive future signal when its handler doesn't return. 303 // 2. Raise another SIGSEGV in NativeBridge's signal handler which is handling 305 // 3. Expect that NativeBridge's signal handler invokes again. And jump back 309 // NOTE: sigchain should be aware that "special signal handler" may not return. 323 // jump to here from signal handler when handling second SIGSEGV. 329 printf("back to test from signal handler via siglongjmp(), and done!\n"); 567 printf("NB signal handle 579 native_bridge_getSignalHandler(int signal) argument [all...] |
/art/tools/common/ |
H A D | common.py | 21 import signal namespace 165 os.killpg(os.getpgid(proc.pid), signal.SIGTERM)
|
/art/imgdiag/ |
H A D | imgdiag.cc | 47 #include <signal.h> 1091 /*sig*/0) != 0) { // No signal is sent, perform error-checking only.
|
/art/runtime/arch/mips/ |
H A D | quick_entrypoints_mips.S | 743 * Call installed by a signal handler to create and deliver a NullPointerException. 748 # Retrieve the fault address from the padding where the signal handler stores it.
|
/art/runtime/arch/mips64/ |
H A D | quick_entrypoints_mips64.S | 830 * Call installed by a signal handler to create and deliver a NullPointerException 835 # Retrieve the fault address from the padding where the signal handler stores it.
|