Home
last modified time | relevance | path

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

/kernel/
Dsignal.c67 static void __user *sig_handler(struct task_struct *t, int sig) in sig_handler() argument
69 return t->sighand->action[sig - 1].sa.sa_handler; in sig_handler()
72 static inline bool sig_handler_ignored(void __user *handler, int sig) in sig_handler_ignored() argument
76 (handler == SIG_DFL && sig_kernel_ignore(sig)); in sig_handler_ignored()
79 static bool sig_task_ignored(struct task_struct *t, int sig, bool force) in sig_task_ignored() argument
83 handler = sig_handler(t, sig); in sig_task_ignored()
86 if (unlikely(is_global_init(t) && sig_kernel_only(sig))) in sig_task_ignored()
90 handler == SIG_DFL && !(force && sig_kernel_only(sig))) in sig_task_ignored()
98 return sig_handler_ignored(handler, sig); in sig_task_ignored()
101 static bool sig_ignored(struct task_struct *t, int sig, bool force) in sig_ignored() argument
[all …]
Dexit.c94 struct signal_struct *sig = tsk->signal; in __exit_signal() local
120 tty = sig->tty; in __exit_signal()
121 sig->tty = NULL; in __exit_signal()
127 if (sig->notify_count > 0 && !--sig->notify_count) in __exit_signal()
128 wake_up_process(sig->group_exit_task); in __exit_signal()
130 if (tsk == sig->curr_target) in __exit_signal()
131 sig->curr_target = next_thread(tsk); in __exit_signal()
144 write_seqlock(&sig->stats_lock); in __exit_signal()
145 sig->utime += utime; in __exit_signal()
146 sig->stime += stime; in __exit_signal()
[all …]
Drseq.c120 u32 sig; in rseq_get_rseq_cs() local
148 ret = get_user(sig, usig); in rseq_get_rseq_cs()
152 if (current->rseq_sig != sig) { in rseq_get_rseq_cs()
155 sig, current->rseq_sig, current->pid, usig); in rseq_get_rseq_cs()
265 int ret, sig; in __rseq_handle_notify_resume() local
279 sig = ksig ? ksig->sig : 0; in __rseq_handle_notify_resume()
280 force_sigsegv(sig); in __rseq_handle_notify_resume()
308 int, flags, u32, sig) in SYSCALL_DEFINE4() argument
318 if (current->rseq_sig != sig) in SYSCALL_DEFINE4()
339 if (current->rseq_sig != sig) in SYSCALL_DEFINE4()
[all …]
Dcompat.c125 memcpy(blocked->sig, &set, sizeof(set)); in compat_sig_setmask()
135 old_set = current->blocked.sig[0]; in COMPAT_SYSCALL_DEFINE3()
345 case 4: set->sig[3] = v.sig[6] | (((long)v.sig[7]) << 32 ); in get_compat_sigset()
347 case 3: set->sig[2] = v.sig[4] | (((long)v.sig[5]) << 32 ); in get_compat_sigset()
349 case 2: set->sig[1] = v.sig[2] | (((long)v.sig[3]) << 32 ); in get_compat_sigset()
351 case 1: set->sig[0] = v.sig[0] | (((long)v.sig[1]) << 32 ); in get_compat_sigset()
Dfork.c720 static inline void free_signal_struct(struct signal_struct *sig) in free_signal_struct() argument
722 taskstats_tgid_free(sig); in free_signal_struct()
723 sched_autogroup_exit(sig); in free_signal_struct()
728 if (sig->oom_mm) in free_signal_struct()
729 mmdrop_async(sig->oom_mm); in free_signal_struct()
730 kmem_cache_free(signal_cachep, sig); in free_signal_struct()
733 static inline void put_signal_struct(struct signal_struct *sig) in put_signal_struct() argument
735 if (refcount_dec_and_test(&sig->sigcnt)) in put_signal_struct()
736 free_signal_struct(sig); in put_signal_struct()
1512 struct sighand_struct *sig; in copy_sighand() local
[all …]
Dtaskstats.c556 struct signal_struct *sig = tsk->signal; in taskstats_tgid_alloc() local
560 stats = smp_load_acquire(&sig->stats); in taskstats_tgid_alloc()
568 stats = sig->stats; in taskstats_tgid_alloc()
574 smp_store_release(&sig->stats, stats_new); in taskstats_tgid_alloc()
Dnotifier.c539 struct pt_regs *regs, long err, int trap, int sig) in notify_die() argument
546 .signr = sig, in notify_die()
Daudit.c2271 int audit_signal_info(int sig, struct task_struct *t) in audit_signal_info() argument
2276 (sig == SIGTERM || sig == SIGHUP || in audit_signal_info()
2277 sig == SIGUSR1 || sig == SIGUSR2)) { in audit_signal_info()
/kernel/time/
Dposix-timers.c112 static int hash(struct signal_struct *sig, unsigned int nr) in hash() argument
114 return hash_32(hash32_ptr(sig) ^ nr, HASH_BITS(posix_timers_hashtable)); in hash()
118 struct signal_struct *sig, in __posix_timers_find() argument
124 if ((timer->it_signal == sig) && (timer->it_id == id)) in __posix_timers_find()
132 struct signal_struct *sig = current->signal; in posix_timer_by_id() local
133 struct hlist_head *head = &posix_timers_hashtable[hash(sig, id)]; in posix_timer_by_id()
135 return __posix_timers_find(head, sig, id); in posix_timer_by_id()
140 struct signal_struct *sig = current->signal; in posix_timer_add() local
141 int first_free_id = sig->posix_timer_id; in posix_timer_add()
147 head = &posix_timers_hashtable[hash(sig, sig->posix_timer_id)]; in posix_timer_add()
[all …]
Dposix-cpu-timers.c867 static inline void stop_process_timers(struct signal_struct *sig) in stop_process_timers() argument
869 struct posix_cputimers *pct = &sig->posix_cputimers; in stop_process_timers()
873 tick_dep_clear_signal(sig, TICK_DEP_BIT_POSIX_TIMER); in stop_process_timers()
906 struct signal_struct *const sig = tsk->signal; in check_process_timers() local
907 struct posix_cputimers *pct = &sig->posix_cputimers; in check_process_timers()
929 proc_sample_cputime_atomic(&sig->cputimer.cputime_atomic, samples); in check_process_timers()
935 check_cpu_itimer(tsk, &sig->it[CPUCLOCK_PROF], in check_process_timers()
938 check_cpu_itimer(tsk, &sig->it[CPUCLOCK_VIRT], in check_process_timers()
957 sig->rlim[RLIMIT_CPU].rlim_cur = soft + 1; in check_process_timers()
967 stop_process_timers(sig); in check_process_timers()
[all …]
Ditimer.c133 struct signal_struct *sig = in it_real_fn() local
135 struct pid *leader_pid = sig->pids[PIDTYPE_TGID]; in it_real_fn()
Dtick-sched.c361 void tick_nohz_dep_set_signal(struct signal_struct *sig, enum tick_dep_bits bit) in tick_nohz_dep_set_signal() argument
363 tick_nohz_dep_set_all(&sig->tick_dep_mask, bit); in tick_nohz_dep_set_signal()
366 void tick_nohz_dep_clear_signal(struct signal_struct *sig, enum tick_dep_bits bit) in tick_nohz_dep_clear_signal() argument
368 atomic_andnot(BIT(bit), &sig->tick_dep_mask); in tick_nohz_dep_clear_signal()
/kernel/sched/
Dautogroup.c188 void sched_autogroup_fork(struct signal_struct *sig) in sched_autogroup_fork() argument
190 sig->autogroup = autogroup_task_get(current); in sched_autogroup_fork()
193 void sched_autogroup_exit(struct signal_struct *sig) in sched_autogroup_exit() argument
195 autogroup_kref_put(sig->autogroup); in sched_autogroup_exit()
Dcputime.c302 struct signal_struct *sig = tsk->signal; in thread_group_cputime() local
324 flags = read_seqbegin_or_lock_irqsave(&sig->stats_lock, &seq); in thread_group_cputime()
325 times->utime = sig->utime; in thread_group_cputime()
326 times->stime = sig->stime; in thread_group_cputime()
327 times->sum_exec_runtime = sig->sum_sched_runtime; in thread_group_cputime()
337 } while (need_seqretry(&sig->stats_lock, seq)); in thread_group_cputime()
338 done_seqretry_irqrestore(&sig->stats_lock, seq, flags); in thread_group_cputime()
/kernel/power/
Dswap.c112 char sig[10]; member
311 if (!memcmp("SWAP-SPACE",swsusp_header->sig, 10) || in mark_swapfiles()
312 !memcmp("SWAPSPACE2",swsusp_header->sig, 10)) { in mark_swapfiles()
313 memcpy(swsusp_header->orig_sig,swsusp_header->sig, 10); in mark_swapfiles()
314 memcpy(swsusp_header->sig, HIBERNATE_SIG, 10); in mark_swapfiles()
1524 if (!memcmp(HIBERNATE_SIG, swsusp_header->sig, 10)) { in swsusp_check()
1525 memcpy(swsusp_header->sig, swsusp_header->orig_sig, 10); in swsusp_check()
1574 if (!memcmp(HIBERNATE_SIG,swsusp_header->sig, 10)) { in swsusp_unmark()
1575 memcpy(swsusp_header->sig,swsusp_header->orig_sig, 10); in swsusp_unmark()
/kernel/trace/
Dbpf_trace.c624 u32 sig; member
634 group_send_sig_info(work->sig, SEND_SIG_PRIV, work->task, PIDTYPE_TGID); in do_bpf_send_signal()
637 BPF_CALL_1(bpf_send_signal, u32, sig) in BPF_CALL_1() argument
657 if (unlikely(!valid_signal(sig))) in BPF_CALL_1()
669 work->sig = sig; in BPF_CALL_1()
674 return group_send_sig_info(sig, SEND_SIG_PRIV, current, PIDTYPE_TGID); in BPF_CALL_1()
/kernel/debug/kdb/
Dkdb_main.c2452 long sig, pid; in kdb_kill() local
2459 sig = simple_strtol(argv[1], &endp, 0); in kdb_kill()
2462 if ((sig >= 0) || !valid_signal(-sig)) { in kdb_kill()
2466 sig = -sig; in kdb_kill()
2483 kdb_send_sig(p, sig); in kdb_kill()
Dkdb_private.h211 extern void kdb_send_sig(struct task_struct *p, int sig);