Home
last modified time | relevance | path

Searched refs:current (Results 1 – 25 of 1996) sorted by relevance

12345678910>>...80

/linux-2.6.39/arch/um/kernel/
Dsignal.c60 sp = current->sas_ss_sp + current->sas_ss_size; in handle_signal()
70 spin_lock_irq(&current->sighand->siglock); in handle_signal()
71 current->blocked = *oldset; in handle_signal()
73 spin_unlock_irq(&current->sighand->siglock); in handle_signal()
74 force_sigsegv(signr, current); in handle_signal()
76 spin_lock_irq(&current->sighand->siglock); in handle_signal()
77 sigorsets(&current->blocked, &current->blocked, in handle_signal()
80 sigaddset(&current->blocked, signr); in handle_signal()
82 spin_unlock_irq(&current->sighand->siglock); in handle_signal()
96 oldset = &current->saved_sigmask; in kern_do_signal()
[all …]
Dprocess.c75 current->thread.request.u.thread.proc = fn; in kernel_thread()
76 current->thread.request.u.thread.arg = arg; in kernel_thread()
78 &current->thread.regs, 0, NULL, NULL); in kernel_thread()
99 current->thread.saved_task = NULL; in _switch_to()
104 arch_switch_to(current); in _switch_to()
106 if (current->thread.saved_task) in _switch_to()
107 show_regs(&(current->thread.regs)); in _switch_to()
108 to = current->thread.saved_task; in _switch_to()
109 from = current; in _switch_to()
110 } while (current->thread.saved_task); in _switch_to()
[all …]
Dexec.c25 arch_flush_thread(&current->thread.arch); in flush_thread()
27 ret = unmap(&current->mm->context.id, 0, STUB_START, 0, &data); in flush_thread()
28 ret = ret || unmap(&current->mm->context.id, STUB_END, in flush_thread()
33 force_sig(SIGKILL, current); in flush_thread()
36 __switch_mm(&current->mm->context.id); in flush_thread()
52 error = do_execve(file, argv, env, &current->thread.regs); in execve1()
54 task_lock(current); in execve1()
55 current->ptrace &= ~PT_DTRACE; in execve1()
57 SUBARCH_EXECVE1(&current->thread.regs.regs); in execve1()
59 task_unlock(current); in execve1()
[all …]
Dtrap.c26 struct mm_struct *mm = current->mm; in handle_page_fault()
79 current->maj_flt++; in handle_page_fault()
81 current->min_flt++; in handle_page_fault()
123 current->thread.arch.faultinfo = fi; in bad_segv()
124 force_sig_info(SIGSEGV, &si, current); in bad_segv()
129 force_sigsegv(SIGSEGV, current); in fatal_sigsegv()
169 else if (current->mm == NULL) { in segv()
187 catcher = current->thread.fault_catcher; in segv()
191 current->thread.fault_addr = (void *) address; in segv()
194 else if (current->thread.fault_addr != NULL) in segv()
[all …]
/linux-2.6.39/arch/s390/math-emu/
Dmath.c110 instr, current->comm, current->pid); in display_emulation_not_implemented()
152 mode = current->thread.fp_regs.fpc & 3; in emu_axbr()
153 cvt.w.high = current->thread.fp_regs.fprs[rx].ui; in emu_axbr()
154 cvt.w.low = current->thread.fp_regs.fprs[rx+2].ui; in emu_axbr()
156 cvt.w.high = current->thread.fp_regs.fprs[ry].ui; in emu_axbr()
157 cvt.w.low = current->thread.fp_regs.fprs[ry+2].ui; in emu_axbr()
161 current->thread.fp_regs.fprs[rx].ui = cvt.w.high; in emu_axbr()
162 current->thread.fp_regs.fprs[rx+2].ui = cvt.w.low; in emu_axbr()
173 mode = current->thread.fp_regs.fpc & 3; in emu_adbr()
174 FP_UNPACK_DP(DA, &current->thread.fp_regs.fprs[rx].d); in emu_adbr()
[all …]
/linux-2.6.39/arch/sparc/kernel/
Dsignal_32.c64 spin_lock_irq(&current->sighand->siglock); in _sigpause_common()
65 current->saved_sigmask = current->blocked; in _sigpause_common()
66 siginitset(&current->blocked, set); in _sigpause_common()
68 spin_unlock_irq(&current->sighand->siglock); in _sigpause_common()
70 current->state = TASK_INTERRUPTIBLE; in _sigpause_common()
87 if (test_tsk_thread_flag(current, TIF_USEDFPU)) in restore_fpu_state()
90 if (current == last_task_used_math) { in restore_fpu_state()
96 clear_tsk_thread_flag(current, TIF_USEDFPU); in restore_fpu_state()
101 err = __copy_from_user(&current->thread.float_regs[0], &fpu->si_float_regs[0], in restore_fpu_state()
103 err |= __get_user(current->thread.fsr, &fpu->si_fsr); in restore_fpu_state()
[all …]
/linux-2.6.39/arch/m68k/mm/
Dfault.c26 siginfo.si_signo = current->thread.signo; in send_fault_sig()
27 siginfo.si_code = current->thread.code; in send_fault_sig()
28 siginfo.si_addr = (void *)current->thread.faddr; in send_fault_sig()
35 &siginfo, current); in send_fault_sig()
74 struct mm_struct *mm = current->mm; in do_page_fault()
81 current->mm->pgd); in do_page_fault()
155 current->maj_flt++; in do_page_fault()
157 current->min_flt++; in do_page_fault()
174 current->thread.signo = SIGBUS; in do_page_fault()
175 current->thread.faddr = address; in do_page_fault()
[all …]
/linux-2.6.39/fs/
Dbinfmt_som.c91 p = current->mm->arg_start; in create_som_tables()
97 current->mm->arg_end = current->mm->env_start = p; in create_som_tables()
103 current->mm->env_end = p; in create_som_tables()
148 current->mm->start_code = code_start; in map_som_binary()
149 current->mm->end_code = code_start + code_size; in map_som_binary()
150 down_write(&current->mm->mmap_sem); in map_som_binary()
153 up_write(&current->mm->mmap_sem); in map_som_binary()
159 current->mm->start_data = data_start; in map_som_binary()
160 current->mm->end_data = bss_start = data_start + data_size; in map_som_binary()
161 down_write(&current->mm->mmap_sem); in map_som_binary()
[all …]
Dbinfmt_aout.c54 down_write(&current->mm->mmap_sem); in set_brk()
56 up_write(&current->mm->mmap_sem); in set_brk()
92 current->flags |= PF_DUMPCORE; in aout_core_dump()
93 strncpy(dump.u_comm, current->comm, sizeof(dump.u_comm)); in aout_core_dump()
178 current->mm->arg_start = (unsigned long) p; in create_aout_tables()
187 current->mm->arg_end = current->mm->env_start = (unsigned long) p; in create_aout_tables()
196 current->mm->env_end = (unsigned long) p; in create_aout_tables()
253 current->mm->end_code = ex.a_text + in load_aout_binary()
254 (current->mm->start_code = N_TXTADDR(ex)); in load_aout_binary()
255 current->mm->end_data = ex.a_data + in load_aout_binary()
[all …]
/linux-2.6.39/kernel/
Dfreezer.c18 if (!unlikely(current->flags & PF_NOFREEZE)) { in frozen_process()
19 current->flags |= PF_FROZEN; in frozen_process()
22 clear_freeze_flag(current); in frozen_process()
32 task_lock(current); in refrigerator()
33 if (freezing(current)) { in refrigerator()
35 task_unlock(current); in refrigerator()
37 task_unlock(current); in refrigerator()
40 save = current->state; in refrigerator()
41 pr_debug("%s entered refrigerator\n", current->comm); in refrigerator()
43 spin_lock_irq(&current->sighand->siglock); in refrigerator()
[all …]
Ddelayacct.c74 spin_lock_irqsave(&current->delays->lock, flags); in delayacct_end()
77 spin_unlock_irqrestore(&current->delays->lock, flags); in delayacct_end()
82 delayacct_start(&current->delays->blkio_start); in __delayacct_blkio_start()
87 if (current->delays->flags & DELAYACCT_PF_SWAPIN) in __delayacct_blkio_end()
89 delayacct_end(&current->delays->blkio_start, in __delayacct_blkio_end()
90 &current->delays->blkio_end, in __delayacct_blkio_end()
91 &current->delays->swapin_delay, in __delayacct_blkio_end()
92 &current->delays->swapin_count); in __delayacct_blkio_end()
94 delayacct_end(&current->delays->blkio_start, in __delayacct_blkio_end()
95 &current->delays->blkio_end, in __delayacct_blkio_end()
[all …]
Dsignal.c155 else if (!recalc_sigpending_tsk(current) && !freezing(current)) in recalc_sigpending()
223 current->comm, current->pid, sig); in print_dropped_signal()
331 struct task_struct *tsk = current; in flush_itimer_signals()
392 spin_lock_irqsave(&current->sighand->siglock, flags); in block_all_signals()
393 current->notifier_mask = mask; in block_all_signals()
394 current->notifier_data = priv; in block_all_signals()
395 current->notifier = notifier; in block_all_signals()
396 spin_unlock_irqrestore(&current->sighand->siglock, flags); in block_all_signals()
406 spin_lock_irqsave(&current->sighand->siglock, flags); in unblock_all_signals()
407 current->notifier = NULL; in unblock_all_signals()
[all …]
/linux-2.6.39/drivers/tty/
Dtty_audit.c115 uid_t auid = audit_get_loginuid(current); in tty_audit_buf_push_current()
116 unsigned int sessionid = audit_get_sessionid(current); in tty_audit_buf_push_current()
117 tty_audit_buf_push(current, auid, sessionid, buf); in tty_audit_buf_push_current()
130 spin_lock_irq(&current->sighand->siglock); in tty_audit_exit()
131 buf = current->signal->tty_audit_buf; in tty_audit_exit()
132 current->signal->tty_audit_buf = NULL; in tty_audit_exit()
133 spin_unlock_irq(&current->sighand->siglock); in tty_audit_exit()
151 spin_lock_irq(&current->sighand->siglock); in tty_audit_fork()
152 sig->audit_tty = current->signal->audit_tty; in tty_audit_fork()
153 spin_unlock_irq(&current->sighand->siglock); in tty_audit_fork()
[all …]
/linux-2.6.39/arch/x86/ia32/
Dia32_aout.c57 dump->u_tsize = ((unsigned long) current->mm->end_code) >> PAGE_SHIFT; in dump_thread32()
59 (current->mm->brk + (PAGE_SIZE-1))) >> PAGE_SHIFT; in dump_thread32()
62 dump->u_debugreg[0] = current->thread.debugreg0; in dump_thread32()
63 dump->u_debugreg[1] = current->thread.debugreg1; in dump_thread32()
64 dump->u_debugreg[2] = current->thread.debugreg2; in dump_thread32()
65 dump->u_debugreg[3] = current->thread.debugreg3; in dump_thread32()
68 dump->u_debugreg[6] = current->thread.debugreg6; in dump_thread32()
69 dump->u_debugreg[7] = current->thread.debugreg7; in dump_thread32()
85 dump->regs.ds = current->thread.ds; in dump_thread32()
86 dump->regs.es = current->thread.es; in dump_thread32()
[all …]
/linux-2.6.39/arch/parisc/kernel/
Dftrace.c29 if (!current->ret_stack) in push_return_trace()
33 if (current->curr_ret_stack == FTRACE_RETFUNC_DEPTH - 1) { in push_return_trace()
34 atomic_inc(&current->trace_overrun); in push_return_trace()
38 index = ++current->curr_ret_stack; in push_return_trace()
40 current->ret_stack[index].ret = ret; in push_return_trace()
41 current->ret_stack[index].func = func; in push_return_trace()
42 current->ret_stack[index].calltime = time; in push_return_trace()
53 index = current->curr_ret_stack; in pop_return_trace()
64 *ret = current->ret_stack[index].ret; in pop_return_trace()
65 trace->func = current->ret_stack[index].func; in pop_return_trace()
[all …]
/linux-2.6.39/arch/s390/kernel/
Dsignal.c61 spin_lock_irq(&current->sighand->siglock); in SYSCALL_DEFINE3()
62 current->saved_sigmask = current->blocked; in SYSCALL_DEFINE3()
63 siginitset(&current->blocked, mask); in SYSCALL_DEFINE3()
65 spin_unlock_irq(&current->sighand->siglock); in SYSCALL_DEFINE3()
108 struct pt_regs *regs = task_pt_regs(current); in SYSCALL_DEFINE2()
117 save_access_regs(current->thread.acrs); in save_sigregs()
124 memcpy(&user_sregs.regs.acrs, current->thread.acrs, in save_sigregs()
130 save_fp_regs(&current->thread.fp_regs); in save_sigregs()
131 memcpy(&user_sregs.fpregs, &current->thread.fp_regs, in save_sigregs()
152 memcpy(&current->thread.acrs, &user_sregs.regs.acrs, in restore_sigregs()
[all …]
/linux-2.6.39/arch/powerpc/kernel/
Dprocess.c92 BUG_ON(tsk != current); in flush_fp_to_thread()
105 if (current->thread.regs && (current->thread.regs->msr & MSR_FP)) in enable_kernel_fp()
106 giveup_fpu(current); in enable_kernel_fp()
121 if (current->thread.regs && (current->thread.regs->msr & MSR_VEC)) in enable_kernel_altivec()
122 giveup_altivec(current); in enable_kernel_altivec()
141 BUG_ON(tsk != current); in flush_altivec_to_thread()
158 if (current->thread.regs && (current->thread.regs->msr & MSR_VSX))
159 giveup_vsx(current);
182 BUG_ON(tsk != current); in flush_vsx_to_thread()
198 if (current->thread.regs && (current->thread.regs->msr & MSR_SPE)) in enable_kernel_spe()
[all …]
Dsignal.c39 current->sas_ss_size && !on_sig_stack(oldsp)) in get_sigframe()
40 oldsp = (current->sas_ss_sp + current->sas_ss_size); in get_sigframe()
59 spin_lock_irq(&current->sighand->siglock); in restore_sigmask()
60 current->blocked = *set; in restore_sigmask()
62 spin_unlock_irq(&current->sighand->siglock); in restore_sigmask()
125 oldset = &current->saved_sigmask; in do_signal_pending()
127 oldset = &current->blocked; in do_signal_pending()
139 sigprocmask(SIG_SETMASK, &current->saved_sigmask, NULL); in do_signal_pending()
151 if (current->thread.dabr) in do_signal_pending()
152 set_dabr(current->thread.dabr); in do_signal_pending()
[all …]
Dsignal_64.c94 flush_fp_to_thread(current); in setup_sigcontext()
100 if (current->thread.used_vr) { in setup_sigcontext()
101 flush_altivec_to_thread(current); in setup_sigcontext()
103 err |= __copy_to_user(v_regs, current->thread.vr, 33 * sizeof(vector128)); in setup_sigcontext()
112 err |= __put_user(current->thread.vrsave, (u32 __user *)&v_regs[33]); in setup_sigcontext()
116 flush_fp_to_thread(current); in setup_sigcontext()
118 err |= copy_fpr_to_user(&sc->fp_regs, current); in setup_sigcontext()
125 if (current->thread.used_vsr && ctx_has_vsx_region) { in setup_sigcontext()
126 __giveup_vsx(current); in setup_sigcontext()
128 err |= copy_vsx_to_user(v_regs, current); in setup_sigcontext()
[all …]
/linux-2.6.39/arch/frv/kernel/
Dsignal.c44 spin_lock_irq(&current->sighand->siglock); in sys_sigsuspend()
45 current->saved_sigmask = current->blocked; in sys_sigsuspend()
46 siginitset(&current->blocked, mask); in sys_sigsuspend()
48 spin_unlock_irq(&current->sighand->siglock); in sys_sigsuspend()
50 current->state = TASK_INTERRUPTIBLE; in sys_sigsuspend()
121 struct user_context *user = current->thread.user; in restore_sigcontext()
161 spin_lock_irq(&current->sighand->siglock); in sys_sigreturn()
162 current->blocked = set; in sys_sigreturn()
164 spin_unlock_irq(&current->sighand->siglock); in sys_sigreturn()
171 force_sig(SIGSEGV, current); in sys_sigreturn()
[all …]
/linux-2.6.39/arch/h8300/kernel/
Dtraps.c47 current->thread.esp0 = ssp; in set_esp0()
61 printk("COMM=%s PID=%d\n", current->comm, current->pid); in dump()
62 if (current->mm) { in dump()
64 (int) current->mm->start_code, in dump()
65 (int) current->mm->end_code, in dump()
66 (int) current->mm->start_data, in dump()
67 (int) current->mm->end_data, in dump()
68 (int) current->mm->end_data, in dump()
69 (int) current->mm->brk); in dump()
71 (int) current->mm->start_stack, in dump()
[all …]
/linux-2.6.39/arch/sh/kernel/
Dsignal_32.c62 spin_lock_irq(&current->sighand->siglock); in sys_sigsuspend()
63 current->saved_sigmask = current->blocked; in sys_sigsuspend()
64 siginitset(&current->blocked, mask); in sys_sigsuspend()
66 spin_unlock_irq(&current->sighand->siglock); in sys_sigsuspend()
68 current->state = TASK_INTERRUPTIBLE; in sys_sigsuspend()
147 struct task_struct *tsk = current; in restore_sigcontext_fpu()
160 struct task_struct *tsk = current; in save_sigcontext_fpu()
205 struct task_struct *tsk = current; in restore_sigcontext()
244 spin_lock_irq(&current->sighand->siglock); in sys_sigreturn()
245 current->blocked = set; in sys_sigreturn()
[all …]
/linux-2.6.39/arch/mips/kernel/
Dsignal.c238 sp = current->sas_ss_sp + current->sas_ss_size; in get_sigframe()
258 spin_lock_irq(&current->sighand->siglock); in sys_sigsuspend()
259 current->saved_sigmask = current->blocked; in sys_sigsuspend()
260 current->blocked = newset; in sys_sigsuspend()
262 spin_unlock_irq(&current->sighand->siglock); in sys_sigsuspend()
264 current->state = TASK_INTERRUPTIBLE; in sys_sigsuspend()
287 spin_lock_irq(&current->sighand->siglock); in sys_rt_sigsuspend()
288 current->saved_sigmask = current->blocked; in sys_rt_sigsuspend()
289 current->blocked = newset; in sys_rt_sigsuspend()
291 spin_unlock_irq(&current->sighand->siglock); in sys_rt_sigsuspend()
[all …]
Dsignal_n32.c97 spin_lock_irq(&current->sighand->siglock); in sysn32_rt_sigsuspend()
98 current->saved_sigmask = current->blocked; in sysn32_rt_sigsuspend()
99 current->blocked = newset; in sysn32_rt_sigsuspend()
101 spin_unlock_irq(&current->sighand->siglock); in sysn32_rt_sigsuspend()
103 current->state = TASK_INTERRUPTIBLE; in sysn32_rt_sigsuspend()
125 spin_lock_irq(&current->sighand->siglock); in sysn32_rt_sigreturn()
126 current->blocked = set; in sysn32_rt_sigreturn()
128 spin_unlock_irq(&current->sighand->siglock); in sysn32_rt_sigreturn()
134 force_sig(sig, current); in sysn32_rt_sigreturn()
164 force_sig(SIGSEGV, current); in sysn32_rt_sigreturn()
[all …]
/linux-2.6.39/arch/score/kernel/
Dtraps.c145 current->comm, current->pid, (unsigned long) current); in show_registers()
186 force_sig(SIGBUS, current); in do_adelinsn()
200 force_sig(SIGBUS, current); in do_adedata()
206 force_sig(SIGFPE, current); in do_pel()
212 force_sig(SIGFPE, current); in do_cee()
218 force_sig(SIGFPE, current); in do_cpe()
224 force_sig(SIGBUS, current); in do_be()
237 force_sig_info(SIGFPE, &info, current); in do_ov()
243 force_sig(SIGTRAP, current); in do_tr()
251 read_tsk_long(current, epc, &epc_insn); in do_ri()
[all …]

12345678910>>...80