/system/core/debuggerd/test/ |
H A D | ptrace_fake.h | 20 #include <signal.h>
|
H A D | host_signal_fixup.h | 20 #include <signal.h>
|
H A D | ptrace_fake.cpp | 18 #include <signal.h>
|
/system/extras/simpleperf/ |
H A D | scoped_signal_handler.h | 20 #include <signal.h> 28 sig_t old_handler = signal(sig, handler); 35 signal(pair.first, pair.second);
|
/system/core/debuggerd/ |
H A D | signal_sender.h | 25 // Sends a signal to a target process or thread. 26 // If tid is greater than zero, this performs tgkill(pid, tid, signal). 27 // Otherwise, it performs kill(pid, signal). 28 bool send_signal(pid_t pid, pid_t tid, int signal);
|
H A D | signal_sender.cpp | 18 #include <signal.h> 36 int signal; member in struct:signal_message 67 ALOGE("debuggerd: attempted to start signal sender multiple times"); 73 ALOGE("debuggerd: failed to create socketpair for signal sender: %s", strerror(errno)); 80 ALOGE("debuggerd: failed to initialize signal sender: fork failed: %s", strerror(errno)); 91 ALOGE("debuggerd: signal sender failed to read from socket"); 94 ALOGE("debuggerd: signal sender read unexpected number of bytes: %d", rc); 98 // Report success after sending a signal 101 if (syscall(SYS_tgkill, msg.pid, msg.tid, msg.signal) != 0) { 105 if (kill(msg.pid, msg.signal) ! 148 send_signal(pid_t pid, pid_t tid, int signal) argument [all...] |
H A D | tombstone.h | 36 const std::set<pid_t>& siblings, int signal, int original_si_code,
|
/system/core/libmemunreachable/ |
H A D | ScopedSignalHandler.h | 21 #include <signal.h> 39 void install(int signal, F&& f) { argument 43 [=](int signal, siginfo_t* si, void* uctx) { 44 f(*this, signal, si, uctx); 48 act.sa_sigaction = [](int signal, siginfo_t* si, void* uctx) { 49 handler_(signal, si, uctx); 53 int ret = sigaction(signal, &act, &old_act_); 58 signal_ = signal;
|
H A D | ThreadCapture.cpp | 84 bool ReleaseThread(pid_t tid, unsigned int signal); 86 void PtraceDetach(pid_t tid, unsigned int signal); 176 // Detatches from a thread, delivering signal if nonzero, logs on error 177 void ThreadCaptureImpl::PtraceDetach(pid_t tid, unsigned int signal) { argument 178 void* sig_ptr = reinterpret_cast<void*>(static_cast<uintptr_t>(signal)); 275 unsigned int signal = WSTOPSIG(status); local 277 switch (signal) { 288 ALOGE("unexpected signal %d with PTRACE_EVENT_STOP for thread %d of process %d", 289 signal, tid, pid_); 293 // signal 309 ReleaseThread(pid_t tid, unsigned int signal) argument [all...] |
H A D | HeapWalker.h | 20 #include <signal.h> 59 [=](ScopedSignalHandler& handler, int signal, siginfo_t* siginfo, void* uctx) { 60 this->HandleSegFault(handler, signal, siginfo, uctx);
|
/system/core/libnativebridge/tests/ |
H A D | DummyNativeBridge2.cpp | 21 #include <signal.h> 59 extern "C" android::NativeBridgeSignalHandlerFn native_bridge2_get_signal_handler(int signal) { argument 60 if (signal == SIGSEGV) {
|
H A D | NativeBridge2Signal_test.cpp | 19 #include <signal.h>
|
/system/core/libprocessgroup/include/processgroup/ |
H A D | processgroup.h | 25 int killProcessGroup(uid_t uid, int initialPid, int signal);
|
/system/core/toolbox/ |
H A D | toolbox.c | 1 #include <signal.h> 36 static void SIGPIPE_handler(int signal) { argument 52 signal(SIGPIPE, SIGPIPE_handler);
|
/system/vold/ |
H A D | Process.h | 24 static int killProcessesWithOpenFiles(const char *path, int signal); 39 void vold_killProcessesWithOpenFiles(const char *path, int signal);
|
H A D | Process.cpp | 28 #include <signal.h> 173 extern "C" void vold_killProcessesWithOpenFiles(const char *path, int signal) { argument 174 Process::killProcessesWithOpenFiles(path, signal); 180 int Process::killProcessesWithOpenFiles(const char *path, int signal) { argument 214 if (signal != 0) { 215 SLOGW("Sending %s to process %d", strsignal(signal), pid); 216 kill(pid, signal);
|
/system/core/include/utils/ |
H A D | Condition.h | 64 void signal(); 66 void signal(WakeUpType type) { function in class:android::Condition 68 signal(); 134 inline void Condition::signal() { function in class:android::Condition
|
/system/core/include/nativebridge/ |
H A D | native_bridge.h | 21 #include <signal.h> 30 // Function pointer type for sigaction. This is mostly the signature of a signal handler, except 31 // for the return type. The runtime needs to know whether the signal was handled or should be given 78 // Returns a signal handler that the bridge would like to be managed. Only valid for a native 80 // version 2, or if it doesn't have a signal handler it wants to be known. 81 NativeBridgeSignalHandlerFn NativeBridgeGetSignalHandler(int signal); 159 // A callback to retrieve a native bridge's signal handler for the specified signal. The runtime 160 // will ensure that the signal handler is being called after the runtime's own handler, but before 165 // signal [I [all...] |
/system/core/libsparse/ |
H A D | simg_dump.py | 18 import getopt, posixpath, signal, struct, sys namespace 29 signal.signal(signal.SIGPIPE, signal.SIG_DFL)
|
/system/core/adb/ |
H A D | fdevent_test.h | 28 ASSERT_NE(SIG_ERR, signal(SIGPIPE, SIG_IGN));
|
/system/update_engine/common/ |
H A D | terminator.cc | 30 signal(SIGTERM, HandleSignal);
|
H A D | terminator.h | 20 #include <signal.h> 29 // Initializes the terminator and sets up signal handlers. 50 // The signal handler.
|
/system/connectivity/shill/dbus/ |
H A D | chromeos_dhcpcd_listener.cc | 54 match_rule_(base::StringPrintf("type='signal', interface='%s'", 97 // Only interested in signal message. 105 std::unique_ptr<dbus::Signal> signal( 108 // Verify the signal comes from the interface that we interested in. 109 if (signal->GetInterface() != kDBusInterfaceName) { 113 string sender = signal->GetSender(); 114 string member_name = signal->GetMember(); 115 dbus::MessageReader reader(signal.get()); 145 LOG(INFO) << "Ignore signal: " << member_name;
|
/system/update_engine/ |
H A D | dbus_test_utils.h | 31 mock_signal_handler, mock_proxy, signal) \ 34 Register##signal##SignalHandler(::testing::_, ::testing::_)) \ 48 // Returns whether the signal handler is registered.
|
/system/core/crash_reporter/ |
H A D | user_collector_test.cc | 96 int signal; local 101 &pid, &signal, &uid, &gid, &exec_name)); 103 EXPECT_EQ(11, signal); 108 &pid, &signal, &uid, &gid, &exec_name)); 110 EXPECT_EQ(6, signal); 116 &pid, &signal, &uid, &gid, &exec_name)); 119 &pid, &signal, &uid, &gid, &exec_name)); 123 &pid, &signal, &uid, &gid, &exec_name)); 126 &pid, &signal, &uid, &gid, &exec_name)); 129 &pid, &signal, [all...] |