Home
last modified time | relevance | path

Searched refs:pid (Results 1 – 25 of 197) sorted by relevance

12345678

/arch/x86/um/os-Linux/
Dregisters.c21 int save_i387_registers(int pid, unsigned long *fp_regs) in save_i387_registers() argument
23 if (ptrace(PTRACE_GETFPREGS, pid, 0, fp_regs) < 0) in save_i387_registers()
28 int save_fp_registers(int pid, unsigned long *fp_regs) in save_fp_registers() argument
36 if (ptrace(PTRACE_GETREGSET, pid, NT_X86_XSTATE, &iov) < 0) in save_fp_registers()
41 return save_i387_registers(pid, fp_regs); in save_fp_registers()
44 int restore_i387_registers(int pid, unsigned long *fp_regs) in restore_i387_registers() argument
46 if (ptrace(PTRACE_SETFPREGS, pid, 0, fp_regs) < 0) in restore_i387_registers()
51 int restore_fp_registers(int pid, unsigned long *fp_regs) in restore_fp_registers() argument
58 if (ptrace(PTRACE_SETREGSET, pid, NT_X86_XSTATE, &iov) < 0) in restore_fp_registers()
63 return restore_i387_registers(pid, fp_regs); in restore_fp_registers()
[all …]
Dtls.c48 int os_set_thread_area(user_desc_t *info, int pid) in os_set_thread_area() argument
52 ret = ptrace(PTRACE_SET_THREAD_AREA, pid, info->entry_number, in os_set_thread_area()
59 int os_get_thread_area(user_desc_t *info, int pid) in os_get_thread_area() argument
63 ret = ptrace(PTRACE_GET_THREAD_AREA, pid, info->entry_number, in os_get_thread_area()
/arch/powerpc/mm/book3s64/
Dradix_tlb.c29 unsigned int pid, in tlbiel_radix_set_isa300() argument
36 rs = ((unsigned long)pid << PPC_BITLSHIFT(31)); in tlbiel_radix_set_isa300()
100 static __always_inline void __tlbiel_pid(unsigned long pid, int set, in __tlbiel_pid() argument
107 rs = ((unsigned long)pid) << PPC_BITLSHIFT(31); in __tlbiel_pid()
116 static __always_inline void __tlbie_pid(unsigned long pid, unsigned long ric) in __tlbie_pid() argument
121 rs = pid << PPC_BITLSHIFT(31); in __tlbie_pid()
158 static __always_inline void __tlbiel_va(unsigned long va, unsigned long pid, in __tlbiel_va() argument
165 rs = pid << PPC_BITLSHIFT(31); in __tlbiel_va()
174 static __always_inline void __tlbie_va(unsigned long va, unsigned long pid, in __tlbie_va() argument
181 rs = pid << PPC_BITLSHIFT(31); in __tlbie_va()
[all …]
/arch/um/os-Linux/
Dstart_up.c32 int pid = os_getpid(), ppid = getppid(); in ptrace_child() local
38 kill(pid, SIGKILL); in ptrace_child()
40 kill(pid, SIGSTOP); in ptrace_child()
48 if (sc_result == pid) in ptrace_child()
95 int pid, n, status; in start_ptraced_child() local
99 pid = fork(); in start_ptraced_child()
100 if (pid == 0) in start_ptraced_child()
102 else if (pid < 0) in start_ptraced_child()
105 CATCH_EINTR(n = waitpid(pid, &status, WUNTRACED)); in start_ptraced_child()
112 return pid; in start_ptraced_child()
[all …]
Dhelper.c46 int pid, fds[2], ret, n; in run_helper() local
74 pid = clone(helper_child, (void *) sp, CLONE_VM, &data); in run_helper()
75 if (pid < 0) { in run_helper()
91 ret = pid; in run_helper()
99 CATCH_EINTR(waitpid(pid, NULL, __WALL)); in run_helper()
117 int pid, status, err; in run_helper_thread() local
124 pid = clone(proc, (void *) sp, flags, arg); in run_helper_thread()
125 if (pid < 0) { in run_helper_thread()
132 CATCH_EINTR(pid = waitpid(pid, &status, __WALL)); in run_helper_thread()
133 if (pid < 0) { in run_helper_thread()
[all …]
Dregisters.c14 int save_registers(int pid, struct uml_pt_regs *regs) in save_registers() argument
18 err = ptrace(PTRACE_GETREGS, pid, 0, regs->gp); in save_registers()
24 int restore_pid_registers(int pid, struct uml_pt_regs *regs) in restore_pid_registers() argument
28 err = ptrace(PTRACE_SETREGS, pid, 0, regs->gp); in restore_pid_registers()
39 int init_pid_registers(int pid) in init_pid_registers() argument
43 err = ptrace(PTRACE_GETREGS, pid, 0, exec_regs); in init_pid_registers()
47 arch_init_registers(pid); in init_pid_registers()
48 get_fp_registers(pid, exec_fp_regs); in init_pid_registers()
Dprocess.c27 unsigned long os_process_pc(int pid) in os_process_pc() argument
33 sprintf(proc_stat, "/proc/%d/stat", pid); in os_process_pc()
59 int os_process_parent(int pid) in os_process_parent() argument
65 if (pid == -1) in os_process_parent()
68 snprintf(stat, sizeof(stat), "/proc/%d/stat", pid); in os_process_parent()
93 void os_alarm_process(int pid) in os_alarm_process() argument
95 kill(pid, SIGALRM); in os_alarm_process()
98 void os_stop_process(int pid) in os_stop_process() argument
100 kill(pid, SIGSTOP); in os_stop_process()
103 void os_kill_process(int pid, int reap_child) in os_kill_process() argument
[all …]
/arch/um/include/shared/
Dregisters.h12 extern int save_i387_registers(int pid, unsigned long *fp_regs);
13 extern int restore_i387_registers(int pid, unsigned long *fp_regs);
14 extern int save_fp_registers(int pid, unsigned long *fp_regs);
15 extern int restore_fp_registers(int pid, unsigned long *fp_regs);
16 extern int save_fpx_registers(int pid, unsigned long *fp_regs);
17 extern int restore_fpx_registers(int pid, unsigned long *fp_regs);
18 extern int save_registers(int pid, struct uml_pt_regs *regs);
19 extern int restore_pid_registers(int pid, struct uml_pt_regs *regs);
20 extern int init_pid_registers(int pid);
23 extern int get_fp_registers(int pid, unsigned long *regs);
[all …]
/arch/um/os-Linux/skas/
Dprocess.c27 int is_skas_winch(int pid, int fd, void *data) in is_skas_winch() argument
29 return pid == getpgrp(); in is_skas_winch()
80 static int ptrace_dump_regs(int pid) in ptrace_dump_regs() argument
85 if (ptrace(PTRACE_GETREGS, pid, 0, regs) < 0) in ptrace_dump_regs()
107 void wait_stub_done(int pid) in wait_stub_done() argument
112 CATCH_EINTR(n = waitpid(pid, &status, WUNTRACED | __WALL)); in wait_stub_done()
119 err = ptrace(PTRACE_CONT, pid, 0, 0); in wait_stub_done()
131 err = ptrace_dump_regs(pid); in wait_stub_done()
136 "pid = %d, n = %d, errno = %d, status = 0x%x\n", pid, n, errno, in wait_stub_done()
143 static void get_skas_faultinfo(int pid, struct faultinfo *fi, unsigned long *aux_fp_regs) in get_skas_faultinfo() argument
[all …]
/arch/powerpc/mm/
Dmmu_decl.h31 static inline void _tlbil_pid(unsigned int pid) in _tlbil_pid() argument
34 trace_tlbia(pid); in _tlbil_pid()
36 #define _tlbil_pid_noind(pid) _tlbil_pid(pid) argument
40 extern void _tlbil_pid(unsigned int pid);
42 extern void _tlbil_pid_noind(unsigned int pid);
44 #define _tlbil_pid_noind(pid) _tlbil_pid(pid) argument
52 static inline void _tlbil_va(unsigned long address, unsigned int pid, in _tlbil_va() argument
56 trace_tlbie(0, 0, address, pid, 0, 0, 0); in _tlbil_va()
59 extern void _tlbil_va(unsigned long address, unsigned int pid,
62 extern void __tlbil_va(unsigned long address, unsigned int pid);
[all …]
/arch/um/drivers/
Dslirp_user.c40 int pid; in slirp_tramp() local
44 pid = run_helper(slirp_pre_exec, &pe_data, argv); in slirp_tramp()
46 return pid; in slirp_tramp()
52 int fds[2], pid, err; in slirp_open() local
63 pid = err; in slirp_open()
68 pri->pid = err; in slirp_open()
87 if (pri->pid<1) { in slirp_close()
94 if (kill(pri->pid, SIGHUP)<0) { in slirp_close()
96 "(%d)\n", pri->pid, errno); in slirp_close()
99 err = helper_wait(pri->pid); in slirp_close()
[all …]
Dxterm.c19 int pid; member
35 *data = ((struct xterm_chan) { .pid = -1, in xterm_init()
90 int pid, fd, new, err; in xterm_open() local
139 pid = run_helper(NULL, NULL, argv); in xterm_open()
140 if (pid < 0) { in xterm_open()
141 err = pid; in xterm_open()
185 data->pid = pid; in xterm_open()
193 os_kill_process(pid, 1); in xterm_open()
204 if (data->pid != -1) in xterm_close()
205 os_kill_process(data->pid, 1); in xterm_close()
[all …]
Dharddog_user.c34 int in_fds[2], out_fds[2], pid, n, err; in start_watchdog() local
68 pid = run_helper(pre_exec, &data, args); in start_watchdog()
73 if (pid < 0) { in start_watchdog()
74 err = -pid; in start_watchdog()
82 helper_wait(pid); in start_watchdog()
89 helper_wait(pid); in start_watchdog()
Dubd_user.c30 int pid, fds[2], err; in start_io_thread() local
50 pid = clone(io_thread, (void *) sp, CLONE_FILES | CLONE_VM, NULL); in start_io_thread()
51 if(pid < 0){ in start_io_thread()
57 return(pid); in start_io_thread()
/arch/powerpc/platforms/powernv/
Dvas-trace.h24 __field(int, pid)
34 __entry->pid = tsk->pid;
43 __entry->pid, __entry->vasid, __entry->cop,
59 __field(int, pid)
68 __entry->pid = tsk->pid;
76 __entry->pid, __entry->vasid, __entry->cop,
90 __field(int, pid)
97 __entry->pid = tsk->pid;
104 __entry->pid, __entry->vasid, __entry->winid,
/arch/um/kernel/skas/
Dmmu.c34 to_mm->id.u.pid = copy_context_skas0(stack, in init_new_context()
35 from_mm->id.u.pid); in init_new_context()
36 else to_mm->id.u.pid = start_userspace(stack); in init_new_context()
39 if (to_mm->id.u.pid < 0) { in init_new_context()
40 ret = to_mm->id.u.pid; in init_new_context()
70 if (mmu->id.u.pid < 2) { in destroy_context()
72 mmu->id.u.pid); in destroy_context()
75 os_kill_ptraced_process(mmu->id.u.pid, 1); in destroy_context()
Dprocess.c20 int pid; in start_kernel_proc() local
23 pid = os_getpid(); in start_kernel_proc()
25 cpu_tasks[0].pid = pid; in start_kernel_proc()
/arch/x86/um/
Dptrace_user.c9 int ptrace_getregs(long pid, unsigned long *regs_out) in ptrace_getregs() argument
11 if (ptrace(PTRACE_GETREGS, pid, 0, regs_out) < 0) in ptrace_getregs()
16 int ptrace_setregs(long pid, unsigned long *regs) in ptrace_setregs() argument
18 if (ptrace(PTRACE_SETREGS, pid, 0, regs) < 0) in ptrace_setregs()
Dsyscalls_64.c21 int pid = task->mm->context.id.u.pid; in arch_prctl() local
39 ret = restore_pid_registers(pid, &current->thread.regs.regs); in arch_prctl()
56 ret = os_arch_prctl(pid, option, ptr); in arch_prctl()
63 ret = save_registers(pid, &current->thread.regs.regs); in arch_prctl()
66 ret = save_registers(pid, &current->thread.regs.regs); in arch_prctl()
/arch/powerpc/mm/nohash/
Dtlb.c193 unsigned int pid; in local_flush_tlb_mm() local
196 pid = mm->context.id; in local_flush_tlb_mm()
197 if (pid != MMU_NO_CONTEXT) in local_flush_tlb_mm()
198 _tlbil_pid(pid); in local_flush_tlb_mm()
206 unsigned int pid; in __local_flush_tlb_page() local
209 pid = mm ? mm->context.id : 0; in __local_flush_tlb_page()
210 if (pid != MMU_NO_CONTEXT) in __local_flush_tlb_page()
211 _tlbil_va(vmaddr, pid, tsize, ind); in __local_flush_tlb_page()
231 unsigned int pid; member
240 _tlbil_pid(p ? p->pid : 0); in do_flush_tlb_mm_ipi()
[all …]
/arch/powerpc/platforms/book3s/
Dvas-api.c74 task_ref->pid = get_task_pid(current, PIDTYPE_PID); in get_vas_user_win_ref()
80 put_pid(task_ref->pid); in get_vas_user_win_ref()
82 current->pid); in get_vas_user_win_ref()
105 struct task_struct **tskp, struct pid **pidp) in ref_get_pid_and_task()
108 struct pid *pid; in ref_get_pid_and_task() local
110 pid = task_ref->pid; in ref_get_pid_and_task()
111 tsk = get_pid_task(pid, PIDTYPE_PID); in ref_get_pid_and_task()
113 pid = task_ref->tgid; in ref_get_pid_and_task()
114 tsk = get_pid_task(pid, PIDTYPE_PID); in ref_get_pid_and_task()
130 *pidp = pid; in ref_get_pid_and_task()
[all …]
/arch/sh/mm/
Dasids-debugfs.c36 int pid = p->pid; in asids_debugfs_show() local
38 if (unlikely(!pid)) in asids_debugfs_show()
42 seq_printf(file, "%5d : %04lx\n", pid, in asids_debugfs_show()
/arch/um/kernel/
Dreboot.c22 int pid; in kill_off_processes() local
31 pid = t->mm->context.id.u.pid; in kill_off_processes()
33 os_kill_ptraced_process(pid, 1); in kill_off_processes()
/arch/nios2/mm/
Dtlb.c25 static void get_misc_and_pid(unsigned long *misc, unsigned long *pid) in get_misc_and_pid() argument
29 *pid = *misc & TLBMISC_PID; in get_misc_and_pid()
58 unsigned long pid; in replace_tlb_one_pid() local
68 pid = (tlbmisc >> TLBMISC_PID_SHIFT) & TLBMISC_PID_MASK; in replace_tlb_one_pid()
69 if (pid != mmu_pid) in replace_tlb_one_pid()
231 unsigned long pid; in flush_tlb_pid() local
236 pid = (tlbmisc >> TLBMISC_PID_SHIFT) & TLBMISC_PID_MASK; in flush_tlb_pid()
237 if (pid != mmu_pid) in flush_tlb_pid()
292 void set_mmu_pid(unsigned long pid) in set_mmu_pid() argument
298 tlbmisc |= (pid & TLBMISC_PID_MASK) << TLBMISC_PID_SHIFT; in set_mmu_pid()
/arch/mips/kernel/
Dmips-mt-fpaff.c41 static inline struct task_struct *find_process_by_pid(pid_t pid) in find_process_by_pid() argument
43 return pid ? find_task_by_vpid(pid) : current; in find_process_by_pid()
65 asmlinkage long mipsmt_sys_sched_setaffinity(pid_t pid, unsigned int len, in mipsmt_sys_sched_setaffinity() argument
82 p = find_process_by_pid(pid); in mipsmt_sys_sched_setaffinity()
157 asmlinkage long mipsmt_sys_sched_getaffinity(pid_t pid, unsigned int len, in mipsmt_sys_sched_getaffinity() argument
173 p = find_process_by_pid(pid); in mipsmt_sys_sched_getaffinity()

12345678