Home
last modified time | relevance | path

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

/kernel/
Dsignal.c71 static void __user *sig_handler(struct task_struct *t, int sig) in sig_handler() argument
73 return t->sighand->action[sig - 1].sa.sa_handler; in sig_handler()
76 static inline bool sig_handler_ignored(void __user *handler, int sig) in sig_handler_ignored() argument
80 (handler == SIG_DFL && sig_kernel_ignore(sig)); in sig_handler_ignored()
83 static bool sig_task_ignored(struct task_struct *t, int sig, bool force) in sig_task_ignored() argument
87 handler = sig_handler(t, sig); in sig_task_ignored()
90 if (unlikely(is_global_init(t) && sig_kernel_only(sig))) in sig_task_ignored()
94 handler == SIG_DFL && !(force && sig_kernel_only(sig))) in sig_task_ignored()
102 return sig_handler_ignored(handler, sig); in sig_task_ignored()
105 static bool sig_ignored(struct task_struct *t, int sig, bool force) in sig_ignored() argument
[all …]
Dexit.c146 struct signal_struct *sig = tsk->signal; in __exit_signal() local
163 tty = sig->tty; in __exit_signal()
164 sig->tty = NULL; in __exit_signal()
170 if (sig->notify_count > 0 && !--sig->notify_count) in __exit_signal()
171 wake_up_process(sig->group_exec_task); in __exit_signal()
173 if (tsk == sig->curr_target) in __exit_signal()
174 sig->curr_target = next_thread(tsk); in __exit_signal()
187 write_seqlock(&sig->stats_lock); in __exit_signal()
188 sig->utime += utime; in __exit_signal()
189 sig->stime += stime; in __exit_signal()
[all …]
Dcompat.c37 memcpy(blocked->sig, &set, sizeof(set)); in compat_sig_setmask()
47 old_set = current->blocked.sig[0]; in COMPAT_SYSCALL_DEFINE3()
257 case 4: set->sig[3] = v.sig[6] | (((long)v.sig[7]) << 32 ); in get_compat_sigset()
259 case 3: set->sig[2] = v.sig[4] | (((long)v.sig[5]) << 32 ); in get_compat_sigset()
261 case 2: set->sig[1] = v.sig[2] | (((long)v.sig[3]) << 32 ); in get_compat_sigset()
263 case 1: set->sig[0] = v.sig[0] | (((long)v.sig[1]) << 32 ); in get_compat_sigset()
Drseq.c128 u32 sig; in rseq_get_rseq_cs() local
161 ret = get_user(sig, usig); in rseq_get_rseq_cs()
165 if (current->rseq_sig != sig) { in rseq_get_rseq_cs()
168 sig, current->rseq_sig, current->pid, usig); in rseq_get_rseq_cs()
289 int ret, sig; in __rseq_handle_notify_resume() local
309 sig = ksig ? ksig->sig : 0; in __rseq_handle_notify_resume()
310 force_sigsegv(sig); in __rseq_handle_notify_resume()
337 int, flags, u32, sig) in SYSCALL_DEFINE4() argument
349 if (current->rseq_sig != sig) in SYSCALL_DEFINE4()
370 if (current->rseq_sig != sig) in SYSCALL_DEFINE4()
[all …]
Dfork.c910 static inline void free_signal_struct(struct signal_struct *sig) in free_signal_struct() argument
912 taskstats_tgid_free(sig); in free_signal_struct()
913 sched_autogroup_exit(sig); in free_signal_struct()
918 if (sig->oom_mm) in free_signal_struct()
919 mmdrop_async(sig->oom_mm); in free_signal_struct()
920 kmem_cache_free(signal_cachep, sig); in free_signal_struct()
923 static inline void put_signal_struct(struct signal_struct *sig) in put_signal_struct() argument
925 if (refcount_dec_and_test(&sig->sigcnt)) in put_signal_struct()
926 free_signal_struct(sig); in put_signal_struct()
1749 struct sighand_struct *sig; in copy_sighand() local
[all …]
Dtaskstats.c574 struct signal_struct *sig = tsk->signal; in taskstats_tgid_alloc() local
578 stats = smp_load_acquire(&sig->stats); in taskstats_tgid_alloc()
586 stats = sig->stats; in taskstats_tgid_alloc()
592 smp_store_release(&sig->stats, stats_new); in taskstats_tgid_alloc()
Dnotifier.c581 struct pt_regs *regs, long err, int trap, int sig) in notify_die() argument
588 .signr = sig, in notify_die()
Daudit.c2397 int audit_signal_info(int sig, struct task_struct *t) in audit_signal_info() argument
2402 (sig == SIGTERM || sig == SIGHUP || in audit_signal_info()
2403 sig == SIGUSR1 || sig == SIGUSR2)) { in audit_signal_info()
/kernel/time/
Dposix-timers.c113 static int hash(struct signal_struct *sig, unsigned int nr) in hash() argument
115 return hash_32(hash32_ptr(sig) ^ nr, HASH_BITS(posix_timers_hashtable)); in hash()
119 struct signal_struct *sig, in __posix_timers_find() argument
126 if ((timer->it_signal == sig) && (timer->it_id == id)) in __posix_timers_find()
134 struct signal_struct *sig = current->signal; in posix_timer_by_id() local
135 struct hlist_head *head = &posix_timers_hashtable[hash(sig, id)]; in posix_timer_by_id()
137 return __posix_timers_find(head, sig, id); in posix_timer_by_id()
142 struct signal_struct *sig = current->signal; in posix_timer_add() local
143 int first_free_id = sig->posix_timer_id; in posix_timer_add()
149 head = &posix_timers_hashtable[hash(sig, sig->posix_timer_id)]; in posix_timer_add()
[all …]
Dposix-cpu-timers.c939 static inline void stop_process_timers(struct signal_struct *sig) in stop_process_timers() argument
941 struct posix_cputimers *pct = &sig->posix_cputimers; in stop_process_timers()
945 tick_dep_clear_signal(sig, TICK_DEP_BIT_POSIX_TIMER); in stop_process_timers()
978 struct signal_struct *const sig = tsk->signal; in check_process_timers() local
979 struct posix_cputimers *pct = &sig->posix_cputimers; in check_process_timers()
1001 proc_sample_cputime_atomic(&sig->cputimer.cputime_atomic, samples); in check_process_timers()
1007 check_cpu_itimer(tsk, &sig->it[CPUCLOCK_PROF], in check_process_timers()
1010 check_cpu_itimer(tsk, &sig->it[CPUCLOCK_VIRT], in check_process_timers()
1029 sig->rlim[RLIMIT_CPU].rlim_cur = soft + 1; in check_process_timers()
1039 stop_process_timers(sig); in check_process_timers()
[all …]
Dtick-sched.c503 struct signal_struct *sig = tsk->signal; in tick_nohz_dep_set_signal() local
505 prev = atomic_fetch_or(BIT(bit), &sig->tick_dep_mask); in tick_nohz_dep_set_signal()
510 __for_each_thread(sig, t) in tick_nohz_dep_set_signal()
515 void tick_nohz_dep_clear_signal(struct signal_struct *sig, enum tick_dep_bits bit) in tick_nohz_dep_clear_signal() argument
517 atomic_andnot(BIT(bit), &sig->tick_dep_mask); in tick_nohz_dep_clear_signal()
Ditimer.c158 struct signal_struct *sig = in it_real_fn() local
160 struct pid *leader_pid = sig->pids[PIDTYPE_TGID]; in it_real_fn()
/kernel/sched/
Dautogroup.c211 void sched_autogroup_fork(struct signal_struct *sig) in sched_autogroup_fork() argument
213 sig->autogroup = autogroup_task_get(current); in sched_autogroup_fork()
216 void sched_autogroup_exit(struct signal_struct *sig) in sched_autogroup_exit() argument
218 autogroup_kref_put(sig->autogroup); in sched_autogroup_exit()
Dcputime.c325 struct signal_struct *sig = tsk->signal; in thread_group_cputime() local
347 flags = read_seqbegin_or_lock_irqsave(&sig->stats_lock, &seq); in thread_group_cputime()
348 times->utime = sig->utime; in thread_group_cputime()
349 times->stime = sig->stime; in thread_group_cputime()
350 times->sum_exec_runtime = sig->sum_sched_runtime; in thread_group_cputime()
360 } while (need_seqretry(&sig->stats_lock, seq)); in thread_group_cputime()
361 done_seqretry_irqrestore(&sig->stats_lock, seq, flags); in thread_group_cputime()
/kernel/power/
Dswap.c115 char sig[10]; member
322 if (!memcmp("SWAP-SPACE",swsusp_header->sig, 10) || in mark_swapfiles()
323 !memcmp("SWAPSPACE2",swsusp_header->sig, 10)) { in mark_swapfiles()
324 memcpy(swsusp_header->orig_sig,swsusp_header->sig, 10); in mark_swapfiles()
325 memcpy(swsusp_header->sig, HIBERNATE_SIG, 10); in mark_swapfiles()
1546 if (!memcmp(HIBERNATE_SIG, swsusp_header->sig, 10)) { in swsusp_check()
1547 memcpy(swsusp_header->sig, swsusp_header->orig_sig, 10); in swsusp_check()
1602 if (!memcmp(HIBERNATE_SIG,swsusp_header->sig, 10)) { in swsusp_unmark()
1603 memcpy(swsusp_header->sig,swsusp_header->orig_sig, 10); in swsusp_unmark()
/kernel/trace/
Dbpf_trace.c828 u32 sig; member
839 group_send_sig_info(work->sig, SEND_SIG_PRIV, work->task, work->type); in do_bpf_send_signal()
843 static int bpf_send_signal_common(u32 sig, enum pid_type type) in bpf_send_signal_common() argument
864 if (unlikely(!valid_signal(sig))) in bpf_send_signal_common()
876 work->sig = sig; in bpf_send_signal_common()
882 return group_send_sig_info(sig, SEND_SIG_PRIV, current, type); in bpf_send_signal_common()
885 BPF_CALL_1(bpf_send_signal, u32, sig) in BPF_CALL_1() argument
887 return bpf_send_signal_common(sig, PIDTYPE_TGID); in BPF_CALL_1()
897 BPF_CALL_1(bpf_send_signal_thread, u32, sig) in BPF_CALL_1() argument
899 return bpf_send_signal_common(sig, PIDTYPE_PID); in BPF_CALL_1()
/kernel/debug/kdb/
Dkdb_main.c2441 long sig, pid; in kdb_kill() local
2448 sig = simple_strtol(argv[1], &endp, 0); in kdb_kill()
2451 if ((sig >= 0) || !valid_signal(-sig)) { in kdb_kill()
2455 sig = -sig; in kdb_kill()
2472 kdb_send_sig(p, sig); in kdb_kill()
Dkdb_private.h197 extern void kdb_send_sig(struct task_struct *p, int sig);