Home
last modified time | relevance | path

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

12345678910>>...127

/linux/kernel/
H A Ddelayacct.c131 current->delays->blkio_start = local_clock(); in __delayacct_blkio_start()
218 current->delays->freepages_start = local_clock(); in __delayacct_freepages_start()
223 delayacct_end(&current->delays->lock, in __delayacct_freepages_end()
224 &current->delays->freepages_start, in __delayacct_freepages_end()
225 &current->delays->freepages_delay, in __delayacct_freepages_end()
226 &current->delays->freepages_count, in __delayacct_freepages_end()
227 &current->delays->freepages_delay_max, in __delayacct_freepages_end()
228 &current->delays->freepages_delay_min, in __delayacct_freepages_end()
229 &current->delays->freepages_delay_max_ts); in __delayacct_freepages_end()
234 *in_thrashing = !!current->in_thrashing; in __delayacct_thrashing_start()
[all …]
H A Drseq.c266 struct task_struct *t = current; in rseq_slowpath_update_usr()
344 if (unlikely(!rseq_handle_cs(current, regs))) { in __rseq_signal_deliver()
349 current->rseq.event.error = 0; in __rseq_signal_deliver()
360 struct task_struct *t = current; in __rseq_debug_syscall_return()
397 if (rseq_set_ids(current, &ids, 0)) in rseq_reset_ids()
418 if (current->rseq.usrptr != rseq || !current->rseq.usrptr) in SYSCALL_DEFINE4()
420 if (rseq_len != current->rseq.len) in SYSCALL_DEFINE4()
422 if (current->rseq.sig != sig) in SYSCALL_DEFINE4()
426 rseq_reset(current); in SYSCALL_DEFINE4()
433 if (current->rseq.usrptr) { in SYSCALL_DEFINE4()
[all …]
/linux/tools/power/cpupower/lib/
H A Dcpufreq.c292 struct cpufreq_available_governors *current = NULL; in cpufreq_get_available_governors() local
307 if (current) { in cpufreq_get_available_governors()
308 current->next = malloc(sizeof(*current)); in cpufreq_get_available_governors()
309 if (!current->next) in cpufreq_get_available_governors()
311 current = current->next; in cpufreq_get_available_governors()
316 current = first; in cpufreq_get_available_governors()
318 current->first = first; in cpufreq_get_available_governors()
319 current->next = NULL; in cpufreq_get_available_governors()
321 current->governor = malloc(i - pos + 1); in cpufreq_get_available_governors()
322 if (!current->governor) in cpufreq_get_available_governors()
[all …]
/linux/arch/sparc/kernel/
H A Dsigutil_32.c19 if (test_tsk_thread_flag(current, TIF_USEDFPU)) { in save_fpu_state()
21 fpsave(&current->thread.float_regs[0], &current->thread.fsr, in save_fpu_state()
22 &current->thread.fpqueue[0], &current->thread.fpqdepth); in save_fpu_state()
24 clear_tsk_thread_flag(current, TIF_USEDFPU); in save_fpu_state()
27 if (current == last_task_used_math) { in save_fpu_state()
29 fpsave(&current->thread.float_regs[0], &current->thread.fsr, in save_fpu_state()
30 &current->thread.fpqueue[0], &current->thread.fpqdepth); in save_fpu_state()
36 &current->thread.float_regs[0], in save_fpu_state()
38 err |= __put_user(current->thread.fsr, &fpu->si_fsr); in save_fpu_state()
39 err |= __put_user(current->thread.fpqdepth, &fpu->si_fpqdepth); in save_fpu_state()
[all …]
/linux/drivers/tty/
H A Dtty_jobctrl.c18 return (sigismember(&current->blocked, sig) || in is_ignored()
19 current->sighand->action[sig-1].sa.sa_handler == SIG_IGN); in is_ignored()
39 if (current->signal->tty != tty) in __tty_check_change()
43 pgrp = task_pgrp(current); in __tty_check_change()
109 tty->ctrl.pgrp = get_pid(task_pgrp(current)); in __proc_set_tty()
110 tty->ctrl.session = get_pid(task_session(current)); in __proc_set_tty()
112 if (current->signal->tty) { in __proc_set_tty()
114 current->signal->tty->name); in __proc_set_tty()
115 tty_kref_put(current->signal->tty); in __proc_set_tty()
117 put_pid(current->signal->tty_old_pgrp); in __proc_set_tty()
[all …]
/linux/arch/powerpc/kernel/
H A Dsignal_32.c250 flush_fp_to_thread(current); in prepare_save_user_regs()
252 if (current->thread.used_vr) in prepare_save_user_regs()
253 flush_altivec_to_thread(current); in prepare_save_user_regs()
255 current->thread.vrsave = mfspr(SPRN_VRSAVE); in prepare_save_user_regs()
258 if (current->thread.used_vsr && ctx_has_vsx_region) in prepare_save_user_regs()
259 flush_vsx_to_thread(current); in prepare_save_user_regs()
262 if (current->thread.used_spe) in prepare_save_user_regs()
263 flush_spe_to_thread(current); in prepare_save_user_regs()
278 if (current->thread.used_vr) { in __unsafe_save_user_regs()
279 unsafe_copy_to_user(&frame->mc_vregs, &current->thread.vr_state, in __unsafe_save_user_regs()
[all …]
H A Dprocess.c91 if (tsk == current && tsk->thread.regs && in check_if_tm_restore_required()
197 BUG_ON(tsk != current); in flush_fp_to_thread()
213 if (current->thread.regs && (current->thread.regs->msr & MSR_FP)) { in enable_kernel_fp()
214 check_if_tm_restore_required(current); in enable_kernel_fp()
223 MSR_TM_ACTIVE(current->thread.regs->msr)) in enable_kernel_fp()
225 __giveup_fpu(current); in enable_kernel_fp()
264 if (current->thread.regs && (current->thread.regs->msr & MSR_VEC)) { in enable_kernel_altivec()
265 check_if_tm_restore_required(current); in enable_kernel_altivec()
274 MSR_TM_ACTIVE(current->thread.regs->msr)) in enable_kernel_altivec()
276 __giveup_altivec(current); in enable_kernel_altivec()
[all …]
H A Dtraps.c146 if (kexec_should_crash(current)) in die_will_crash()
149 !current->pid || is_global_init(current)) in die_will_crash()
230 if (kexec_should_crash(current)) in oops_end()
242 if (in_interrupt() || panic_on_oops || !current->pid || in oops_end()
243 is_global_init(current)) { in oops_end()
318 if (!unhandled_signal(current, signr)) in show_signal_msg()
325 current->comm, current->pid, signame(signr), signr, in show_signal_msg()
354 current->thread.trap_nr = code; in exception_common()
581 #define single_stepping(regs) (current->thread.debug.dbcr0 & DBCR0_IC)
582 #define clear_single_step(regs) (current->thread.debug.dbcr0 &= ~DBCR0_IC)
[all …]
H A Duprobes.c66 struct arch_uprobe_task *autask = &current->utask->autask; in arch_uprobe_pre_xol()
68 autask->saved_trap_nr = current->thread.trap_nr; in arch_uprobe_pre_xol()
69 current->thread.trap_nr = UPROBE_TRAP_NR; in arch_uprobe_pre_xol()
70 regs_set_return_ip(regs, current->utask->xol_vaddr); in arch_uprobe_pre_xol()
72 user_enable_single_step(current); in arch_uprobe_pre_xol()
114 struct uprobe_task *utask = current->utask; in arch_uprobe_post_xol()
116 WARN_ON_ONCE(current->thread.trap_nr != UPROBE_TRAP_NR); in arch_uprobe_post_xol()
118 current->thread.trap_nr = utask->autask.saved_trap_nr; in arch_uprobe_post_xol()
129 user_disable_single_step(current); in arch_uprobe_post_xol()
170 struct uprobe_task *utask = current->utask; in arch_uprobe_abort_xol()
[all …]
/linux/arch/riscv/kernel/
H A Dkernel_mode_vector.c23 WRITE_ONCE(current->thread.riscv_v_flags, flags); in riscv_v_flags_set()
86 return &current->thread.riscv_v_flags; in riscv_v_flags_ptr()
116 if (riscv_v_ctx_get_depth() != 0 || !riscv_preempt_v_started(current)) in riscv_v_stop_kernel_context()
119 riscv_preempt_v_clear_dirty(current); in riscv_v_stop_kernel_context()
128 kvstate = &current->thread.kernel_vstate; in riscv_v_start_kernel_context()
132 if (riscv_preempt_v_started(current)) { in riscv_v_start_kernel_context()
136 if (riscv_preempt_v_dirty(current)) { in riscv_v_start_kernel_context()
138 riscv_preempt_v_clear_dirty(current); in riscv_v_start_kernel_context()
140 riscv_preempt_v_set_restore(current); in riscv_v_start_kernel_context()
146 if (__riscv_v_vstate_check(task_pt_regs(current)->status, DIRTY)) { in riscv_v_start_kernel_context()
[all …]
/linux/kernel/events/
H A Dhw_breakpoint_test.c127 TEST_EXPECT_NOSPC(register_test_bp(-1, current, idx)); in test_one_cpu()
150 fill_bp_slots(test, &idx, -1, current, 0); in test_one_task_on_all_cpus()
151 TEST_EXPECT_NOSPC(register_test_bp(-1, current, idx)); in test_one_task_on_all_cpus()
152 TEST_EXPECT_NOSPC(register_test_bp(get_test_cpu(0), current, idx)); in test_one_task_on_all_cpus()
164 fill_bp_slots(test, &idx, -1, current, 0); in test_two_tasks_on_all_cpus()
167 TEST_EXPECT_NOSPC(register_test_bp(-1, current, idx)); in test_two_tasks_on_all_cpus()
169 TEST_EXPECT_NOSPC(register_test_bp(get_test_cpu(0), current, idx)); in test_two_tasks_on_all_cpus()
181 fill_bp_slots(test, &idx, get_test_cpu(0), current, 0); in test_one_task_on_one_cpu()
182 TEST_EXPECT_NOSPC(register_test_bp(-1, current, idx)); in test_one_task_on_one_cpu()
183 TEST_EXPECT_NOSPC(register_test_bp(get_test_cpu(0), current, idx)); in test_one_task_on_one_cpu()
[all …]
/linux/arch/s390/kernel/
H A Dguarded_storage.c26 if (!current->thread.gs_cb) { in gs_enable()
34 current->thread.gs_cb = gs_cb; in gs_enable()
42 if (current->thread.gs_cb) { in gs_disable()
44 kfree(current->thread.gs_cb); in gs_disable()
45 current->thread.gs_cb = NULL; in gs_disable()
56 gs_cb = current->thread.gs_bc_cb; in gs_set_bc_cb()
61 current->thread.gs_bc_cb = gs_cb; in gs_set_bc_cb()
72 gs_cb = current->thread.gs_bc_cb; in gs_clear_bc_cb()
73 current->thread.gs_bc_cb = NULL; in gs_clear_bc_cb()
84 gs_cb = current->thread.gs_bc_cb; in gs_load_bc_cb()
[all …]
H A Dsignal.c110 save_access_regs(current->thread.acrs); in store_sigregs()
117 restore_access_regs(current->thread.acrs); in load_sigregs()
131 memcpy(&user_sregs.regs.acrs, current->thread.acrs, in save_sigregs()
133 fpregs_store(&user_sregs.fpregs, &current->thread.ufpu); in save_sigregs()
144 current->restart_block.fn = do_no_restart_syscall; in restore_sigregs()
149 if (!is_ri_task(current) && (user_sregs.regs.psw.mask & PSW_MASK_RI)) in restore_sigregs()
164 memcpy(&current->thread.acrs, &user_sregs.regs.acrs, in restore_sigregs()
165 sizeof(current->thread.acrs)); in restore_sigregs()
167 fpregs_load(&user_sregs.fpregs, &current->thread.ufpu); in restore_sigregs()
183 vxrs[i] = current->thread.ufpu.vxrs[i].low; in save_sigregs_ext()
[all …]
/linux/tools/testing/selftests/cgroup/
H A Dtest_hugetlb_memcg.c99 long old_current, expected_current, current; in hugetlb_test_program() local
104 current = cg_read_long(test_group, "memory.current"); in hugetlb_test_program()
105 if (current - old_current >= MB(2)) { in hugetlb_test_program()
108 ksft_print_msg("before: %ld, after: %ld\n", old_current, current); in hugetlb_test_program()
117 current = cg_read_long(test_group, "memory.current"); in hugetlb_test_program()
118 if (current - old_current >= MB(2)) { in hugetlb_test_program()
120 ksft_print_msg("before: %ld, after: %ld\n", old_current, current); in hugetlb_test_program()
123 old_current = current; in hugetlb_test_program()
128 current = cg_read_long(test_group, "memory.current"); in hugetlb_test_program()
129 if (!values_close(expected_current, current, 5)) { in hugetlb_test_program()
[all …]
/linux/arch/arm64/kernel/
H A Dfpsimd.c369 switch (current->thread.fp_type) { in task_fpsimd_load()
375 if (!thread_sm_enabled(&current->thread)) in task_fpsimd_load()
379 sve_set_vq(sve_vq_from_vl(task_get_sve_vl(current)) - 1); in task_fpsimd_load()
401 unsigned long sme_vl = task_get_sme_vl(current); in task_fpsimd_load()
407 write_sysreg_s(current->thread.svcr, SYS_SVCR); in task_fpsimd_load()
409 if (thread_za_enabled(&current->thread)) in task_fpsimd_load()
410 sme_load_state(current->thread.sme_state, in task_fpsimd_load()
413 if (thread_sm_enabled(&current->thread)) in task_fpsimd_load()
418 write_sysreg_s(current->thread.uw.fpmr, SYS_FPMR); in task_fpsimd_load()
421 WARN_ON_ONCE(current->thread.fp_type != FP_STATE_SVE); in task_fpsimd_load()
[all …]
/linux/arch/m68k/mm/
H A Dfault.c29 signo = current->thread.signo; in send_fault_sig()
30 si_code = current->thread.code; in send_fault_sig()
31 addr = (void __user *)current->thread.faddr; in send_fault_sig()
73 struct mm_struct *mm = current->mm; in do_page_fault()
191 current->thread.signo = SIGBUS; in do_page_fault()
192 current->thread.faddr = address; in do_page_fault()
196 current->thread.signo = SIGBUS; in do_page_fault()
197 current->thread.code = BUS_ADRERR; in do_page_fault()
198 current->thread.faddr = address; in do_page_fault()
204 current->thread.signo = SIGSEGV; in do_page_fault()
[all …]
/linux/Documentation/hwmon/
H A Dmax16601.rst83 curr1_input VCORE input current, derived from duty cycle
84 and output current.
85 curr1_max Maximum input current.
89 curr[P+2]_input VCORE phase P input current.
92 curr[N+2]_input VCORE input current, derived from sensor
97 curr[N+3]_input VSA input current.
100 curr[N+4]_input VCORE output current.
101 curr[N+4]_crit Critical output current.
102 curr[N+4]_crit_alarm Output current critical alarm.
103 curr[N+4]_max Maximum output current.
[all …]
/linux/tools/testing/selftests/arm64/signal/
H A Dtest_signals.c19 struct tdescr *current = &tde; variable
33 ksft_print_msg("%s :: %s\n", current->name, current->descr); in main()
34 if (test_setup(current) && test_init(current)) { in main()
35 test_run(current); in main()
36 test_cleanup(current); in main()
38 test_result(current); in main()
41 exit(current->result); in main()
/linux/arch/mips/math-emu/
H A Ddsemul.c77 mm_context_t *mm_ctx = &current->mm->context; in alloc_emuframe()
116 pr_debug("allocate emuframe %d to %d\n", idx, current->pid); in alloc_emuframe()
128 pr_debug("free emuframe %d from %d\n", idx, current->pid); in free_emuframe()
180 fr_idx = atomic_read(&current->thread.bd_emu_frame); in dsemul_thread_rollback()
193 regs->cp0_epc = current->thread.bd_emu_branch_pc; in dsemul_thread_rollback()
195 regs->cp0_epc = current->thread.bd_emu_cont_pc; in dsemul_thread_rollback()
197 atomic_set(&current->thread.bd_emu_frame, BD_EMUFRAME_NONE); in dsemul_thread_rollback()
198 free_emuframe(fr_idx, current->mm); in dsemul_thread_rollback()
246 fr_idx = atomic_read(&current->thread.bd_emu_frame); in mips_dsemul()
273 ret = access_process_vm(current, fr_uaddr, &fr, sizeof(fr), in mips_dsemul()
[all …]
/linux/include/linux/
H A Drseq.h16 if (current->rseq.event.slowpath) in rseq_handle_slowpath()
20 if (current->rseq.event.sched_switch & current->rseq.event.has_rseq) in rseq_handle_slowpath()
35 if (current->rseq.event.has_rseq & current->rseq.event.user_irq) in rseq_signal_deliver()
38 if (current->rseq.event.has_rseq) in rseq_signal_deliver()
90 if (current->rseq.event.has_rseq) { in rseq_force_update()
91 current->rseq.event.ids_changed = true; in rseq_force_update()
92 current->rseq.event.sched_switch = true; in rseq_force_update()
93 rseq_raise_notify_resume(current); in rseq_force_update()
116 current->rseq.event.sched_switch) in rseq_virt_userspace_exit()
117 rseq_raise_notify_resume(current); in rseq_virt_userspace_exit()
[all …]
/linux/include/linux/sched/
H A Dsignal.h103 /* current thread group signal load-balancing target: */
212 * getrlimit/setrlimit use task_lock(current->group_leader) to
289 struct task_struct *task = current; in kernel_dequeue_signal()
303 spin_lock_irq(&current->sighand->siglock); in kernel_signal_stop()
304 if (current->jobctl & JOBCTL_STOP_DEQUEUED) { in kernel_signal_stop()
305 current->jobctl |= JOBCTL_STOPPED; in kernel_signal_stop()
308 spin_unlock_irq(&current->sighand->siglock); in kernel_signal_stop()
377 set_tsk_thread_flag(current, TIF_SIGPENDING); in restart_syscall()
420 * should stop the current fault routine to handle the signals
428 (fatal_signal_pending(current) || in fault_signal_pending()
[all...]
/linux/arch/um/kernel/
H A Dprocess.c79 arch_switch_to(current); in __switch_to()
81 return current->thread.prev_sched; in __switch_to()
86 struct pt_regs *regs = &current->thread.regs; in interrupt_end()
103 return task_pid_nr(current); in get_current_pid()
115 if (current->thread.prev_sched != NULL) in new_thread_handler()
116 schedule_tail(current->thread.prev_sched); in new_thread_handler()
117 current->thread.prev_sched = NULL; in new_thread_handler()
119 fn = current->thread.request.thread.proc; in new_thread_handler()
120 arg = current->thread.request.thread.arg; in new_thread_handler()
126 userspace(&current->thread.regs.regs); in new_thread_handler()
[all …]
/linux/rust/macros/
H A Dfmt.rs54 let mut flush = |args: &mut TokenStream, current: &mut TokenStream| { in fmt()
55 let current = std::mem::take(current); in fmt() localVariable
56 if !current.is_empty() { in fmt()
58 let mut current = current.into_iter(); in fmt() localVariable
60 while let Some(tt) = current.next() { in fmt()
66 return (Some(acc), current.collect::<TokenStream>()); in fmt()
76 let mut current = TokenStream::new(); in fmt() localVariable
80 flush(&mut args, &mut current); in fmt()
83 _ => &mut current, in fmt()
87 flush(&mut args, &mut current); in fmt()
/linux/arch/x86/kernel/
H A Dsignal.c119 sp = current->sas_ss_sp + current->sas_ss_size; in get_sigframe()
155 current->comm, task_pid_nr(current)); in get_sigframe()
258 struct fpu *fpu = x86_task_fpu(current); in handle_signal()
264 if (syscall_get_nr(current, regs) != -1) { in handle_signal()
266 switch (syscall_get_error(current, regs)) { in handle_signal()
292 user_disable_single_step(current); in handle_signal()
318 if (current->restart_block.arch_data & TS_COMPAT) in get_nr_restart_syscall()
344 if (syscall_get_nr(current, regs) != -1) { in arch_do_signal_or_restart()
346 switch (syscall_get_error(current, regs)) { in arch_do_signal_or_restart()
370 struct task_struct *me = current; in signal_fault()
[all …]
/linux/tools/iio/
H A Diio_utils.c31 char *current; in iioutils_break_up_name() local
43 current = strdup(full_name + strlen(prefix) + 1); in iioutils_break_up_name()
44 if (!current) in iioutils_break_up_name()
47 working = strtok(current, "_\0"); in iioutils_break_up_name()
49 free(current); in iioutils_break_up_name()
66 free(current); in iioutils_break_up_name()
321 struct iio_channel_info *current; in build_channel_array() local
385 current = &(*ci_array)[count++]; in build_channel_array()
421 current->scale = 1.0; in build_channel_array()
422 current->offset = 0; in build_channel_array()
[all …]

12345678910>>...127