/aosp_15_r20/external/strace/ |
H A D | README-linux-ptrace | 13 process (tracer). Attachment and subsequent commands are per-thread: in 14 multi-threaded process, every thread can be individually attached to a 17 (possibly multi-threaded) process". Ptrace commands are always sent to 28 ptrace commands from the tracer is called ptrace-stop. Ptrace-stops can 29 be further subdivided into signal-delivery-stop, group-stop, 30 syscall-stop and so on. They are described in detail later. 35 When a (possibly multi-threaded) process receives a killing signal (a 36 signal set to SIG_DFL and whose default action is to kill the process), 37 all threads exit. Tracees report their death to the tracer(s). This is 38 not a ptrace-stop (because tracer can't query tracee status such as [all …]
|
/aosp_15_r20/external/python/cpython3/Modules/clinic/ |
D | signalmodule.c.h | 7 "--\n" 28 goto exit; in signal_default_int_handler() 31 if (signalnum == -1 && PyErr_Occurred()) { in signal_default_int_handler() 32 goto exit; in signal_default_int_handler() 37 exit: in signal_default_int_handler() 45 "--\n" 63 if (seconds == -1 && PyErr_Occurred()) { in signal_alarm() 64 goto exit; in signal_alarm() 67 if ((_return_value == -1) && PyErr_Occurred()) { in signal_alarm() 68 goto exit; in signal_alarm() [all …]
|
/aosp_15_r20/external/ltp/testcases/kernel/syscalls/sigrelse/ |
H A D | sigrelse01.c | 21 * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. 35 * OS Test - Silicon Graphics, Inc. Eagan, Minnesota 44 * CO-PILOT : Dave Baumgartner 63 * send alarm signal to speed up timeout 64 * wait for child to terminate and check exit value 66 * if exit value is EXIT_OK 67 * get message from pipe (contains array of signal counters) 68 * loop through array of signal counters and record any 72 * else if exit is SIG_CAUGHT then BROK (signal caught 74 * else if exit is WRITE_BROK then BROK (write() to pipe failed) [all …]
|
/aosp_15_r20/external/tensorflow/tensorflow/python/distribute/failure_handling/ |
H A D | failure_handling.py | 7 # http://www.apache.org/licenses/LICENSE-2.0 20 termination (preemption or maintenance) of workers in multi-worker synchronous 25 import signal 47 # one that receives a preemption signal) sets _received_own_sigterm, 56 """Returns a directory for non-chief worker to save checkpoint.""" 77 platforms. Thus `PreemptionCheckpointHandler` may take a user-defined 81 `False` otherwise. The function should be lightweight and non-blocking so that 82 resources can be cleaned up properly if no termination signal is ever raised 85 * How to exit the program 88 `PreemptionCheckpointHandler` executes after saving the checkpoint to exit the [all …]
|
/aosp_15_r20/external/selinux/python/sepolgen/tests/test_data/ |
H A D | httpd.log | 1 …signal interface=org.freedesktop.NetworkManager member=DeviceActivationStage dest=org.freedesktop.… 2 …signal interface=org.freedesktop.NetworkManager member=DeviceActivationStage dest=org.freedesktop.… 3 …signal interface=org.freedesktop.NetworkManager member=StateChange dest=org.freedesktop.DBus spid=… 4 …signal interface=org.freedesktop.NetworkManager member=StateChange dest=org.freedesktop.DBus spid=… 5 …signal interface=org.freedesktop.NetworkManager member=DeviceActivationFailed dest=org.freedesktop… 6 …signal interface=org.freedesktop.NetworkManager member=DeviceActivationStage dest=org.freedesktop.… 7 …signal interface=org.freedesktop.NetworkManager member=DeviceActivationStage dest=org.freedesktop.… 8 …signal interface=org.freedesktop.NetworkManager member=StateChange dest=org.freedesktop.DBus spid=… 9 …signal interface=org.freedesktop.NetworkManager member=DeviceActivating dest=org.freedesktop.DBus … 10 …:staff_t:s0 tcontext=staff_u:staff_r:staff_t:s0 tclass=dbus : exe="/bin/dbus-daemon" (sauid=81, ho… [all …]
|
/aosp_15_r20/external/bcc/tools/ |
H A D | exitsnoop_example.txt | 4 - is implemented using BPF, which requires CAP_SYS_ADMIN and 6 - traces sched_process_exit tracepoint in kernel/exit.c 7 - includes processes by root and all users 8 - includes processes in containers 9 - includes processes that become zombie 12 when run in a loop that is interrupted with Ctrl-C from the terminal: 16 # for((i=65;i<100;i+=5)); do bash -c "sleep 1.$i;exit $i"; done 29 sleep 19014 19013 19014 0.23 signal 2 (INT) 30 bash 19013 17656 19013 0.23 signal 2 (INT) 37 the process exit (EXIT_CODE). [all …]
|
/aosp_15_r20/art/odrefresh/ |
H A D | odr_metrics_record_test.cc | 8 * http://www.apache.org/licenses/LICENSE-2.0 23 #include "android-base/result-gmock.h" 24 #include "android-base/stringprintf.h" 57 file_path_ = scratch_dir_->GetPath() + "/metrics-record.xml"; in SetUp() 68 R"(<primary_bcp_dex2oat_result status="1" exit-code="-1" signal="0" />)"; 70 R"(<secondary_bcp_dex2oat_result status="2" exit-code="15" signal="0" />)"; 72 R"(<system_server_dex2oat_result status="3" exit-code="-1" signal="9" />)"; 91 expected.primary_bcp_dex2oat_result = OdrMetricsRecord::Dex2OatExecResult(1, -1, 0); in TEST_F() 93 expected.system_server_dex2oat_result = OdrMetricsRecord::Dex2OatExecResult(3, -1, 9); in TEST_F() 115 ASSERT_EQ(expected.primary_bcp_dex2oat_result.signal, actual.primary_bcp_dex2oat_result.signal); in TEST_F() [all …]
|
/aosp_15_r20/external/ltp/testcases/kernel/syscalls/kill/ |
H A D | kill02.c | 21 * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. 36 OS Test - Silicon Graphics, Inc. 38 TEST IDENTIFIER : kill02 Sending a signal to processes with the same process group ID. 44 CO-PILOT : Barrie Kletscher 50 1. Sending a signal to pid of zero sends to all processes whose process 53 2. Sending a signal to pid of zero does not send to processes in another process group. 58 kiltcs02 1 PASS The signal was sent to all processes in the process group. 59 kiltcs02 2 PASS The signal was not sent to selective processes that were not in the process group. 62 kiltcs02 1 FAIL The signal was not sent to all processes in the process group. 63 kiltcs02 2 FAIL The signal was sent to a process that was not in the process group. [all …]
|
/aosp_15_r20/prebuilts/go/linux-x86/src/os/signal/ |
D | doc.go | 2 // Use of this source code is governed by a BSD-style 6 Package signal implements access to incoming signals. 8 Signals are primarily used on Unix-like systems. For the use of this 21 synchronous signal into a run-time panic. 27 Of the asynchronous signals, the SIGHUP signal is sent when a program 28 loses its controlling terminal. The SIGINT signal is sent when the 30 which by default is ^C (Control-C). The SIGQUIT signal is sent when 32 by default is ^\ (Control-Backslash). In general you can cause a 33 program to simply exit by pressing ^C, and you can cause it to exit 38 By default, a synchronous signal is converted into a run-time panic. A [all …]
|
/aosp_15_r20/external/linux-kselftest/tools/testing/selftests/powerpc/tm/ |
H A D | tm-signal-pagefault.c | 1 // SPDX-License-Identifier: GPL-2.0 5 * This test starts a transaction and triggers a signal, forcing a pagefault to 6 * happen when the kernel signal handling code touches the user signal stack. 8 * In order to avoid pre-faulting the signal stack memory and to force the 9 * pagefault to happen precisely in the kernel signal handling code, the 12 * Further pagefaults are triggered by crafting the signal handler's ucontext 14 * the same mechanism used to avoid pre-faulting the signal stack memory. 31 #include <signal.h> 44 * Data that will be copied into the faulting pages (instead of zero-filled 46 * when we return from the signal handler. Since we are making the signal [all …]
|
/aosp_15_r20/external/ltp/testcases/open_posix_testsuite/conformance/interfaces/pthread_rwlock_timedrdlock/ |
H A D | 6-2.c | 8 * If a signal that causes a signal handler to be executed is delivered to 9 * a thread blocked on a read-write lock via a call to pthread_rwlock_timedrdlock(), 10 * upon return from the signal handler the thread shall resume waiting for the lock 14 * 1. main thread create read-write lock 'rwlock', and lock it for writing 22 * 6. While sig_thread sleeping in signal handler, main thread unlock 'rwlock' 30 #include <signal.h> 40 3: just before child thread exit; 66 printf("sig_handler: signal is handled by thread\n"); in sig_handler() 74 printf("sig_handler: signal is not handled by thread\n"); in sig_handler() 75 exit(PTS_UNRESOLVED); in sig_handler() [all …]
|
/aosp_15_r20/external/ltp/testcases/open_posix_testsuite/conformance/interfaces/pthread_rwlock_timedwrlock/ |
H A D | 6-2.c | 8 * If a signal that causes a signal handler to be executed is delivered to 9 * a thread blocked on a read-write lock via a call to pthread_rwlock_timedwrlock(), 10 * upon return from the signal handler the thread shall resume waiting for the lock 14 * 1. main thread create read-write lock 'rwlock', and lock it for writing 22 * 6. While sig_thread sleeping in signal handler, main thread unlock 'rwlock' 30 #include <signal.h> 40 3: just before child thread exit; 66 printf("sig_handler: signal is handled by thread\n"); in sig_handler() 74 printf("sig_handler: signal is not handled by thread\n"); in sig_handler() 75 exit(PTS_UNRESOLVED); in sig_handler() [all …]
|
/aosp_15_r20/external/cronet/third_party/libevent/test/ |
H A D | regress.c | 46 #include <signal.h> 52 #include <signal.h> 60 #include "event-internal.h" 105 if (event_add(arg, NULL) == -1) in simple_read_cb() 106 exit(1); in simple_read_cb() 123 if (len == -1) in simple_write_cb() 137 len = sizeof(wbuf) - woff; in multiple_write_cb() 140 if (len == -1) { in multiple_write_cb() 157 if (event_add(ev, NULL) == -1) in multiple_write_cb() 158 exit(1); in multiple_write_cb() [all …]
|
/aosp_15_r20/external/rust/android-crates-io/crates/tokio/src/process/unix/ |
D | reap.rs | 3 use crate::signal::unix::InternalStream; 23 signal: S, field 33 fn deref(&self) -> &Self::Target { in deref() 43 pub(crate) fn new(inner: W, orphan_queue: Q, signal: S) -> Self { in new() 47 signal, in new() 51 fn inner(&self) -> &W { in inner() 55 pub(crate) fn inner_mut(&mut self) -> &mut W { in inner_mut() 68 fn poll(mut self: Pin<&mut Self>, cx: &mut Context<'_>) -> Poll<Self::Output> { in poll() 72 // make progress. We can use the delivery of a SIGCHLD signal as a in poll() 75 // However, we will register for a notification on the next signal in poll() [all …]
|
/aosp_15_r20/external/ltp/testcases/open_posix_testsuite/conformance/interfaces/pthread_rwlock_wrlock/ |
H A D | 2-1.c | 8 * If a signal is delivered to a thread waiting for a read-write lock for writing, upon 9 * return from the signal handler the thread resumes waiting for the read-write lock for 13 * 1. main thread create read-write lock 'rwlock', and lock it for writing 25 #include <signal.h> 36 3: just before child thread exit; 49 printf("sig_handler: handled signal SIGUSR1\n"); in sig_handler() 52 printf("signal was not handled by sig_thread\n"); in sig_handler() 53 exit(PTS_UNRESOLVED); in sig_handler() 62 /* Set up signal handler for SIGUSR1 */ in th_fn() 65 /* block all the signal while handling SIGUSR1 */ in th_fn() [all …]
|
/aosp_15_r20/external/ltp/testcases/kernel/mem/mtest06/ |
H A D | shmat1.c | 17 /* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA */ 23 /* History: July - 16 - 2001 Created by Manoj Iyer, IBM Austin TX. */ 26 /* July - 30 - 2001 Modified - Added function write_to_mem. */ 28 /* Aug - 14 - 2001 Modified - Added code to remove the shared */ 31 /* Aug - 15 - 2001 Modified - Added for loop to run the test */ 34 /* Oct - 22 - 2001 Modified - Fixed bad code in main(). */ 38 /* Nov - 09 - 2001 Modified - Removed compile errors */ 39 /* - added missing header file string.h */ 40 /* - removed unused variables. */ 41 /* - made read_ndx and write_ndx static variable*/ [all …]
|
/aosp_15_r20/prebuilts/clang/host/linux-x86/clang-r530567b/include/lldb/Host/ |
D | Host.h | 1 //===-- Host.h --------------------------------------------------*- C++ -*-===// 5 // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception 7 //===----------------------------------------------------------------------===// 18 #include "lldb/lldb-private-forward.h" 19 #include "lldb/lldb-private.h" 34 // Exit Type for inferior processes 37 Exit, // The status represents the return code from normal enumerator 38 // program exit (i.e. WIFEXITED() was true) 39 Signal, // The status represents the signal number that caused enumerator 40 // the program to exit (i.e. WIFSIGNALED() was true) [all …]
|
/aosp_15_r20/prebuilts/clang/host/linux-x86/clang-r536225/include/lldb/Host/ |
D | Host.h | 1 //===-- Host.h --------------------------------------------------*- C++ -*-===// 5 // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception 7 //===----------------------------------------------------------------------===// 18 #include "lldb/lldb-private-forward.h" 19 #include "lldb/lldb-private.h" 34 // Exit Type for inferior processes 37 Exit, // The status represents the return code from normal enumerator 38 // program exit (i.e. WIFEXITED() was true) 39 Signal, // The status represents the signal number that caused enumerator 40 // the program to exit (i.e. WIFSIGNALED() was true) [all …]
|
/aosp_15_r20/prebuilts/clang/host/linux-x86/clang-r530567/include/lldb/Host/ |
D | Host.h | 1 //===-- Host.h --------------------------------------------------*- C++ -*-===// 5 // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception 7 //===----------------------------------------------------------------------===// 18 #include "lldb/lldb-private-forward.h" 19 #include "lldb/lldb-private.h" 34 // Exit Type for inferior processes 37 Exit, // The status represents the return code from normal enumerator 38 // program exit (i.e. WIFEXITED() was true) 39 Signal, // The status represents the signal number that caused enumerator 40 // the program to exit (i.e. WIFSIGNALED() was true) [all …]
|
/aosp_15_r20/prebuilts/clang/host/linux-x86/clang-r522817/include/lldb/Host/ |
D | Host.h | 1 //===-- Host.h --------------------------------------------------*- C++ -*-===// 5 // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception 7 //===----------------------------------------------------------------------===// 18 #include "lldb/lldb-private-forward.h" 19 #include "lldb/lldb-private.h" 34 // Exit Type for inferior processes 37 Exit, // The status represents the return code from normal enumerator 38 // program exit (i.e. WIFEXITED() was true) 39 Signal, // The status represents the signal number that caused enumerator 40 // the program to exit (i.e. WIFSIGNALED() was true) [all …]
|
/aosp_15_r20/external/libwebsockets/lib/misc/ |
H A D | daemonize.c | 4 * http://www-theorie.physik.unizh.ch/~dpotter/howto/daemonize 6 * I contacted him 2007-04-16 about the license for the original code, 11 * Copyright (c)2006 - 2013 Andy Green <[email protected]> 21 #include <signal.h> 30 #include "private-lib-core.h" 49 exit(0); in child_handler() 55 exit(0); in child_handler() 64 exit(0); in child_handler() 75 exit(0); in child_handler() 79 exit(0); in child_handler() [all …]
|
/aosp_15_r20/external/ltp/testcases/open_posix_testsuite/conformance/interfaces/pthread_rwlock_rdlock/ |
H A D | 4-1.c | 8 * If a signal is delivered to a thread waiting for a read-write lock for reading, upon 9 * return from the signal handler the thread resumes waiting for the read-write lock for 13 * 1. main thread create read-write lock 'rwlock', and lock it for writing 25 #include <signal.h> 39 3: just before child thread exit; 49 printf("sig_handler: handled signal SIGUSR1\n"); in sig_handler() 52 printf("signal is not handled by sig_thread\n"); in sig_handler() 53 exit(PTS_UNRESOLVED); in sig_handler() 75 exit(PTS_FAIL); in th_fn() 82 exit(PTS_UNRESOLVED); in th_fn() [all …]
|
/aosp_15_r20/external/e2fsprogs/misc/ |
H A D | badblocks.c | 2 * badblocks.c - Bad blocks checker 14 * %Begin-Header% 17 * %End-Header% 22 * 93/05/26 - Creation from e2fsck 23 * 94/02/27 - Made a separate bad blocks checker 24 * 99/06/30...99/07/26 - Added non-destructive write-testing, 25 * configurable blocks-at-once parameter, 45 #include <signal.h> 65 #include "support/nls-enable.h" 79 * 2=non-destructive */ [all …]
|
/aosp_15_r20/external/tensorflow/tensorflow/python/distribute/ |
H A D | multi_process_runner.py | 7 # http://www.apache.org/licenses/LICENSE-2.0 15 """Multi-process runner for testing purpose.""" 21 import signal 42 # pylint: disable=g-import-not-at-top 67 # to be re-raised. 111 because TF 2.0 has some process-global data structures that have to be 117 via `test_main` defined in this file. Using this runner in non-test binaries 120 This class is not thread-safe. Child processes will inherit TF2 behavior flag. 154 to exit at approximately this many seconds after this utility is called. 155 We achieve this through `signal.alarm()` api. Note that this is best [all …]
|
/aosp_15_r20/prebuilts/go/linux-x86/src/runtime/ |
D | signal_unix.go | 2 // Use of this source code is governed by a BSD-style 17 // sigtable is inherently system dependent, and appears in OS-specific files, 19 // The sigtable array is indexed by a system signal number to get the flags 20 // and printable name of each signal. 43 // sigPreempt is the signal used for non-cooperative preemption. 45 // There's no good way to choose this signal, but there are some 48 // 1. It should be a signal that's passed-through by debuggers by 50 // SIGVTALRM, SIGPROF, and SIGWINCH, plus some glibc-internal signals. 56 // 3. It should be a signal that can happen spuriously without 58 // signal handler can't tell if it was caused by the real process [all …]
|