Home
last modified time | relevance | path

Searched full:signal (Results 1 – 25 of 468) sorted by relevance

12345678910>>...19

/qemu/bsd-user/freebsd/
H A Dtarget_os_signal.h10 /* Compare to sys/signal.h */
26 #define TARGET_SIGTERM 15 /* software termination signal from kill */
28 #define TARGET_SIGSTOP 17 /* sendable stop signal not from tty */
29 #define TARGET_SIGTSTP 18 /* stop signal from tty */
34 #define TARGET_SIGIO 23 /* input/output possible signal */
41 #define TARGET_SIGUSR1 30 /* user defined signal 1 */
42 #define TARGET_SIGUSR2 31 /* user defined signal 2 */
53 #define TARGET_SIG_DFL ((abi_long)0) /* default signal handling */
54 #define TARGET_SIG_IGN ((abi_long)1) /* ignore signal */
55 #define TARGET_SIG_ERR ((abi_long)-1) /* error return from signal */
[all …]
/qemu/bsd-user/netbsd/
H A Dtarget_os_signal.h22 #define TARGET_SIGTERM 15 /* software termination signal from kill */
24 #define TARGET_SIGSTOP 17 /* sendable stop signal not from tty */
25 #define TARGET_SIGTSTP 18 /* stop signal from tty */
30 #define TARGET_SIGIO 23 /* input/output possible signal */
37 #define TARGET_SIGUSR1 30 /* user defined signal 1 */
38 #define TARGET_SIGUSR2 31 /* user defined signal 2 */
48 #define TARGET_SA_ONSTACK 0x0001 /* take signal on signal stack */
49 #define TARGET_SA_RESTART 0x0002 /* restart system on signal return */
50 #define TARGET_SA_RESETHAND 0x0004 /* reset to SIG_DFL when taking signal */
51 #define TARGET_SA_NODEFER 0x0010 /* don't mask the signal we're delivering */
[all …]
/qemu/bsd-user/openbsd/
H A Dtarget_os_signal.h22 #define TARGET_SIGTERM 15 /* software termination signal from kill */
24 #define TARGET_SIGSTOP 17 /* sendable stop signal not from tty */
25 #define TARGET_SIGTSTP 18 /* stop signal from tty */
30 #define TARGET_SIGIO 23 /* input/output possible signal */
37 #define TARGET_SIGUSR1 30 /* user defined signal 1 */
38 #define TARGET_SIGUSR2 31 /* user defined signal 2 */
48 #define TARGET_SA_ONSTACK 0x0001 /* take signal on signal stack */
49 #define TARGET_SA_RESTART 0x0002 /* restart system on signal return */
50 #define TARGET_SA_RESETHAND 0x0004 /* reset to SIG_DFL when taking signal */
51 #define TARGET_SA_NODEFER 0x0010 /* don't mask the signal we're delivering */
[all …]
/qemu/include/user/
H A Dsafe-syscall.h2 * safe-syscall.h: prototypes for linux-user signal-race-safe syscalls
26 * Call a system call if guest signal not pending.
28 * may return -1 with errno == QEMU_ERESTARTSYS if a signal was pending.
48 * a little less efficient if a signal is delivered at the 'wrong' moment.
54 * all syscalls which change the thread's signal mask.
72 * signal could arrive just before we make the host syscall inside libc,
93 * section of host native assembly. If a signal occurs, our signal
97 * -QEMU_ERESTARTSYS" code path instead, and then exit the signal handler
101 * the guest signal handler as usual.
104 * (1) signal came in just before we took the host syscall (a race);
[all …]
H A Dsignal.h2 * Signal-related declarations.
15 * @sig: target signal.
17 * On success, return the host signal between 0 (inclusive) and NSIG
18 * (exclusive) corresponding to the target signal @sig. Return any other value
/qemu/util/
H A Dcoroutine-sigaltstack.c33 #error "SafeStack is not compatible with code run in alternate signal stacks"
53 /** Information for the signal handler (trampoline) */
93 * (from the signal handler when it is not signal handling, read ahead
110 * This is used as the signal handler. This is called with the brand new stack
111 * (thanks to sigaltstack). We have to return, given that this is a signal
114 static void coroutine_trampoline(int signal) in coroutine_trampoline() argument
128 * this is a signal handler and we have to do a return "soon". Then the in coroutine_trampoline()
162 * prepare a stack, with it delivering a signal to ourselves and then in qemu_coroutine_new()
179 * Preserve the SIGUSR2 signal state, block SIGUSR2, in qemu_coroutine_new()
180 * and establish our signal handler. The signal will in qemu_coroutine_new()
[all …]
/qemu/linux-user/
H A Dsignal.c34 #include "signal-common.h"
35 #include "host-signal.h"
39 #include "user/signal.h"
56 * defines TARGET_NSIG as TARGET_SIGRTMAX and the first signal is 1.
57 * Signal number 0 is reserved for use as kill(pid, 0), to test whether
58 * a process exists without sending it a signal.
198 * are host signal set, not guest ones. Returns -QEMU_ERESTARTSYS if
199 * a signal was already pending and the syscall must be restarted, or
243 /* Just set the guest's signal mask to the specified value; the
274 * This is the X/Open sanctioned signal stack switching. in target_sigsp()
[all …]
H A Dtrace-events3 # signal.c
5 signal_do_sigaction_guest(int sig, int max) "target signal %d (MAX %d)"
6 signal_do_sigaction_host(int sig, int max) "host signal %d (MAX %d)"
7 # */signal.c
12 user_dump_core_and_abort(void *env, int target_sig, int host_sig) "env=%p signal %d (host %d)"
13 user_handle_signal(void *env, int target_sig) "env=%p signal %d"
14 user_host_signal(void *env, int host_sig, int target_sig) "env=%p signal %d (target %d)"
15 user_queue_signal(void *env, int target_sig) "env=%p signal %d"
H A Dsignal-common.h75 * Block all signals, and arrange that the signal mask is returned to
79 * signal and restart execution of the syscall.
88 * Return value: non-zero if there was a pending signal, zero if not.
90 int block_signals(void); /* Returns non zero if signal pending */
93 * process_sigsuspend_mask: read and apply syscall-local signal mask
95 * Read the guest signal mask from @sigset, length @sigsize.
96 * Convert that to a host signal mask and save it to sigpending_mask.
H A Dstrace.h29 * @target_signum: target signal being taken
30 * @tinfo: target_siginfo_t which will be passed to the guest for the signal
32 * Print strace output indicating that this signal is being taken by the guest,
/qemu/bsd-user/
H A Dsignal.c27 #include "user/signal.h"
30 #include "signal-common.h"
33 #include "host-signal.h"
57 * The BSD ABIs use the same signal numbers across all the CPU architectures, so
90 /* Adjust the signal context to rewind out of safe-syscall if we're in it */
103 * Note: The following take advantage of the BSD signal property that all
210 * more specific signal info will set). in host_to_target_siginfo_noswap()
234 * We have to go based on the signal number now to figure out in host_to_target_siginfo_noswap()
339 * this will only affect this thread's signal mask. We don't use in block_signals()
349 /* Returns 1 if given signal should dump core if not handled. */
[all …]
H A Dtrace-events3 # bsd-user/signal.c
8 user_dump_core_and_abort(void *env, int target_sig, int host_sig) "env=%p signal %d (host %d)"
9 user_handle_signal(void *env, int target_sig) "env=%p signal %d"
10 user_host_signal(void *env, int host_sig, int target_sig) "env=%p signal %d (target %d("
11 user_queue_signal(void *env, int target_sig) "env=%p signal %d"
H A Dsignal-common.h15 * Block all signals, and arrange that the signal mask is returned to
19 * signal and restart execution of the syscall.
28 * Return value: non-zero if there was a pending signal, zero if not.
30 int block_signals(void); /* Returns non zero if signal pending */
56 * and other signal independent SI_ codes have bit 16 set, so we only use the top
/qemu/include/gdbstub/
H A Duser.h17 * @sig: if non-zero, the signal number which caused us to stop
24 * stop packet to tell gdb that we have stopped because of this signal.
28 * return, the return value is a signal to deliver to the target,
29 * or 0 if no signal should be delivered, ie the signal that caused
37 * @sig: signal number
/qemu/linux-user/mips/
H A Dsignal.c22 #include "signal-common.h"
69 uint32_t sf_code[2]; /* signal trampoline */
84 uint32_t rs_code[2]; /* signal trampoline */
89 /* Install trampoline to jump back from signal handler */
198 /* compare linux/arch/mips/kernel/signal.c:setup_frame() */
219 * Arguments to signal handler: in setup_frame()
221 * a0 = signal number in setup_frame()
225 * $25 and PC point to the signal handler, $29 points to the in setup_frame()
319 * Arguments to signal handler: in setup_rt_frame()
321 * a0 = signal number in setup_rt_frame()
[all …]
H A Dtarget_signal.h21 #define TARGET_SIGUSR1 16 /* User-defined signal 1 (POSIX). */
22 #define TARGET_SIGUSR2 17 /* User-defined signal 2 (POSIX). */
43 #define TARGET_SIG_SETMASK 3 /* for setting the signal mask */
72 /* compare linux/arch/mips/kernel/signal.c:setup_frame() */
/qemu/tests/image-fuzzer/
H A Drunner.py23 import signal
55 """ Convert a numeric value of a system signal to the string one
58 for k, v in signal.__dict__.items():
65 or kill signal depending on the result of execution.
69 """Exception for signal.alarm events."""
76 signal.signal(signal.SIGALRM, handler)
77 signal.alarm(600)
78 term_signal = signal.SIGKILL
86 signal.alarm(0)
203 its exit status. If the application was killed by a signal, the test
[all …]
/qemu/docs/sphinx/
H A Ddbusdomain.py101 signal = False variable in DBusMember
157 anno = "signal " if self.signal else "method "
161 if not self.signal and "noreply" not in self.options:
171 Implementation of ``dbus:signal``.
184 signal = True variable in DBusSignal
187 return _("%s() (%s signal)") % (name, ifacename)
335 "signal": ObjType(_("signal"), "sig", "obj"),
341 "signal": DBusSignal,
H A Ddbusdoc.py78 def add_signal(self, signal): argument
79 self.add_line(f".. dbus:signal:: {signal.name}")
82 for arg in signal.args:
85 for line in prepare_docstring("\n" + signal.doc_string):
/qemu/tests/tcg/multiarch/
H A Dlate-attach.c7 #include <signal.h>
26 fprintf(stderr, "Unexpected signal %d\n", sig); in main()
35 fprintf(stderr, "Unexpected signal %d\n", sig); in main()
/qemu/linux-user/i386/
H A Dvdso.S81 * Signal return handlers.
90 * we have for signal unwinding. This is far simpler than the
109 * While this frame is marked as a signal frame, that only applies to how
111 * that arrived here, from the inner frame, is not marked as a signal frame
/qemu/linux-user/s390x/
H A Dsignal.c22 #include "signal-common.h"
103 /* This is the X/Open sanctioned signal stack switching. */ in get_sigframe()
108 /* This is the legacy signal stack switching. */ in get_sigframe()
189 /* Create struct sigcontext on the signal stack. */ in setup_frame()
195 /* Create _sigregs on the signal stack */ in setup_frame()
205 /* Create sigregs_ext on the signal stack. */ in setup_frame()
218 /* Set up registers for signal handler */ in setup_frame()
269 /* Create siginfo on the signal stack. */ in setup_rt_frame()
272 /* Create ucontext on the signal stack. */ in setup_rt_frame()
284 /* Set up registers for signal handler */ in setup_rt_frame()
/qemu/ui/
H A Ddbus-console.c331 "swapped-signal::closed", listener_vanished_cb, listener, in dbus_console_register_listener()
572 "swapped-signal::handle-register-listener", in dbus_display_console_new()
574 "swapped-signal::handle-set-uiinfo", in dbus_display_console_new()
584 "swapped-signal::handle-press", dbus_kbd_press, ddc, in dbus_display_console_new()
585 "swapped-signal::handle-release", dbus_kbd_release, ddc, in dbus_display_console_new()
592 "swapped-signal::handle-set-abs-position", dbus_mouse_set_pos, ddc, in dbus_display_console_new()
593 "swapped-signal::handle-rel-motion", dbus_mouse_rel_motion, ddc, in dbus_display_console_new()
594 "swapped-signal::handle-press", dbus_mouse_press, ddc, in dbus_display_console_new()
595 "swapped-signal::handle-release", dbus_mouse_release, ddc, in dbus_display_console_new()
602 "swapped-signal::handle-send-event", dbus_touch_send_event, ddc, in dbus_display_console_new()
/qemu/linux-user/mips64/
H A Dtarget_signal.h21 #define TARGET_SIGUSR1 16 /* User-defined signal 1 (POSIX). */
22 #define TARGET_SIGUSR2 17 /* User-defined signal 2 (POSIX). */
43 #define TARGET_SIG_SETMASK 3 /* for setting the signal mask */
75 /* compare linux/arch/mips/kernel/signal.c:setup_frame() */
/qemu/linux-user/openrisc/
H A Dsignal.c22 #include "signal-common.h"
59 /* Set up a signal frame. */
79 /* Honor redzone now. If we swap to signal stack, no need to waste in get_sigframe()
118 /* Set up registers for signal handler */ in setup_rt_frame()
127 /* When setting the PC for the signal handler, exit delay slot. */ in setup_rt_frame()

12345678910>>...19