/linux-master/arch/x86/kernel/ |
H A D | vm86_32.c | 98 struct task_struct *tsk = current; local 145 tsk->thread.sp0 = vm86->saved_sp0; 146 tsk->thread.sysenter_cs = __KERNEL_CS; 147 update_task_stack(tsk); 148 refresh_sysenter_cs(&tsk->thread); 201 struct task_struct *tsk = current; local 202 struct vm86 *vm86 = tsk->thread.vm86; 237 tsk->thread.vm86 = vm86; 327 vm86->saved_sp0 = tsk->thread.sp0; 332 tsk 722 struct task_struct *tsk; member in struct:vm86_irqs [all...] |
H A D | shstk.c | 194 unsigned long shstk_alloc_thread_stack(struct task_struct *tsk, unsigned long clone_flags, argument 197 struct thread_shstk *shstk = &tsk->thread.shstk; 405 void shstk_free(struct task_struct *tsk) argument 407 struct thread_shstk *shstk = &tsk->thread.shstk; 414 * When fork() with CLONE_VM fails, the child (tsk) already has a 419 if (!tsk->mm || tsk->mm != current->mm)
|
H A D | ptrace.c | 527 ptrace_register_breakpoint(struct task_struct *tsk, int len, int type, argument 541 NULL, tsk); 560 static int ptrace_write_dr7(struct task_struct *tsk, unsigned long data) argument 562 struct thread_struct *thread = &tsk->thread; 581 bp = ptrace_register_breakpoint(tsk, 611 static unsigned long ptrace_get_debugreg(struct task_struct *tsk, int n) argument 613 struct thread_struct *thread = &tsk->thread; 630 static int ptrace_set_breakpoint_addr(struct task_struct *tsk, int nr, argument 633 struct thread_struct *t = &tsk->thread; 649 bp = ptrace_register_breakpoint(tsk, 669 ptrace_set_debugreg(struct task_struct *tsk, int n, unsigned long val) argument 1410 struct task_struct *tsk = current; local [all...] |
/linux-master/mm/ |
H A D | memory-failure.c | 330 struct task_struct *tsk; member in struct:to_kill 342 struct task_struct *t = tk->tsk; 443 static void __add_to_kill(struct task_struct *tsk, struct page *p, argument 475 page_to_pfn(p), tsk->comm); 481 get_task_struct(tsk); 482 tk->tsk = tsk; 486 static void add_to_kill_anon_file(struct task_struct *tsk, struct page *p, argument 490 __add_to_kill(tsk, p, vma, to_kill, 0, FSDAX_INVALID_PGOFF); 495 struct task_struct *tsk) 494 task_in_to_kill_list(struct list_head *to_kill, struct task_struct *tsk) argument 506 add_to_kill_ksm(struct task_struct *tsk, struct page *p, struct vm_area_struct *vma, struct list_head *to_kill, unsigned long ksm_addr) argument 565 find_early_kill_thread(struct task_struct *tsk) argument 593 task_early_kill(struct task_struct *tsk, int force_early) argument 614 struct task_struct *tsk; local 651 struct task_struct *tsk; local 681 add_to_kill_fsdax(struct task_struct *tsk, struct page *p, struct vm_area_struct *vma, struct list_head *to_kill, pgoff_t pgoff) argument 696 struct task_struct *tsk; local [all...] |
/linux-master/kernel/trace/ |
H A D | trace_sched_switch.c | 243 int trace_save_cmdline(struct task_struct *tsk) argument 248 if (!tsk->pid) 251 tpid = tsk->pid & (PID_MAX_DEFAULT - 1); 274 savedcmd->map_cmdline_to_pid[idx] = tsk->pid; 275 set_cmdline(idx, tsk->comm); 342 static int trace_save_tgid(struct task_struct *tsk) argument 347 if (!tsk->pid) 350 ptr = trace_find_tgid_ptr(tsk->pid); 354 *ptr = tsk->tgid;
|
/linux-master/arch/arm/mm/ |
H A D | fault.c | 185 struct task_struct *tsk = current; local 195 tsk->comm, sig, addr, fsr); 196 show_pte(KERN_ERR, tsk->mm, addr); 204 tsk->comm, addr); 207 tsk->thread.address = addr; 208 tsk->thread.error_code = fsr; 209 tsk->thread.trap_no = 14; 215 struct task_struct *tsk = current; local 216 struct mm_struct *mm = tsk->active_mm;
|
/linux-master/arch/um/kernel/ |
H A D | trap.c | 136 struct task_struct *tsk = current; local 139 if (!unhandled_signal(tsk, SIGSEGV)) 146 task_pid_nr(tsk) > 1 ? KERN_INFO : KERN_EMERG, 147 tsk->comm, task_pid_nr(tsk), FAULT_ADDRESS(*fi),
|
/linux-master/arch/arc/kernel/ |
H A D | troubleshoot.c | 54 static void print_task_path_n_nm(struct task_struct *tsk) argument 61 mm = get_task_mm(tsk); 172 struct task_struct *tsk = current; local 173 struct callee_regs *cregs = (struct callee_regs *)tsk->thread.callee_reg; 181 print_task_path_n_nm(tsk);
|
H A D | head.S | 141 ; setup "current" tsk and optionally cache it in dedicated r25 143 SET_CURR_TASK_ON_CPU r9, r0 ; r9 = tsk, r0 = scratch 148 ; tsk->thread_info is really a PAGE, whose bottom hoists stack 149 GET_TSK_STACK_BASE r9, sp ; r9 = tsk, sp = stack base(output) 168 ; set its stack base to tsk->thread_info bottom
|
/linux-master/include/linux/ |
H A D | ptrace.h | 20 extern int ptrace_access_vm(struct task_struct *tsk, unsigned long addr, 51 extern int ptrace_readdata(struct task_struct *tsk, unsigned long src, char __user *dst, int len); 52 extern int ptrace_writedata(struct task_struct *tsk, char __user *src, unsigned long dst, int len); 101 int generic_ptrace_peekdata(struct task_struct *tsk, unsigned long addr, 103 int generic_ptrace_pokedata(struct task_struct *tsk, unsigned long addr,
|
/linux-master/arch/x86/mm/ |
H A D | fault.c | 594 struct task_struct *tsk; local 599 tsk = current; 603 tsk->comm, address); 631 struct task_struct *tsk = current; local 633 tsk->thread.trap_nr = X86_TRAP_PF; 634 tsk->thread.error_code = error_code | X86_PF_USER; 635 tsk->thread.cr2 = address; 776 unsigned long address, struct task_struct *tsk) 778 const char *loglvl = task_pid_nr(tsk) > 1 ? KERN_INFO : KERN_EMERG; 782 if (!unhandled_signal(tsk, SIGSEG 775 show_signal_msg(struct pt_regs *regs, unsigned long error_code, unsigned long address, struct task_struct *tsk) argument 811 struct task_struct *tsk = current; local 959 struct task_struct *tsk = current; local 1241 struct task_struct *tsk; local [all...] |
/linux-master/include/linux/sched/ |
H A D | mm.h | 202 static inline bool in_vfork(struct task_struct *tsk) argument 210 * We check real_parent->mm == tsk->mm because CLONE_VFORK does not 217 * And in this case we can't trust the real_parent->mm == tsk->mm 222 ret = tsk->vfork_done && 223 rcu_dereference(tsk->real_parent)->mm == tsk->mm; 544 struct task_struct *tsk) 542 membarrier_arch_switch_mm(struct mm_struct *prev, struct mm_struct *next, struct task_struct *tsk) argument
|
H A D | task.h | 85 extern void exit_thread(struct task_struct *tsk); 87 static inline void exit_thread(struct task_struct *tsk) argument 107 extern void free_task(struct task_struct *tsk);
|
/linux-master/arch/openrisc/mm/ |
H A D | fault.c | 49 struct task_struct *tsk; local 56 tsk = current; 96 mm = tsk->mm; 287 * Use current_pgd instead of tsk->active_mm->pgd
|
/linux-master/arch/arc/mm/ |
H A D | fault.c | 76 struct task_struct *tsk = current; local 77 struct mm_struct *mm = tsk->mm; 184 tsk->thread.fault_address = address;
|
/linux-master/arch/arm/include/asm/ |
H A D | hw_breakpoint.h | 133 extern void clear_ptrace_hw_breakpoint(struct task_struct *tsk); 141 static inline void clear_ptrace_hw_breakpoint(struct task_struct *tsk) {} argument
|
H A D | uaccess-asm.h | 86 .macro uaccess_entry, tsk, tmp0, tmp1, tmp2, disable variable 104 .macro uaccess_exit, tsk, tmp0, tmp1 variable
|
/linux-master/arch/sh/include/asm/ |
H A D | mmu_context.h | 88 static inline int init_new_context(struct task_struct *tsk, argument 111 struct task_struct *tsk) 109 switch_mm(struct mm_struct *prev, struct mm_struct *next, struct task_struct *tsk) argument
|
/linux-master/arch/xtensa/include/asm/ |
H A D | mmu_context.h | 115 static inline int init_new_context(struct task_struct *tsk, argument 127 struct task_struct *tsk) 126 switch_mm(struct mm_struct *prev, struct mm_struct *next, struct task_struct *tsk) argument
|
/linux-master/arch/arm/kernel/ |
H A D | entry-v7m.S | 69 get_thread_info tsk 70 ldr r2, [tsk, #TI_FLAGS] 95 get_thread_info tsk
|
H A D | unwind.c | 522 void unwind_backtrace(struct pt_regs *regs, struct task_struct *tsk, argument 529 pr_debug("%s(regs = %p tsk = %p)\n", __func__, regs, tsk); 531 if (!tsk) 532 tsk = current; 539 } else if (tsk == current) { 551 frame.fp = thread_saved_fp(tsk); 552 frame.sp = thread_saved_sp(tsk); 558 frame.pc = thread_saved_pc(tsk);
|
/linux-master/arch/sparc/include/asm/ |
H A D | mmu_context_64.h | 27 int init_new_context(struct task_struct *tsk, struct mm_struct *mm); 80 static inline void switch_mm(struct mm_struct *old_mm, struct mm_struct *mm, struct task_struct *tsk) argument
|
/linux-master/kernel/ |
H A D | auditsc.c | 380 static int audit_field_compare(struct task_struct *tsk, argument 397 return audit_compare_uid(audit_get_loginuid(tsk), name, f, ctx); 409 audit_get_loginuid(tsk)); 418 return audit_uid_comparator(audit_get_loginuid(tsk), f->op, 421 return audit_uid_comparator(audit_get_loginuid(tsk), f->op, 424 return audit_uid_comparator(audit_get_loginuid(tsk), f->op, 461 * filtering a task rule at task creation time. This and tsk == current are 462 * the only situations where tsk->cred may be accessed without an rcu read lock. 464 static int audit_filter_rules(struct task_struct *tsk, argument 479 cred = rcu_dereference_check(tsk 776 audit_filter_task(struct task_struct *tsk, char **key) argument 825 __audit_filter_op(struct task_struct *tsk, struct audit_context *ctx, struct list_head *list, struct audit_names *name, unsigned long op) argument 850 audit_filter_uring(struct task_struct *tsk, struct audit_context *ctx) argument 867 audit_filter_syscall(struct task_struct *tsk, struct audit_context *ctx) argument 883 audit_filter_inode_name(struct task_struct *tsk, struct audit_names *n, struct audit_context *ctx) argument 898 audit_filter_inodes(struct task_struct *tsk, struct audit_context *ctx) argument 1055 audit_alloc(struct task_struct *tsk) argument 1827 __audit_free(struct task_struct *tsk) argument [all...] |
H A D | cred.c | 117 void exit_creds(struct task_struct *tsk) argument 121 kdebug("exit_creds(%u,%p,%p,{%ld})", tsk->pid, tsk->real_cred, tsk->cred, 122 atomic_long_read(&tsk->cred->usage)); 124 real_cred = (struct cred *) tsk->real_cred; 125 tsk->real_cred = NULL; 127 cred = (struct cred *) tsk->cred; 128 tsk->cred = NULL; 138 key_put(tsk [all...] |
/linux-master/arch/arm64/kernel/ |
H A D | entry.S | 121 ldr \tmp2, [tsk, #TSK_TI_FLAGS] 148 add \ti_flags, tsk, #TSK_TI_FLAGS 186 .macro mte_set_user_gcr, tsk, tmp, tmp2 191 ldr \tmp, [\tsk, #THREAD_MTE_CTRL] 224 ldr_this_cpu tsk, __entry_task, x20 225 msr sp_el0, tsk 231 ldr x19, [tsk, #TSK_TI_FLAGS] 235 ldr x0, [tsk, THREAD_SCTLR_USER] 250 __ptrauth_keys_install_kernel_nosync tsk, x20, x22, x23 280 get_current_task tsk 509 tsk .req x28 // current thread_info label [all...] |