Home
last modified time | relevance | path

Searched refs:task (Results 1 – 25 of 308) sorted by relevance

12345678910>>...13

/arch/parisc/kernel/
Dptrace.c38 void ptrace_disable(struct task_struct *task) in ptrace_disable() argument
40 clear_tsk_thread_flag(task, TIF_SINGLESTEP); in ptrace_disable()
41 clear_tsk_thread_flag(task, TIF_BLOCKSTEP); in ptrace_disable()
44 pa_psw(task)->r = 0; in ptrace_disable()
45 pa_psw(task)->t = 0; in ptrace_disable()
46 pa_psw(task)->h = 0; in ptrace_disable()
47 pa_psw(task)->l = 0; in ptrace_disable()
54 void user_disable_single_step(struct task_struct *task) in user_disable_single_step() argument
56 ptrace_disable(task); in user_disable_single_step()
59 void user_enable_single_step(struct task_struct *task) in user_enable_single_step() argument
[all …]
/arch/um/include/asm/
Dstacktrace.h18 get_frame_pointer(struct task_struct *task, struct pt_regs *segv_regs) in get_frame_pointer() argument
20 if (!task || task == current) in get_frame_pointer()
22 return KSTK_EBP(task); in get_frame_pointer()
26 get_frame_pointer(struct task_struct *task, struct pt_regs *segv_regs) in get_frame_pointer() argument
33 *get_stack_pointer(struct task_struct *task, struct pt_regs *segv_regs) in get_stack_pointer() argument
35 if (!task || task == current) in get_stack_pointer()
37 return (unsigned long *)KSTK_ESP(task); in get_stack_pointer()
/arch/microblaze/include/asm/
Dprocessor.h135 # define task_tos(task) ((unsigned long)(task) + KERNEL_STACK_SIZE) argument
136 # define task_regs(task) ((struct pt_regs *)task_tos(task) - 1) argument
141 # define task_sp(task) (task_regs(task)->r1) argument
142 # define task_pc(task) (task_regs(task)->pc) argument
144 # define KSTK_EIP(task) (task_pc(task)) argument
145 # define KSTK_ESP(task) (task_sp(task)) argument
/arch/ia64/include/asm/
Dsyscall.h20 static inline long syscall_get_nr(struct task_struct *task, in syscall_get_nr() argument
29 static inline void syscall_rollback(struct task_struct *task, in syscall_rollback() argument
35 static inline long syscall_get_error(struct task_struct *task, in syscall_get_error() argument
41 static inline long syscall_get_return_value(struct task_struct *task, in syscall_get_return_value() argument
47 static inline void syscall_set_return_value(struct task_struct *task, in syscall_set_return_value() argument
61 extern void ia64_syscall_get_set_arguments(struct task_struct *task,
64 static inline void syscall_get_arguments(struct task_struct *task, in syscall_get_arguments() argument
71 ia64_syscall_get_set_arguments(task, regs, i, n, args, 0); in syscall_get_arguments()
74 static inline void syscall_set_arguments(struct task_struct *task, in syscall_set_arguments() argument
81 ia64_syscall_get_set_arguments(task, regs, i, n, args, 1); in syscall_set_arguments()
Dperfmon.h24 extern void pfm_inherit(struct task_struct *task, struct pt_regs *regs);
69 int (*fmt_validate)(struct task_struct *task, unsigned int flags, int cpu, void *arg);
70 …int (*fmt_getsize)(struct task_struct *task, unsigned int flags, int cpu, void *arg, unsigned lon…
71 int (*fmt_init)(struct task_struct *task, void *buf, unsigned int flags, int cpu, void *arg);
72 …int (*fmt_handler)(struct task_struct *task, void *buf, pfm_ovfl_arg_t *arg, struct pt_regs *regs…
73 …int (*fmt_restart)(struct task_struct *task, pfm_ovfl_ctrl_t *ctrl, void *buf, struct pt_regs *re…
74 …int (*fmt_restart_active)(struct task_struct *task, pfm_ovfl_ctrl_t *ctrl, void *buf, struct pt_r…
75 int (*fmt_exit)(struct task_struct *task, void *buf, struct pt_regs *regs);
88 extern int pfm_mod_write_ibrs(struct task_struct *task, void *req, unsigned int nreq, struct pt_reg…
89 extern int pfm_mod_write_dbrs(struct task_struct *task, void *req, unsigned int nreq, struct pt_reg…
/arch/microblaze/kernel/
Dunwind.c153 static void microblaze_unwind_inner(struct task_struct *task,
163 static inline void unwind_trap(struct task_struct *task, unsigned long pc, in unwind_trap() argument
169 static inline void unwind_trap(struct task_struct *task, unsigned long pc, in unwind_trap() argument
173 microblaze_unwind_inner(task, regs->pc, regs->r1, regs->r15, trace); in unwind_trap()
187 static void microblaze_unwind_inner(struct task_struct *task, in microblaze_unwind_inner() argument
218 microblaze_unwind_inner(task, regs->r17 - 4, in microblaze_unwind_inner()
231 unwind_trap(task, pc, fp, trace); in microblaze_unwind_inner()
249 if (unlikely(pc == task_pt_regs(task)->pc)) { in microblaze_unwind_inner()
252 (unsigned long) task->pid, in microblaze_unwind_inner()
253 task->comm); in microblaze_unwind_inner()
[all …]
Dtraps.c33 void show_stack(struct task_struct *task, unsigned long *sp) in show_stack() argument
39 if (task) { in show_stack()
41 (task->stack))->cpu_context.r1; in show_stack()
70 microblaze_unwind(task, NULL); in show_stack()
73 if (!task) in show_stack()
74 task = current; in show_stack()
76 debug_show_held_locks(task); in show_stack()
/arch/powerpc/kernel/
Dsignal.h25 struct task_struct *task);
27 struct task_struct *task);
28 extern unsigned long copy_fpr_from_user(struct task_struct *task,
30 extern unsigned long copy_transact_fpr_from_user(struct task_struct *task,
34 struct task_struct *task);
36 struct task_struct *task);
37 extern unsigned long copy_vsx_from_user(struct task_struct *task,
39 extern unsigned long copy_transact_vsx_from_user(struct task_struct *task,
/arch/blackfin/include/asm/
Dsyscall.h26 syscall_get_nr(struct task_struct *task, struct pt_regs *regs) in syscall_get_nr() argument
32 syscall_rollback(struct task_struct *task, struct pt_regs *regs) in syscall_rollback() argument
38 syscall_get_error(struct task_struct *task, struct pt_regs *regs) in syscall_get_error() argument
44 syscall_get_return_value(struct task_struct *task, struct pt_regs *regs) in syscall_get_return_value() argument
50 syscall_set_return_value(struct task_struct *task, struct pt_regs *regs, in syscall_set_return_value() argument
67 syscall_get_arguments(struct task_struct *task, struct pt_regs *regs, in syscall_get_arguments() argument
85 syscall_set_arguments(struct task_struct *task, struct pt_regs *regs, in syscall_set_arguments() argument
/arch/openrisc/include/asm/
Dsyscall.h27 syscall_get_nr(struct task_struct *task, struct pt_regs *regs) in syscall_get_nr() argument
33 syscall_rollback(struct task_struct *task, struct pt_regs *regs) in syscall_rollback() argument
39 syscall_get_error(struct task_struct *task, struct pt_regs *regs) in syscall_get_error() argument
45 syscall_get_return_value(struct task_struct *task, struct pt_regs *regs) in syscall_get_return_value() argument
51 syscall_set_return_value(struct task_struct *task, struct pt_regs *regs, in syscall_set_return_value() argument
58 syscall_get_arguments(struct task_struct *task, struct pt_regs *regs, in syscall_get_arguments() argument
67 syscall_set_arguments(struct task_struct *task, struct pt_regs *regs, in syscall_set_arguments() argument
/arch/powerpc/include/asm/
Dsyscall.h25 static inline long syscall_get_nr(struct task_struct *task, in syscall_get_nr() argument
31 static inline void syscall_rollback(struct task_struct *task, in syscall_rollback() argument
37 static inline long syscall_get_error(struct task_struct *task, in syscall_get_error() argument
43 static inline long syscall_get_return_value(struct task_struct *task, in syscall_get_return_value() argument
49 static inline void syscall_set_return_value(struct task_struct *task, in syscall_set_return_value() argument
62 static inline void syscall_get_arguments(struct task_struct *task, in syscall_get_arguments() argument
69 if (test_tsk_thread_flag(task, TIF_32BIT)) { in syscall_get_arguments()
82 static inline void syscall_set_arguments(struct task_struct *task, in syscall_set_arguments() argument
/arch/s390/include/asm/
Dsyscall.h28 static inline long syscall_get_nr(struct task_struct *task, in syscall_get_nr() argument
35 static inline void syscall_rollback(struct task_struct *task, in syscall_rollback() argument
41 static inline long syscall_get_error(struct task_struct *task, in syscall_get_error() argument
47 static inline long syscall_get_return_value(struct task_struct *task, in syscall_get_return_value() argument
53 static inline void syscall_set_return_value(struct task_struct *task, in syscall_set_return_value() argument
60 static inline void syscall_get_arguments(struct task_struct *task, in syscall_get_arguments() argument
75 if (test_tsk_thread_flag(task, TIF_31BIT)) in syscall_get_arguments()
85 static inline void syscall_set_arguments(struct task_struct *task, in syscall_set_arguments() argument
/arch/sh/include/asm/
Dsyscall_64.h10 static inline long syscall_get_nr(struct task_struct *task, in syscall_get_nr() argument
16 static inline void syscall_rollback(struct task_struct *task, in syscall_rollback() argument
25 static inline long syscall_get_error(struct task_struct *task, in syscall_get_error() argument
31 static inline long syscall_get_return_value(struct task_struct *task, in syscall_get_return_value() argument
37 static inline void syscall_set_return_value(struct task_struct *task, in syscall_set_return_value() argument
47 static inline void syscall_get_arguments(struct task_struct *task, in syscall_get_arguments() argument
56 static inline void syscall_set_arguments(struct task_struct *task, in syscall_set_arguments() argument
Dsyscall_32.h11 static inline long syscall_get_nr(struct task_struct *task, in syscall_get_nr() argument
17 static inline void syscall_rollback(struct task_struct *task, in syscall_rollback() argument
26 static inline long syscall_get_error(struct task_struct *task, in syscall_get_error() argument
32 static inline long syscall_get_return_value(struct task_struct *task, in syscall_get_return_value() argument
38 static inline void syscall_set_return_value(struct task_struct *task, in syscall_set_return_value() argument
48 static inline void syscall_get_arguments(struct task_struct *task, in syscall_get_arguments() argument
76 static inline void syscall_set_arguments(struct task_struct *task, in syscall_set_arguments() argument
/arch/tile/include/asm/
Dprocessor.h229 #define task_ksp0(task) \ argument
230 ((unsigned long)(task)->stack + THREAD_SIZE - STACK_TOP_DELTA)
233 #define task_pt_regs(task) \ argument
234 ((struct pt_regs *)(task_ksp0(task) - KSTK_PTREGS_GAP) - 1)
238 #define task_sp(task) (task_pt_regs(task)->sp) argument
239 #define task_pc(task) (task_pt_regs(task)->pc) argument
241 #define KSTK_EIP(task) task_pc(task) argument
242 #define KSTK_ESP(task) task_sp(task) argument
356 #define next_current_ksp0(task) ({ \ argument
357 unsigned long __ksp0 = task_ksp0(task) & ((1UL << CPU_SHIFT) - 1); \
[all …]
Dsyscall.h41 static inline void syscall_rollback(struct task_struct *task, in syscall_rollback() argument
47 static inline long syscall_get_error(struct task_struct *task, in syscall_get_error() argument
54 static inline long syscall_get_return_value(struct task_struct *task, in syscall_get_return_value() argument
60 static inline void syscall_set_return_value(struct task_struct *task, in syscall_set_return_value() argument
67 static inline void syscall_get_arguments(struct task_struct *task, in syscall_get_arguments() argument
76 static inline void syscall_set_arguments(struct task_struct *task, in syscall_set_arguments() argument
/arch/x86/include/asm/
Dsyscall.h31 static inline int syscall_get_nr(struct task_struct *task, struct pt_regs *regs) in syscall_get_nr() argument
36 static inline void syscall_rollback(struct task_struct *task, in syscall_rollback() argument
42 static inline long syscall_get_error(struct task_struct *task, in syscall_get_error() argument
51 if (task_thread_info(task)->status & TS_COMPAT) in syscall_get_error()
61 static inline long syscall_get_return_value(struct task_struct *task, in syscall_get_return_value() argument
67 static inline void syscall_set_return_value(struct task_struct *task, in syscall_set_return_value() argument
76 static inline void syscall_get_arguments(struct task_struct *task, in syscall_get_arguments() argument
85 static inline void syscall_set_arguments(struct task_struct *task, in syscall_set_arguments() argument
101 static inline void syscall_get_arguments(struct task_struct *task, in syscall_get_arguments() argument
107 if (task_thread_info(task)->status & TS_COMPAT) in syscall_get_arguments()
[all …]
/arch/mips/include/asm/
Dsyscall.h29 static inline long syscall_get_nr(struct task_struct *task, in syscall_get_nr() argument
36 struct task_struct *task, struct pt_regs *regs, unsigned int n) in mips_get_syscall_arg() argument
70 static inline long syscall_get_return_value(struct task_struct *task, in syscall_get_return_value() argument
76 static inline void syscall_rollback(struct task_struct *task, in syscall_rollback() argument
82 static inline void syscall_set_return_value(struct task_struct *task, in syscall_set_return_value() argument
95 static inline void syscall_get_arguments(struct task_struct *task, in syscall_get_arguments() argument
103 test_tsk_thread_flag(task, TIF_32BIT_REGS)) && in syscall_get_arguments()
108 ret |= mips_get_syscall_arg(args++, task, regs, i++); in syscall_get_arguments()
/arch/arc/include/asm/
Dsyscall.h18 syscall_get_nr(struct task_struct *task, struct pt_regs *regs) in syscall_get_nr() argument
27 syscall_rollback(struct task_struct *task, struct pt_regs *regs) in syscall_rollback() argument
33 syscall_get_error(struct task_struct *task, struct pt_regs *regs) in syscall_get_error() argument
40 syscall_get_return_value(struct task_struct *task, struct pt_regs *regs) in syscall_get_return_value() argument
46 syscall_set_return_value(struct task_struct *task, struct pt_regs *regs, in syscall_set_return_value() argument
57 syscall_get_arguments(struct task_struct *task, struct pt_regs *regs, in syscall_get_arguments() argument
/arch/arm/include/asm/
Dsyscall.h21 static inline int syscall_get_nr(struct task_struct *task, in syscall_get_nr() argument
24 return task_thread_info(task)->syscall; in syscall_get_nr()
27 static inline void syscall_rollback(struct task_struct *task, in syscall_rollback() argument
33 static inline long syscall_get_error(struct task_struct *task, in syscall_get_error() argument
40 static inline long syscall_get_return_value(struct task_struct *task, in syscall_get_return_value() argument
46 static inline void syscall_set_return_value(struct task_struct *task, in syscall_set_return_value() argument
55 static inline void syscall_get_arguments(struct task_struct *task, in syscall_get_arguments() argument
82 static inline void syscall_set_arguments(struct task_struct *task, in syscall_set_arguments() argument
/arch/x86/kernel/
Ddumpstack_32.c41 void dump_trace(struct task_struct *task, struct pt_regs *regs, in dump_trace() argument
49 if (!task) in dump_trace()
50 task = current; in dump_trace()
56 if (task != current) in dump_trace()
57 stack = (unsigned long *)task->thread.sp; in dump_trace()
61 bp = stack_frame(task, regs); in dump_trace()
71 context = task_thread_info(task); in dump_trace()
94 show_stack_log_lvl(struct task_struct *task, struct pt_regs *regs, in show_stack_log_lvl() argument
101 if (task) in show_stack_log_lvl()
102 sp = (unsigned long *)task->thread.sp; in show_stack_log_lvl()
[all …]
Dptrace.c206 static u16 get_segment_reg(struct task_struct *task, unsigned long offset) in get_segment_reg() argument
213 retval = *pt_regs_access(task_pt_regs(task), offset); in get_segment_reg()
215 if (task == current) in get_segment_reg()
216 retval = get_user_gs(task_pt_regs(task)); in get_segment_reg()
218 retval = task_user_gs(task); in get_segment_reg()
223 static int set_segment_reg(struct task_struct *task, in set_segment_reg() argument
248 *pt_regs_access(task_pt_regs(task), offset) = value; in set_segment_reg()
252 if (task == current) in set_segment_reg()
253 set_user_gs(task_pt_regs(task), value); in set_segment_reg()
255 task_user_gs(task) = value; in set_segment_reg()
[all …]
/arch/frv/include/asm/
Dsyscall.h21 static inline long syscall_get_nr(struct task_struct *task, in syscall_get_nr() argument
31 static inline void syscall_rollback(struct task_struct *task, in syscall_rollback() argument
41 static inline long syscall_get_error(struct task_struct *task, in syscall_get_error() argument
50 static inline long syscall_get_return_value(struct task_struct *task, in syscall_get_return_value() argument
59 static inline void syscall_set_return_value(struct task_struct *task, in syscall_set_return_value() argument
72 static inline void syscall_get_arguments(struct task_struct *task, in syscall_get_arguments() argument
102 static inline void syscall_set_arguments(struct task_struct *task, in syscall_set_arguments() argument
/arch/mn10300/include/asm/
Dsyscall.h22 static inline int syscall_get_nr(struct task_struct *task, struct pt_regs *regs) in syscall_get_nr() argument
27 static inline void syscall_rollback(struct task_struct *task, in syscall_rollback() argument
33 static inline long syscall_get_error(struct task_struct *task, in syscall_get_error() argument
40 static inline long syscall_get_return_value(struct task_struct *task, in syscall_get_return_value() argument
46 static inline void syscall_set_return_value(struct task_struct *task, in syscall_set_return_value() argument
53 static inline void syscall_get_arguments(struct task_struct *task, in syscall_get_arguments() argument
85 static inline void syscall_set_arguments(struct task_struct *task, in syscall_set_arguments() argument
/arch/c6x/include/asm/
Dsyscall.h17 static inline int syscall_get_nr(struct task_struct *task, in syscall_get_nr() argument
23 static inline void syscall_rollback(struct task_struct *task, in syscall_rollback() argument
29 static inline long syscall_get_error(struct task_struct *task, in syscall_get_error() argument
35 static inline long syscall_get_return_value(struct task_struct *task, in syscall_get_return_value() argument
41 static inline void syscall_set_return_value(struct task_struct *task, in syscall_set_return_value() argument
48 static inline void syscall_get_arguments(struct task_struct *task, in syscall_get_arguments() argument
85 static inline void syscall_set_arguments(struct task_struct *task, in syscall_set_arguments() argument

12345678910>>...13