Home
last modified time | relevance | path

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

12345678910>>...14

/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/x86/include/asm/
Dstacktrace.h27 bool in_task_stack(unsigned long *stack, struct task_struct *task,
30 int get_stack_info(unsigned long *stack, struct task_struct *task,
56 get_frame_pointer(struct task_struct *task, struct pt_regs *regs) in get_frame_pointer() argument
61 if (task == current) in get_frame_pointer()
64 return (unsigned long *)((struct inactive_task_frame *)task->thread.sp)->bp; in get_frame_pointer()
68 get_frame_pointer(struct task_struct *task, struct pt_regs *regs) in get_frame_pointer() argument
75 get_stack_pointer(struct task_struct *task, struct pt_regs *regs) in get_stack_pointer() argument
80 if (task == current) in get_stack_pointer()
83 return (unsigned long *)task->thread.sp; in get_stack_pointer()
86 void show_trace_log_lvl(struct task_struct *task, struct pt_regs *regs,
[all …]
Dsyscall.h43 static inline int syscall_get_nr(struct task_struct *task, struct pt_regs *regs) in syscall_get_nr() argument
48 static inline void syscall_rollback(struct task_struct *task, in syscall_rollback() argument
54 static inline long syscall_get_error(struct task_struct *task, in syscall_get_error() argument
63 if (task->thread_info.status & (TS_COMPAT|TS_I386_REGS_POKED)) in syscall_get_error()
73 static inline long syscall_get_return_value(struct task_struct *task, in syscall_get_return_value() argument
79 static inline void syscall_set_return_value(struct task_struct *task, in syscall_set_return_value() argument
88 static inline void syscall_get_arguments(struct task_struct *task, in syscall_get_arguments() argument
97 static inline void syscall_set_arguments(struct task_struct *task, in syscall_set_arguments() argument
113 static inline void syscall_get_arguments(struct task_struct *task, in syscall_get_arguments() argument
119 if (task->thread_info.status & TS_COMPAT) in syscall_get_arguments()
[all …]
/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_ckfpr_from_user(struct task_struct *task,
36 struct task_struct *task);
38 struct task_struct *task);
39 extern unsigned long copy_vsx_from_user(struct task_struct *task,
41 extern unsigned long copy_ckvsx_from_user(struct task_struct *task,
/arch/tile/include/asm/
Dprocessor.h227 #define task_ksp0(task) \ argument
228 ((unsigned long)(task)->stack + THREAD_SIZE - STACK_TOP_DELTA)
231 #define task_pt_regs(task) \ argument
232 ((struct pt_regs *)(task_ksp0(task) - KSTK_PTREGS_GAP) - 1)
236 #define task_sp(task) (task_pt_regs(task)->sp) argument
237 #define task_pc(task) (task_pt_regs(task)->pc) argument
239 #define KSTK_EIP(task) task_pc(task) argument
240 #define KSTK_ESP(task) task_sp(task) argument
354 #define next_current_ksp0(task) ({ \ argument
355 unsigned long __ksp0 = task_ksp0(task) & ((1UL << CPU_SHIFT) - 1); \
[all …]
/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/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/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/s390/kernel/
Ddumpstack.c69 void dump_trace(dump_trace_func_t func, void *data, struct task_struct *task, in dump_trace() argument
83 task = task ?: current; in dump_trace()
85 (unsigned long)task_stack_page(task), in dump_trace()
86 (unsigned long)task_stack_page(task) + THREAD_SIZE); in dump_trace()
99 static void show_trace(struct task_struct *task, unsigned long sp) in show_trace() argument
102 sp = task ? task->thread.ksp : current_stack_pointer(); in show_trace()
104 dump_trace(show_address, NULL, task, sp); in show_trace()
105 if (!task) in show_trace()
106 task = current; in show_trace()
107 debug_show_held_locks(task); in show_trace()
[all …]
/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/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/parisc/kernel/
Dptrace.c51 void ptrace_disable(struct task_struct *task) in ptrace_disable() argument
53 clear_tsk_thread_flag(task, TIF_SINGLESTEP); in ptrace_disable()
54 clear_tsk_thread_flag(task, TIF_BLOCKSTEP); in ptrace_disable()
57 pa_psw(task)->r = 0; in ptrace_disable()
58 pa_psw(task)->t = 0; in ptrace_disable()
59 pa_psw(task)->h = 0; in ptrace_disable()
60 pa_psw(task)->l = 0; in ptrace_disable()
67 void user_disable_single_step(struct task_struct *task) in user_disable_single_step() argument
69 ptrace_disable(task); in user_disable_single_step()
72 void user_enable_single_step(struct task_struct *task) in user_enable_single_step() argument
[all …]
/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/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/x86/kernel/
Dunwind_frame.c17 addr = ftrace_graph_ret_addr(state->task, &state->graph_idx, *addr_p, in unwind_get_return_address()
37 if (get_stack_info(info->next_sp, state->task, info, in update_stack_state()
63 void __unwind_start(struct unwind_state *state, struct task_struct *task, in __unwind_start() argument
67 state->task = task; in __unwind_start()
76 state->bp = get_frame_pointer(task, regs); in __unwind_start()
79 get_stack_info(state->bp, state->task, &state->stack_info, in __unwind_start()
/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
/arch/powerpc/include/asm/
Dsyscall.h25 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_return_value(struct task_struct *task, in syscall_get_return_value() argument
48 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
77 if (test_tsk_thread_flag(task, TIF_32BIT)) in syscall_get_arguments()
90 static inline void syscall_set_arguments(struct task_struct *task, in syscall_set_arguments() argument

12345678910>>...14