Home
last modified time | relevance | path

Searched refs:sig (Results 1 – 25 of 99) sorted by relevance

1234

/tools/lib/subcmd/
Dsigchain.c15 static void check_signum(int sig) in check_signum() argument
17 if (sig < 1 || sig >= SIGCHAIN_MAX_SIGNALS) in check_signum()
18 die("BUG: signal out of range: %d", sig); in check_signum()
21 static int sigchain_push(int sig, sigchain_fun f) in sigchain_push() argument
23 struct sigchain_signal *s = signals + sig; in sigchain_push()
24 check_signum(sig); in sigchain_push()
27 s->old[s->n] = signal(sig, f); in sigchain_push()
34 int sigchain_pop(int sig) in sigchain_pop() argument
36 struct sigchain_signal *s = signals + sig; in sigchain_pop()
37 check_signum(sig); in sigchain_pop()
[all …]
/tools/testing/selftests/bpf/progs/
Dtest_send_signal_kern.c7 __u32 sig = 0, pid = 0, status = 0, signal_thread = 0; variable
13 if (status != 0 || sig == 0 || pid == 0) in bpf_send_signal_test()
18 ret = bpf_send_signal_thread(sig); in bpf_send_signal_test()
20 ret = bpf_send_signal(sig); in bpf_send_signal_test()
/tools/testing/selftests/x86/
Dsysret_rip.c42 static void sethandler(int sig, void (*handler)(int, siginfo_t *, void *), in sethandler() argument
50 if (sigaction(sig, &sa, 0)) in sethandler()
54 static void clearhandler(int sig) in clearhandler() argument
60 if (sigaction(sig, &sa, 0)) in clearhandler()
69 static void sigsegv_for_sigreturn_test(int sig, siginfo_t *info, void *ctx_void) in sigsegv_for_sigreturn_test() argument
85 static void sigusr1(int sig, siginfo_t *info, void *ctx_void) in sigusr1() argument
113 static void sigsegv_for_fallthrough(int sig, siginfo_t *info, void *ctx_void) in sigsegv_for_fallthrough() argument
Dsingle_step_syscall.c36 static void sethandler(int sig, void (*handler)(int, siginfo_t *, void *), in sethandler() argument
44 if (sigaction(sig, &sa, 0)) in sethandler()
48 static void clearhandler(int sig) in clearhandler() argument
54 if (sigaction(sig, &sa, 0)) in clearhandler()
72 static void sigtrap(int sig, siginfo_t *info, void *ctx_void) in sigtrap() argument
99 static void print_and_longjmp(int sig, siginfo_t *si, void *ctx_void) in print_and_longjmp() argument
103 printf("\tGot %s with RIP=%lx, TF=%ld\n", signames[sig], in print_and_longjmp()
Dioperm.c25 static void sethandler(int sig, void (*handler)(int, siginfo_t *, void *), in sethandler() argument
33 if (sigaction(sig, &sa, 0)) in sethandler()
38 static void clearhandler(int sig) in clearhandler() argument
44 if (sigaction(sig, &sa, 0)) in clearhandler()
50 static void sigsegv(int sig, siginfo_t *si, void *ctx_void) in sigsegv() argument
Dsyscall_arg_fault.c23 static void sethandler(int sig, void (*handler)(int, siginfo_t *, void *), in sethandler() argument
31 if (sigaction(sig, &sa, 0)) in sethandler()
48 static void sigsegv_or_sigbus(int sig, siginfo_t *info, void *ctx_void) in sigsegv_or_sigbus() argument
67 static void sigtrap(int sig, siginfo_t *info, void *ctx_void) in sigtrap() argument
90 static void sigill(int sig, siginfo_t *info, void *ctx_void) in sigill() argument
Dmov_ss_trap.c98 static void sethandler(int sig, void (*handler)(int, siginfo_t *, void *), in sethandler() argument
106 if (sigaction(sig, &sa, 0)) in sethandler()
117 static void sigtrap(int sig, siginfo_t *si, void *ctx_void) in sigtrap() argument
126 static void handle_and_return(int sig, siginfo_t *si, void *ctx_void) in handle_and_return() argument
130 printf("\tGot %s with RIP=%lx\n", signames[sig], in handle_and_return()
134 static void handle_and_longjmp(int sig, siginfo_t *si, void *ctx_void) in handle_and_longjmp() argument
138 printf("\tGot %s with RIP=%lx\n", signames[sig], in handle_and_longjmp()
Dsyscall_nt.c21 static void sethandler(int sig, void (*handler)(int, siginfo_t *, void *), in sethandler() argument
29 if (sigaction(sig, &sa, 0)) in sethandler()
33 static void sigtrap(int sig, siginfo_t *si, void *ctx_void) in sigtrap() argument
Diopl.c25 static void sethandler(int sig, void (*handler)(int, siginfo_t *, void *), in sethandler() argument
33 if (sigaction(sig, &sa, 0)) in sethandler()
38 static void clearhandler(int sig) in clearhandler() argument
44 if (sigaction(sig, &sa, 0)) in clearhandler()
50 static void sigsegv(int sig, siginfo_t *si, void *ctx_void) in sigsegv() argument
Dsigreturn.c144 static void sethandler(int sig, void (*handler)(int, siginfo_t *, void *), in sethandler() argument
152 if (sigaction(sig, &sa, 0)) in sethandler()
156 static void clearhandler(int sig) in clearhandler() argument
162 if (sigaction(sig, &sa, 0)) in clearhandler()
394 static void validate_signal_ss(int sig, ucontext_t *ctx) in validate_signal_ss() argument
413 sig); in validate_signal_ss()
438 static void sigusr1(int sig, siginfo_t *info, void *ctx_void) in sigusr1() argument
442 validate_signal_ss(sig, ctx); in sigusr1()
478 static void sigtrap(int sig, siginfo_t *info, void *ctx_void) in sigtrap() argument
482 validate_signal_ss(sig, ctx); in sigtrap()
[all …]
Dentry_from_vm86.c30 static void sethandler(int sig, void (*handler)(int, siginfo_t *, void *), in sethandler() argument
38 if (sigaction(sig, &sa, 0)) in sethandler()
42 static void clearhandler(int sig) in clearhandler() argument
48 if (sigaction(sig, &sa, 0)) in clearhandler()
54 static void sighandler(int sig, siginfo_t *info, void *ctx_void) in sighandler() argument
65 if (sig == SIGSEGV) in sighandler()
67 else if (sig == SIGILL) in sighandler()
Dvdso_restorer.c35 static void handler_with_siginfo(int sig, siginfo_t *info, void *ctx_void) in handler_with_siginfo() argument
40 static void handler_without_siginfo(int sig) in handler_without_siginfo() argument
Dunwind_vdso.c46 static void sethandler(int sig, void (*handler)(int, siginfo_t *, void *), in sethandler() argument
54 if (sigaction(sig, &sa, 0)) in sethandler()
107 static void sigtrap(int sig, siginfo_t *info, void *ctx_void) in sigtrap() argument
/tools/perf/ui/tui/
Dsetup.c39 static void ui__sigwinch(int sig __maybe_unused) in ui__sigwinch()
100 static void ui__signal_backtrace(int sig) in ui__signal_backtrace() argument
106 psignal(sig, "perf"); in ui__signal_backtrace()
118 static void ui__signal(int sig) in ui__signal() argument
121 psignal(sig, "perf"); in ui__signal()
/tools/perf/tests/
Dbp_signal.c102 static int __event(bool is_x, void *addr, int sig) in __event() argument
132 fcntl(fd, F_SETSIG, sig); in __event()
140 static int bp_event(void *addr, int sig) in bp_event() argument
142 return __event(true, addr, sig); in bp_event()
145 static int wp_event(void *addr, int sig) in wp_event() argument
147 return __event(false, addr, sig); in wp_event()
/tools/testing/selftests/powerpc/signal/
Dsignal_tm.c23 extern long tm_signal_self(pid_t pid, int sig, long *ret);
28 static void signal_handler(int sig) in signal_handler() argument
35 if (sig == SIGUSR1) in signal_handler()
Dsignal.c23 extern long signal_self(pid_t pid, int sig);
28 static void signal_handler(int sig) in signal_handler() argument
30 if (sig == SIGUSR1) in signal_handler()
/tools/testing/selftests/arm64/signal/
Dtest_signals_utils.c211 for (int sig = 1; sig < 32; sig++) in default_setup() local
212 sigaction(sig, &sa, NULL); in default_setup()
218 for (int sig = SIGRTMIN; sig <= SIGRTMAX; sig++) in default_setup() local
219 sigaction(sig, &sa, NULL); in default_setup()
/tools/perf/trace/beauty/
Dsignum.c8 int sig = arg->val; in syscall_arg__scnprintf_signum() local
10 switch (sig) { in syscall_arg__scnprintf_signum()
54 return scnprintf(bf, size, "%#x", sig); in syscall_arg__scnprintf_signum()
/tools/testing/selftests/powerpc/mm/
Dbad_accesses.c70 struct sigaction sig; in test() local
73 sig = (struct sigaction) { in test()
78 FAIL_IF(sigaction(SIGSEGV, &sig, NULL) != 0); in test()
/tools/io_uring/
Dsyscall.c48 unsigned int flags, sigset_t *sig) in io_uring_enter() argument
51 flags, sig, _NSIG / 8); in io_uring_enter()
/tools/testing/selftests/prctl/
Ddisable-tsc-ctxt-sw-stress-test.c39 static void sigsegv_expect(int sig) in sigsegv_expect() argument
59 static void sigsegv_fail(int sig) in sigsegv_fail() argument
/tools/testing/selftests/pidfd/
Dpidfd.h102 static inline int sys_pidfd_send_signal(int pidfd, int sig, siginfo_t *info, in sys_pidfd_send_signal() argument
105 return syscall(__NR_pidfd_send_signal, pidfd, sig, info, flags); in sys_pidfd_send_signal()
/tools/testing/selftests/ptrace/
Dpeeksiginfo.c15 static int sys_rt_sigqueueinfo(pid_t tgid, int sig, siginfo_t *uinfo) in sys_rt_sigqueueinfo() argument
17 return syscall(SYS_rt_sigqueueinfo, tgid, sig, uinfo); in sys_rt_sigqueueinfo()
21 int sig, siginfo_t *uinfo) in sys_rt_tgsigqueueinfo() argument
23 return syscall(SYS_rt_tgsigqueueinfo, tgid, tid, sig, uinfo); in sys_rt_tgsigqueueinfo()
/tools/virtio/virtio-trace/
Dtrace-agent-ctl.c27 static void signal_handler(int sig) in signal_handler() argument
29 global_signal_val = sig; in signal_handler()

1234