/linux-master/arch/parisc/include/asm/ |
H A D | processor.h | 27 #define TASK_SIZE_OF(tsk) ((tsk)->thread.task_size) 112 #define task_pt_regs(tsk) ((struct pt_regs *)&((tsk)->thread.regs)) 274 #define KSTK_EIP(tsk) ((tsk)->thread.regs.iaoq[0]) 275 #define KSTK_ESP(tsk) ((tsk)->thread.regs.gr[30])
|
/linux-master/include/linux/ |
H A D | rethook.h | 66 unsigned long rethook_find_ret_addr(struct task_struct *tsk, unsigned long frame, 95 #define rethook_flush_task(tsk) do { } while (0)
|
H A D | kernel_stat.h | 123 static inline void account_process_tick(struct task_struct *tsk, int user) argument 125 vtime_flush(tsk); 134 extern void __account_forceidle_time(struct task_struct *tsk, u64 delta);
|
/linux-master/arch/mips/mm/ |
H A D | fault.c | 43 struct task_struct *tsk = current; local 44 struct mm_struct *mm = tsk->mm; 197 tsk->thread.cp0_badvaddr = address; 198 tsk->thread.error_code = write; 200 unhandled_signal(tsk, SIGSEGV) && 203 tsk->comm, 264 tsk->comm, 271 tsk->thread.cp0_badvaddr = address; 282 * Do _not_ use "tsk" here. We might be inside
|
/linux-master/arch/um/include/asm/ |
H A D | processor-generic.h | 98 #define KSTK_REG(tsk, reg) get_thread_reg(reg, &tsk->thread.switch_buf)
|
/linux-master/arch/riscv/include/asm/ |
H A D | thread_info.h | 78 #define INIT_THREAD_INFO(tsk) \ 85 void arch_release_task_struct(struct task_struct *tsk);
|
H A D | vector.h | 29 void riscv_v_thread_free(struct task_struct *tsk); 31 void riscv_v_thread_alloc(struct task_struct *tsk); 236 #define riscv_preempt_v_clear_dirty(tsk) do {} while (0) 237 #define riscv_preempt_v_set_restore(tsk) do {} while (0) 262 void riscv_v_vstate_ctrl_init(struct task_struct *tsk); 281 #define riscv_v_thread_free(tsk) do {} while (0) 283 #define riscv_v_thread_alloc(tsk) do {} while (0)
|
/linux-master/net/tipc/ |
H A D | diag.c | 51 struct tipc_sock *tsk) 62 err = tipc_sk_fill_sock_diag(skb, cb, tsk, req->tidiag_states, 49 __tipc_add_sock_diag(struct sk_buff *skb, struct netlink_callback *cb, struct tipc_sock *tsk) argument
|
/linux-master/arch/loongarch/include/asm/ |
H A D | thread_info.h | 38 #define INIT_THREAD_INFO(tsk) \ 40 .task = &tsk, \
|
/linux-master/arch/arc/include/asm/ |
H A D | mmu_context.h | 93 /* Assign new ASID to tsk */ 108 init_new_context(struct task_struct *tsk, struct mm_struct *mm) argument 133 struct task_struct *tsk) 132 switch_mm(struct mm_struct *prev, struct mm_struct *next, struct task_struct *tsk) argument
|
/linux-master/arch/powerpc/kernel/ |
H A D | time.c | 243 void vtime_account_kernel(struct task_struct *tsk) argument 245 struct cpu_accounting_data *acct = get_accounting(tsk); 250 if (tsk->flags & PF_VCPU) { 264 void vtime_account_idle(struct task_struct *tsk) argument 267 struct cpu_accounting_data *acct = get_accounting(tsk); 285 void vtime_account_softirq(struct task_struct *tsk) argument 287 struct cpu_accounting_data *acct = get_accounting(tsk); 291 void vtime_account_hardirq(struct task_struct *tsk) argument 293 struct cpu_accounting_data *acct = get_accounting(tsk); 297 static void vtime_flush_scaled(struct task_struct *tsk, argument 319 vtime_flush(struct task_struct *tsk) argument [all...] |
/linux-master/fs/ |
H A D | fs_struct.c | 95 void exit_fs(struct task_struct *tsk) argument 97 struct fs_struct *fs = tsk->fs; 101 task_lock(tsk); 103 tsk->fs = NULL; 106 task_unlock(tsk);
|
H A D | exec.c | 998 struct task_struct *tsk; local 1003 tsk = current; 1005 exec_mm_release(tsk, old_mm); 1007 ret = down_write_killable(&tsk->signal->exec_update_lock); 1019 up_write(&tsk->signal->exec_update_lock); 1024 task_lock(tsk); 1028 active_mm = tsk->active_mm; 1029 tsk->active_mm = mm; 1030 tsk->mm = mm; 1045 task_unlock(tsk); 1059 de_thread(struct task_struct *tsk) argument 1230 __get_task_comm(char *buf, size_t buf_size, struct task_struct *tsk) argument 1245 __set_task_comm(struct task_struct *tsk, const char *buf, bool exec) argument [all...] |
/linux-master/arch/alpha/include/asm/ |
H A D | mmu_context.h | 234 init_new_context(struct task_struct *tsk, struct mm_struct *mm) argument 240 if (tsk != current) 241 task_thread_info(tsk)->pcb.ptbr 248 enter_lazy_tlb(struct mm_struct *mm, struct task_struct *tsk) argument 250 task_thread_info(tsk)->pcb.ptbr
|
/linux-master/kernel/events/ |
H A D | hw_breakpoint_test.c | 31 static struct perf_event *register_test_bp(int cpu, struct task_struct *tsk, int idx) argument 42 return perf_event_create_kernel_counter(&attr, cpu, tsk, NULL, NULL); 65 static void fill_one_bp_slot(struct kunit *test, int *id, int cpu, struct task_struct *tsk) argument 67 struct perf_event *bp = register_test_bp(cpu, tsk, *id); 76 * Fills up the given @cpu/@tsk with breakpoints, only leaving @skip slots free. 80 static bool fill_bp_slots(struct kunit *test, int *id, int cpu, struct task_struct *tsk, int skip) argument 83 fill_one_bp_slot(test, id, cpu, tsk); 95 struct task_struct *tsk; local 100 tsk = kthread_create(dummy_kthread, NULL, "hw_breakpoint_dummy_task"); 101 KUNIT_ASSERT_FALSE(test, IS_ERR(tsk)); [all...] |
/linux-master/arch/x86/kernel/fpu/ |
H A D | signal.c | 69 static inline bool save_fsave_header(struct task_struct *tsk, void __user *buf) argument 72 struct xregs_state *xsave = &tsk->thread.fpu.fpstate->regs.xsave; 78 fxsave(&tsk->thread.fpu.fpstate->regs.fxsave); 81 convert_from_fxsr(&env, tsk); 190 struct task_struct *tsk = current; local 191 struct fpstate *fpstate = tsk->thread.fpu.fpstate; 242 if ((ia32_fxstate || !use_fxsr()) && !save_fsave_header(tsk, buf)) 338 struct task_struct *tsk = current; local 339 struct fpu *fpu = &tsk->thread.fpu; 396 if (copy_sigframe_from_user_to_xstate(tsk, buf_f [all...] |
/linux-master/arch/x86/kernel/ |
H A D | process.c | 106 void arch_release_task_struct(struct task_struct *tsk) argument 109 fpstate_free(&tsk->thread.fpu); 116 void exit_thread(struct task_struct *tsk) argument 118 struct thread_struct *t = &tsk->thread; 122 io_bitmap_exit(tsk); 126 shstk_free(tsk); 225 * Clone current's PKRU value from hardware. tsk->thread.pkru 274 struct task_struct *tsk = current; local 276 flush_ptrace_hw_breakpoint(tsk); 277 memset(tsk 646 speculation_ctrl_update_tif(struct task_struct *tsk) argument [all...] |
/linux-master/kernel/sched/ |
H A D | cpuacct.c | 37 static inline struct cpuacct *task_ca(struct task_struct *tsk) argument 39 return css_ca(task_css(tsk, cpuacct_cgrp_id)); 334 void cpuacct_charge(struct task_struct *tsk, u64 cputime) argument 336 unsigned int cpu = task_cpu(tsk); 341 for (ca = task_ca(tsk); ca; ca = parent_ca(ca)) 350 void cpuacct_account_field(struct task_struct *tsk, int index, u64 val) argument 354 for (ca = task_ca(tsk); ca != &root_cpuacct; ca = parent_ca(ca))
|
/linux-master/arch/xtensa/kernel/ |
H A D | hw_breakpoint.c | 234 void flush_ptrace_hw_breakpoint(struct task_struct *tsk) argument 237 struct thread_struct *t = &tsk->thread; 258 void clear_ptrace_hw_breakpoint(struct task_struct *tsk) argument 260 memset(tsk->thread.ptrace_bp, 0, sizeof(tsk->thread.ptrace_bp)); 261 memset(tsk->thread.ptrace_wp, 0, sizeof(tsk->thread.ptrace_wp));
|
/linux-master/arch/riscv/mm/ |
H A D | fault.c | 130 * Do _not_ use "tsk->active_mm->pgd" here. 224 struct task_struct *tsk; local 235 tsk = current; 236 mm = tsk->mm; 265 tsk->thread.bad_cause = cause; 320 tsk->thread.bad_cause = cause; 332 tsk->thread.bad_cause = cause; 374 tsk->thread.bad_cause = cause;
|
/linux-master/kernel/ |
H A D | signal.c | 507 struct task_struct *tsk = current; local 510 spin_lock_irqsave(&tsk->sighand->siglock, flags); 511 __flush_itimer_signals(&tsk->pending); 512 __flush_itimer_signals(&tsk->signal->shared_pending); 513 spin_unlock_irqrestore(&tsk->sighand->siglock, flags); 548 bool unhandled_signal(struct task_struct *tsk, int sig) argument 550 void __user *handler = tsk->sighand->action[sig-1].sa.sa_handler; 551 if (is_global_init(tsk)) 558 if (fatal_signal_pending(tsk)) 562 return !tsk 626 dequeue_signal(struct task_struct *tsk, sigset_t *mask, kernel_siginfo_t *info, enum pid_type *type) argument 709 struct task_struct *tsk = current; local 1392 __lock_task_sighand(struct task_struct *tsk, unsigned long *flags) argument 2049 do_notify_parent(struct task_struct *tsk, int sig) argument 2163 do_notify_parent_cldstop(struct task_struct *tsk, bool for_ptracer, int why) argument 2967 retarget_shared_pending(struct task_struct *tsk, sigset_t *which) argument 2993 exit_signals(struct task_struct *tsk) argument 3063 __set_task_blocked(struct task_struct *tsk, const sigset_t *newset) argument 3090 struct task_struct *tsk = current; local 3114 struct task_struct *tsk = current; local 3626 struct task_struct *tsk = current; local [all...] |
/linux-master/arch/powerpc/include/asm/ |
H A D | pkeys.h | 146 extern int __arch_set_user_pkey_access(struct task_struct *tsk, int pkey, 148 static inline int arch_set_user_pkey_access(struct task_struct *tsk, int pkey, argument 163 return __arch_set_user_pkey_access(tsk, pkey, init_val);
|
/linux-master/arch/sparc/mm/ |
H A D | fault_64.c | 41 struct task_struct *tsk, 51 printk(KERN_ALERT "tsk->{mm,active_mm}->context = %016lx\n", 52 (tsk->mm ? 53 CTX_HWBITS(tsk->mm->context) : 54 CTX_HWBITS(tsk->active_mm->context))); 55 printk(KERN_ALERT "tsk->{mm,active_mm}->pgd = %016lx\n", 56 (tsk->mm ? (unsigned long) tsk->mm->pgd : 57 (unsigned long) tsk->active_mm->pgd)); 141 unsigned long address, struct task_struct *tsk) 40 unhandled_fault(unsigned long address, struct task_struct *tsk, struct pt_regs *regs) argument 140 show_signal_msg(struct pt_regs *regs, int sig, int code, unsigned long address, struct task_struct *tsk) argument [all...] |
/linux-master/arch/arm/kernel/ |
H A D | entry-common.S | 45 ldr r1, [tsk, #TI_FLAGS] @ re-check for syscall tracing 75 ldr r1, [tsk, #TI_FLAGS] @ re-check for syscall tracing 93 str scno, [tsk, #TI_ABI_SYSCALL] @ make sure tracers see update 114 ldr r1, [tsk, #TI_FLAGS] 135 1: get_thread_info tsk 230 get_thread_info tsk 242 strne r10, [tsk, #TI_ABI_SYSCALL] 243 streq scno, [tsk, #TI_ABI_SYSCALL] 248 str scno, [tsk, #TI_ABI_SYSCALL] 251 str scno, [tsk, #TI_ABI_SYSCAL [all...] |
/linux-master/arch/loongarch/kernel/ |
H A D | ptrace.c | 406 struct task_struct *tsk, 416 bp = tsk->thread.hbp_break[idx]; 422 bp = tsk->thread.hbp_watch[idx]; 430 struct task_struct *tsk, 439 tsk->thread.hbp_break[idx] = bp; 445 tsk->thread.hbp_watch[idx] = bp; 453 struct task_struct *tsk, 482 bp = register_user_hw_breakpoint(&attr, ptrace_hbptriggered, NULL, tsk); 486 err = ptrace_hbp_set_event(note_type, tsk, idx, bp); 545 struct task_struct *tsk, 405 ptrace_hbp_get_event(unsigned int note_type, struct task_struct *tsk, unsigned long idx) argument 429 ptrace_hbp_set_event(unsigned int note_type, struct task_struct *tsk, unsigned long idx, struct perf_event *bp) argument 452 ptrace_hbp_create(unsigned int note_type, struct task_struct *tsk, unsigned long idx) argument 544 ptrace_hbp_get_initialised_bp(unsigned int note_type, struct task_struct *tsk, unsigned long idx) argument 556 ptrace_hbp_get_ctrl(unsigned int note_type, struct task_struct *tsk, unsigned long idx, u32 *ctrl) argument 570 ptrace_hbp_get_mask(unsigned int note_type, struct task_struct *tsk, unsigned long idx, u64 *mask) argument 584 ptrace_hbp_get_addr(unsigned int note_type, struct task_struct *tsk, unsigned long idx, u64 *addr) argument 598 ptrace_hbp_set_ctrl(unsigned int note_type, struct task_struct *tsk, unsigned long idx, u32 uctrl) argument 620 ptrace_hbp_set_mask(unsigned int note_type, struct task_struct *tsk, unsigned long idx, u64 mask) argument 639 ptrace_hbp_set_addr(unsigned int note_type, struct task_struct *tsk, unsigned long idx, u64 addr) argument 1025 set_single_step(struct task_struct *tsk, unsigned long addr) argument [all...] |