/linux-master/arch/powerpc/include/asm/ |
H A D | cputime.h | 48 struct cpu_accounting_data *acct = raw_get_accounting(current); 57 struct cpu_accounting_data *acct = raw_get_accounting(current);
|
/linux-master/arch/sh/mm/ |
H A D | tlbex_32.c | 41 if (unlikely(address >= TASK_SIZE || !current->mm)) 44 pgd = pgd_offset(current->mm, address);
|
/linux-master/tools/testing/selftests/bpf/progs/ |
H A D | map_kptr.c | 483 struct task_struct *current; local 486 current = bpf_get_current_task_btf(); 487 if (!current) 489 v = bpf_task_storage_get(&task_ls_map, current, NULL, 0); 492 v = bpf_task_storage_get(&task_ls_map, current, NULL, BPF_LOCAL_STORAGE_GET_F_CREATE); 501 struct task_struct *current; local 504 current = bpf_get_current_task_btf(); 505 if (!current) 507 v = bpf_task_storage_get(&task_ls_map, current, NULL, 0); 516 struct task_struct *current; local [all...] |
/linux-master/arch/mips/kernel/ |
H A D | traps.c | 159 task = current; 219 if (task && task != current) { 378 current->comm, current->pid, current_thread_info(), current, 388 show_stacktrace(current, regs, KERN_DEFAULT, user_mode(regs)); 402 if (notify_die(DIE_OOPS, str, regs, 0, current->thread.trap_nr, 423 if (regs && kexec_should_crash(current)) 488 if (notify_die(DIE_OOPS, "bus error", regs, 0, current->thread.trap_nr, 554 if (ll_task == NULL || ll_task == current) { [all...] |
/linux-master/fs/ |
H A D | fs_struct.c | 135 struct fs_struct *fs = current->fs; 142 task_lock(current); 145 current->fs = new_fs; 147 task_unlock(current); 158 return current->fs->umask;
|
H A D | binfmt_elf_fdpic.c | 200 kdebug("____ LOAD %d ____", current->pid); 350 current->personality |= PER_LINUX_FDPIC; 352 current->personality |= READ_IMPLIES_EXEC; 358 current->mm->start_code = 0; 359 current->mm->end_code = 0; 360 current->mm->start_stack = 0; 361 current->mm->start_data = 0; 362 current->mm->end_data = 0; 363 current->mm->context.exec_fdpic_loadmap = 0; 364 current [all...] |
H A D | binfmt_flat.c | 113 sp = (unsigned long __user *)current->mm->start_stack; 121 current->mm->start_stack = (unsigned long)sp & -FLAT_STACK_ALIGN; 122 sp = (unsigned long __user *)current->mm->start_stack; 134 current->mm->arg_start = (unsigned long)p; 145 current->mm->arg_end = (unsigned long)p; 147 current->mm->env_start = (unsigned long) p; 158 current->mm->env_end = (unsigned long)p; 330 pr_cont(", killing %s!\n", current->comm); 331 send_sig(SIGSEGV, current, 0); 348 ptr = (unsigned long __user *)(current [all...] |
H A D | exec.c | 14 * "current->executable", and page faults do the actual loading. Clean. 20 * current->executable is only used by the procfs. This allows a dispatch 182 * use a lot of memory, account these pages in current->mm temporary 188 struct mm_struct *mm = current->mm; 223 * We are doing an exec(). 'current' is the process 379 /* Save current stack limit for all calculations made during exec. */ 380 task_lock(current->group_leader); 381 bprm->rlim_stack = current->signal->rlim[RLIMIT_STACK]; 382 task_unlock(current->group_leader); 453 if (fatal_signal_pending(current)) [all...] |
/linux-master/include/linux/ |
H A D | time_namespace.h | 70 struct timens_offsets *ns_offsets = ¤t->nsproxy->time_ns->offsets; 77 struct timens_offsets *ns_offsets = ¤t->nsproxy->time_ns->offsets; 84 struct timens_offsets *ns_offsets = ¤t->nsproxy->time_ns->offsets; 91 struct timens_offsets *ns_offsets = ¤t->nsproxy->time_ns->offsets; 101 struct time_namespace *ns = current->nsproxy->time_ns;
|
/linux-master/kernel/futex/ |
H A D | pi.c | 17 if (likely(current->pi_state_cache)) 31 current->pi_state_cache = pi_state; 38 struct futex_pi_state *pi_state = current->pi_state_cache; 41 current->pi_state_cache = NULL; 99 if (current->pi_state_cache) { 109 current->pi_state_cache = pi_state; 238 * Since {uval, pi_state} is serialized by wait_lock, and our current 457 * required to prevent a live lock when the current task 499 * be "current" except in the case of requeue pi. 685 * that (@argowner == current), [all...] |
/linux-master/arch/sh/kernel/ |
H A D | traps.c | 39 printk("Process: %s (pid: %d, stack limit = %p)\n", current->comm, 40 task_pid_nr(current), task_stack_page(current) + 1); 44 THREAD_SIZE + (unsigned long)task_stack_page(current)); 53 if (kexec_should_crash(current))
|
/linux-master/arch/loongarch/kernel/ |
H A D | process.c | 88 current->thread.fpu.fcsr = boot_cpu_data.fpu_csr0; 100 flush_ptrace_hw_breakpoint(current); 120 save_lasx(current); 122 save_lsx(current); 124 save_fp(current); 273 task = task ? : current; 281 if (task != current) 297 top -= PAGE_ALIGN(current->thread.vdso->size); 301 if (current->flags & PF_RANDOMIZE) 313 if (!(current [all...] |
H A D | traps.c | 90 task = current; 143 if (!task || task == current) 390 current->comm, current->pid, current_thread_info(), current); 392 show_stacktrace(current, regs, KERN_DEFAULT, user_mode(regs)); 407 current->thread.trap_nr, SIGSEGV); 423 if (regs && kexec_should_crash(current)) 481 force_fcsr_sig(fcsr, fault_addr, current); 489 mmap_read_lock(current [all...] |
/linux-master/arch/s390/kernel/ |
H A D | traps.c | 40 address = current->thread.trap_tdb.data[3]; 77 if (!current->ptrace) 80 (void __force __user *) current->thread.per_event.address); 165 if (current->ptrace) 205 vic = (current->thread.ufpu.fpc & 0xf00) >> 8; 231 if (current->thread.ufpu.fpc & FPC_DXC_MASK) 232 do_fp_trap(regs, current->thread.ufpu.fpc); 324 current->thread.last_break = regs->last_break; 329 current->thread.trap_tdb = S390_lowcore.pgm_tdb; 334 struct per_event *ev = ¤t [all...] |
/linux-master/kernel/ |
H A D | context_tracking.c | 41 /* Record the current task on dyntick-idle entry. */ 45 WRITE_ONCE(current->rcu_tasks_idle_cpu, smp_processor_id()); 49 /* Record no current task on dyntick-idle exit. */ 53 WRITE_ONCE(current->rcu_tasks_idle_cpu, -1); 62 current->trc_reader_special.b.need_mb = true; 71 current->trc_reader_special.b.need_mb = false; 141 WARN_ON_ONCE(IS_ENABLED(CONFIG_RCU_EQS_DEBUG) && !user && !is_idle_task(current)); 142 rcu_preempt_deferred_qs(current); 186 WARN_ON_ONCE(IS_ENABLED(CONFIG_RCU_EQS_DEBUG) && !user && !is_idle_task(current)); 307 * ct_idle_enter - inform RCU that current CP [all...] |
/linux-master/arch/parisc/kernel/ |
H A D | traps.c | 151 level, task_cpu(current), cr30, cr31); 163 parisc_show_stack(current, regs, KERN_DEFAULT); 224 current->comm, task_pid_nr(current), str, err, regs->iaoq[0]); 248 current->comm, task_pid_nr(current), str, err); 251 if (current->thread.flags & PARISC_KERNEL_DEATH) { 256 current->thread.flags |= PARISC_KERNEL_DEATH; 326 task_pid_nr(current), current [all...] |
H A D | signal.c | 90 current->restart_block.fn = do_no_restart_syscall; 95 DBG(2, "%s: frame is %p pid %d\n", __func__, frame, task_pid_nr(current)); 172 sp = (current->sas_ss_sp + 0x7f) & ~0x3f; /* Stacks grow up! */ 276 rp = VDSO64_SYMBOL(current, sigtramp_rt); 279 rp = VDSO32_SYMBOL(current, sigtramp_rt); 339 if (pa_psw(current)->r) { 340 pa_psw(current)->r = 0; 372 __func__, current->comm, current->pid, frame, regs->gr[30], 447 current [all...] |
/linux-master/arch/arm/kernel/ |
H A D | traps.c | 226 tsk = current; 231 } else if (tsk != current) { 280 struct task_struct *tsk = current; 338 if (regs && kexec_should_crash(current)) 384 current->thread.error_code = err; 385 current->thread.trap_no = trap; 494 current->comm, task_pid_nr(current), pc); 548 if ((current->personality & PER_MASK) != PER_LINUX) { 549 send_sig(SIGSEGV, current, [all...] |
/linux-master/arch/x86/kernel/fpu/ |
H A D | core.c | 172 * which are in @mask even if the current task cannot use 206 spin_lock_irq(¤t->sighand->siglock); 207 fpuperm = ¤t->group_leader->thread.fpu.guest_perm; 213 spin_unlock_irq(¤t->sighand->siglock); 319 struct fpstate *fps = current->thread.fpu.fpstate; 333 struct fpu *fpu = ¤t->thread.fpu; 409 * Nullify @vpkru to preserve its current value if PKRU's bit isn't set 430 if (!(current->flags & (PF_KTHREAD | PF_USER_WORKER)) && 433 save_fpregs_to_fpstate(¤t->thread.fpu); 456 * Sync the FPU register state to current' [all...] |
/linux-master/arch/csky/kernel/ |
H A D | ptrace.c | 330 trace_sys_enter(regs, syscall_get_nr(current, regs)); 344 trace_sys_exit(regs, syscall_get_return_value(current, regs)); 468 pr_info("COMM=%s PID=%d\n", current->comm, current->pid); 470 if (current->mm) { 472 (int) current->mm->start_code, 473 (int) current->mm->end_code, 474 (int) current->mm->start_data, 475 (int) current->mm->end_data, 476 (int) current [all...] |
H A D | traps.c | 99 show_stack(current, (unsigned long *)regs->regs[4], KERN_INFO); 118 struct task_struct *tsk = current; 135 current->thread.trap_no = trap_no(regs); 163 current->thread.trap_no = trap_no(regs); 180 send_sig(SIGTRAP, current, 0); 190 current->thread.trap_no = trap_no(regs); 202 send_sig(SIGTRAP, current, 0);
|
/linux-master/arch/arm64/kernel/ |
H A D | process.c | 256 current->thread.uw.tp_value = 0; 278 flush_ptrace_hw_breakpoint(current); 289 if (current->mm) 367 * Read the current TLS pointer from tpidr_el0 as it may be 418 *task_user_tls(current) = read_sysreg(tpidr_el0); 420 current->thread.tpidr2_el0 = read_sysreg_s(SYS_TPIDR2_EL0); 461 * We store our current task in sp_el0, which is clobbered by userspace. Keep a 494 erratum_1418040_thread_switch(current); 499 * __switch_to() checks current->thread.sctlr_user as an optimisation. Therefore 593 if (!(current [all...] |
/linux-master/fs/orangefs/ |
H A D | waitqueue.c | 50 current->comm); 74 op->upcall.tgid = current->tgid; 75 op->upcall.pid = current->pid; 84 current->comm, 85 current->pid); 120 current->comm); 235 current->comm);
|
/linux-master/include/linux/sched/ |
H A D | mm.h | 157 /* Remove the current tasks stale references to the old mm_struct on exit() */ 159 /* Remove the current tasks stale references to the old mm_struct on exec() */ 237 unsigned int pflags = READ_ONCE(current->flags); 319 * memalloc_flags_save - Add a PF_* flag to current->flags, save old value 321 * This allows PF_* flags to be conveniently added, irrespective of current 326 unsigned oldflags = ~current->flags & flags; 327 current->flags |= flags; 333 current->flags &= ~flags; 491 old = current->active_memcg; 492 current [all...] |
/linux-master/arch/mips/include/asm/ |
H A D | elf.h | 17 #include <asm/current.h> 334 current->thread.abi = &mips_abi; \ 339 if (personality(current->personality) != PER_LINUX) \ 352 current->thread.abi = &mips_abi_n32; \ 367 current->thread.abi = &mips_abi_32; \ 397 current->personality &= ~READ_IMPLIES_EXEC; \ 402 current->thread.abi = &mips_abi; \ 406 p = personality(current->personality); \ 462 (unsigned long)current->mm->context.vdso); \
|