Searched refs:signal (Results 1 - 25 of 30) sorted by relevance

12

/art/sigchainlib/
H A Dsigchain.h20 #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 Dsigchain.cc27 #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 Dsigchain_dummy.cc51 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 Dsignal_set.h20 #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 Druntime_android.cc19 #include <signal.h>
32 // Run the old signal handler.
37 // Enable the signal handler dumping crash information to the logcat
H A Dnative_bridge_art_interface.cc19 #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 Druntime_linux.cc19 #include <signal.h>
46 // Remove our signal handler for this signal...
H A Dthread_linux.cc17 #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 Dfault_handler.h21 #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 Dsignal_catcher.cc21 #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 Dnative_stack_dump.cc35 #include <signal.h>
H A Druntime_callbacks_test.cc20 #include <signal.h>
338 // The runtime needs to be started for the signal handler.
H A Druntime_common.cc19 #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 Dsignaltest.cc18 #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 Dmisc_events.cc18 #include <signal.h>
/art/runtime/interpreter/mterp/arm/
H A Dfooter.S255 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 Dfooter.S246 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 Dfooter.S204 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 Dcfi.cc19 #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 Ddalvikvm.cc17 #include <signal.h>
/art/test/115-native-bridge/
H A Dnativebridge.cc23 #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 Dcommon.py21 import signal namespace
165 os.killpg(os.getpgid(proc.pid), signal.SIGTERM)
/art/imgdiag/
H A Dimgdiag.cc47 #include <signal.h>
1091 /*sig*/0) != 0) { // No signal is sent, perform error-checking only.
/art/runtime/arch/mips/
H A Dquick_entrypoints_mips.S743 * 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 Dquick_entrypoints_mips64.S830 * 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.

Completed in 454 milliseconds

12