Home
last modified time | relevance | path

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

123456789

/arch/powerpc/mm/
Dtlb_nohash.c60 unsigned int pid; in local_flush_tlb_mm() local
63 pid = mm->context.id; in local_flush_tlb_mm()
64 if (pid != MMU_NO_CONTEXT) in local_flush_tlb_mm()
65 _tlbil_pid(pid); in local_flush_tlb_mm()
72 unsigned int pid; in local_flush_tlb_page() local
75 pid = vma ? vma->vm_mm->context.id : 0; in local_flush_tlb_page()
76 if (pid != MMU_NO_CONTEXT) in local_flush_tlb_page()
77 _tlbil_va(vmaddr, pid); in local_flush_tlb_page()
92 unsigned int pid; member
99 _tlbil_pid(p ? p->pid : 0); in do_flush_tlb_mm_ipi()
[all …]
Dmmu_decl.h35 static inline void _tlbil_pid(unsigned int pid) in _tlbil_pid() argument
41 extern void _tlbil_pid(unsigned int pid);
48 static inline void _tlbil_va(unsigned long address, unsigned int pid) in _tlbil_va() argument
53 extern void _tlbil_va(unsigned long address, unsigned int pid);
61 static inline void _tlbivax_bcast(unsigned long address, unsigned int pid) in _tlbivax_bcast() argument
92 unsigned int size, int flags, unsigned int pid);
/arch/um/os-Linux/sys-i386/
Dregisters.c15 int save_fp_registers(int pid, unsigned long *fp_regs) in save_fp_registers() argument
17 if (ptrace(PTRACE_GETFPREGS, pid, 0, fp_regs) < 0) in save_fp_registers()
22 int restore_fp_registers(int pid, unsigned long *fp_regs) in restore_fp_registers() argument
24 if (ptrace(PTRACE_SETFPREGS, pid, 0, fp_regs) < 0) in restore_fp_registers()
29 int save_fpx_registers(int pid, unsigned long *fp_regs) in save_fpx_registers() argument
31 if (ptrace(PTRACE_GETFPXREGS, pid, 0, fp_regs) < 0) in save_fpx_registers()
36 int restore_fpx_registers(int pid, unsigned long *fp_regs) in restore_fpx_registers() argument
38 if (ptrace(PTRACE_SETFPXREGS, pid, 0, fp_regs) < 0) in restore_fpx_registers()
61 int get_fp_registers(int pid, unsigned long *regs) in get_fp_registers() argument
64 return save_fpx_registers(pid, regs); in get_fp_registers()
[all …]
/arch/um/os-Linux/
Dstart_up.c33 int pid = os_getpid(), ppid = getppid(); in ptrace_child() local
39 kill(pid, SIGKILL); in ptrace_child()
41 kill(pid, SIGSTOP); in ptrace_child()
49 if (sc_result == pid) in ptrace_child()
96 int pid, n, status; in start_ptraced_child() local
98 pid = fork(); in start_ptraced_child()
99 if (pid == 0) in start_ptraced_child()
101 else if (pid < 0) in start_ptraced_child()
104 CATCH_EINTR(n = waitpid(pid, &status, WUNTRACED)); in start_ptraced_child()
111 return pid; in start_ptraced_child()
[all …]
Dhelper.c49 int pid, fds[2], ret, n; in run_helper() local
77 pid = clone(helper_child, (void *) sp, CLONE_VM, &data); in run_helper()
78 if (pid < 0) { in run_helper()
94 ret = pid; in run_helper()
102 CATCH_EINTR(waitpid(pid, NULL, __WCLONE)); in run_helper()
120 int pid, status, err; in run_helper_thread() local
127 pid = clone(proc, (void *) sp, flags, arg); in run_helper_thread()
128 if (pid < 0) { in run_helper_thread()
135 CATCH_EINTR(pid = waitpid(pid, &status, __WCLONE)); in run_helper_thread()
136 if (pid < 0) { in run_helper_thread()
[all …]
Dregisters.c12 int save_registers(int pid, struct uml_pt_regs *regs) in save_registers() argument
16 err = ptrace(PTRACE_GETREGS, pid, 0, regs->gp); in save_registers()
22 int restore_registers(int pid, struct uml_pt_regs *regs) in restore_registers() argument
26 err = ptrace(PTRACE_SETREGS, pid, 0, regs->gp); in restore_registers()
36 int init_registers(int pid) in init_registers() argument
40 err = ptrace(PTRACE_GETREGS, pid, 0, exec_regs); in init_registers()
44 arch_init_registers(pid); in init_registers()
Dprocess.c29 unsigned long os_process_pc(int pid) in os_process_pc() argument
35 sprintf(proc_stat, "/proc/%d/stat", pid); in os_process_pc()
61 int os_process_parent(int pid) in os_process_parent() argument
67 if (pid == -1) in os_process_parent()
70 snprintf(stat, sizeof(stat), "/proc/%d/stat", pid); in os_process_parent()
95 void os_stop_process(int pid) in os_stop_process() argument
97 kill(pid, SIGSTOP); in os_stop_process()
100 void os_kill_process(int pid, int reap_child) in os_kill_process() argument
102 kill(pid, SIGKILL); in os_kill_process()
104 CATCH_EINTR(waitpid(pid, NULL, __WALL)); in os_kill_process()
[all …]
Dtls.c15 int os_set_thread_area(user_desc_t *info, int pid) in os_set_thread_area() argument
19 ret = ptrace(PTRACE_SET_THREAD_AREA, pid, info->entry_number, in os_set_thread_area()
26 int os_get_thread_area(user_desc_t *info, int pid) in os_get_thread_area() argument
30 ret = ptrace(PTRACE_GET_THREAD_AREA, pid, info->entry_number, in os_get_thread_area()
/arch/um/include/shared/
Dregisters.h12 extern int save_fp_registers(int pid, unsigned long *fp_regs);
13 extern int restore_fp_registers(int pid, unsigned long *fp_regs);
14 extern int save_fpx_registers(int pid, unsigned long *fp_regs);
15 extern int restore_fpx_registers(int pid, unsigned long *fp_regs);
16 extern int save_registers(int pid, struct uml_pt_regs *regs);
17 extern int restore_registers(int pid, struct uml_pt_regs *regs);
18 extern int init_registers(int pid);
21 extern int get_fp_registers(int pid, unsigned long *regs);
22 extern int put_fp_registers(int pid, unsigned long *regs);
/arch/um/os-Linux/skas/
Dprocess.c30 int is_skas_winch(int pid, int fd, void *data) in is_skas_winch() argument
32 if (pid != getpgrp()) in is_skas_winch()
39 static int ptrace_dump_regs(int pid) in ptrace_dump_regs() argument
44 if (ptrace(PTRACE_GETREGS, pid, 0, regs) < 0) in ptrace_dump_regs()
63 void wait_stub_done(int pid) in wait_stub_done() argument
68 CATCH_EINTR(n = waitpid(pid, &status, WUNTRACED | __WALL)); in wait_stub_done()
75 err = ptrace(PTRACE_CONT, pid, 0, 0); in wait_stub_done()
87 err = ptrace_dump_regs(pid); in wait_stub_done()
92 "pid = %d, n = %d, errno = %d, status = 0x%x\n", pid, n, errno, in wait_stub_done()
99 static void get_skas_faultinfo(int pid, struct faultinfo *fi) in get_skas_faultinfo() argument
[all …]
/arch/um/os-Linux/sys-x86_64/
Dregisters.c14 int save_fp_registers(int pid, unsigned long *fp_regs) in save_fp_registers() argument
16 if (ptrace(PTRACE_GETFPREGS, pid, 0, fp_regs) < 0) in save_fp_registers()
21 int restore_fp_registers(int pid, unsigned long *fp_regs) in restore_fp_registers() argument
23 if (ptrace(PTRACE_SETFPREGS, pid, 0, fp_regs) < 0) in restore_fp_registers()
44 int get_fp_registers(int pid, unsigned long *regs) in get_fp_registers() argument
46 return save_fp_registers(pid, regs); in get_fp_registers()
49 int put_fp_registers(int pid, unsigned long *regs) in put_fp_registers() argument
51 return restore_fp_registers(pid, regs); in put_fp_registers()
/arch/um/drivers/
Dslirp_user.c42 int pid; in slirp_tramp() local
46 pid = run_helper(slirp_pre_exec, &pe_data, argv); in slirp_tramp()
48 return pid; in slirp_tramp()
54 int fds[2], pid, err; in slirp_open() local
65 pid = err; in slirp_open()
70 pri->pid = err; in slirp_open()
89 if (pri->pid<1) { in slirp_close()
96 if (kill(pri->pid, SIGHUP)<0) { in slirp_close()
98 "(%d)\n", pri->pid, errno); in slirp_close()
101 err = helper_wait(pri->pid); in slirp_close()
[all …]
Dxterm.c21 int pid; member
36 *data = ((struct xterm_chan) { .pid = -1, in xterm_init()
90 int pid, fd, new, err; in xterm_open() local
138 pid = run_helper(NULL, NULL, argv); in xterm_open()
139 if (pid < 0) { in xterm_open()
140 err = pid; in xterm_open()
183 data->pid = pid; in xterm_open()
191 os_kill_process(pid, 1); in xterm_open()
202 if (data->pid != -1) in xterm_close()
203 os_kill_process(data->pid, 1); in xterm_close()
[all …]
Dubd_user.c34 int pid, fds[2], err; in start_io_thread() local
51 pid = clone(io_thread, (void *) sp, CLONE_FILES | CLONE_VM, NULL); in start_io_thread()
52 if(pid < 0){ in start_io_thread()
58 return(pid); in start_io_thread()
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()
/arch/sh/lib64/
Ddbg.c149 int pid; member
158 int pid; member
173 int pid; in evt_debug() local
176 pid = current->pid; in evt_debug()
184 rr->pid = pid; in evt_debug()
194 rr->evt, rr->event, rr->tra, rr->pid, rr->sp, rr->pc); in evt_debug()
212 stored_syscalls[syscall_next].pid = current->pid; in evt_debug()
223 stored_syscalls[syscall_next_print].pid, in drain_syscalls()
233 printk("Task %d: syscall returns %08x\n", current->pid, ret); in evt_debug2()
238 int pid; in evt_debug_ret_from_irq() local
[all …]
/arch/cris/arch-v32/kernel/
Dptrace.c30 static int put_debugreg(long pid, unsigned int regno, long data);
31 static long get_debugreg(long pid, unsigned int regno);
33 void deconfigure_bp(long pid);
54 ret = get_debugreg(task->pid, regno); in get_reg()
75 return put_debugreg(task->pid, regno, data); in put_reg()
97 deconfigure_bp(child->pid); in ptrace_disable()
182 if (!get_debugreg(child->pid, PT_BP_CTRL)) { in arch_ptrace()
389 void deconfigure_bp(long pid) in deconfigure_bp() argument
394 if (bp_owner != pid) in deconfigure_bp()
400 put_debugreg(pid, PT_BP + 3 + (bp * 2), 0); in deconfigure_bp()
[all …]
/arch/um/sys-i386/
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()
/arch/um/sys-x86_64/
Dptrace_user.c10 int ptrace_getregs(long pid, unsigned long *regs_out) in ptrace_getregs() argument
12 if (ptrace(PTRACE_GETREGS, pid, 0, regs_out) < 0) in ptrace_getregs()
17 int ptrace_setregs(long pid, unsigned long *regs_out) in ptrace_setregs() argument
19 if (ptrace(PTRACE_SETREGS, pid, 0, regs_out) < 0) in ptrace_setregs()
Dsyscalls.c33 int pid = task->mm->context.id.u.pid; in arch_prctl() local
51 ret = restore_registers(pid, &current->thread.regs.regs); in arch_prctl()
68 ret = os_arch_prctl(pid, code, ptr); in arch_prctl()
75 ret = save_registers(pid, &current->thread.regs.regs); in arch_prctl()
78 ret = save_registers(pid, &current->thread.regs.regs); in arch_prctl()
/arch/sh/mm/
Dasids-debugfs.c34 int pid = p->pid; in asids_seq_show() local
36 if (unlikely(!pid)) in asids_seq_show()
40 seq_printf(file, "%5d : %02lx\n", pid, in asids_seq_show()
43 seq_printf(file, "%5d : (none)\n", pid); in asids_seq_show()
/arch/um/kernel/
Dreboot.c22 int pid, me; in kill_off_processes() local
29 pid = p->mm->context.id.u.pid; in kill_off_processes()
30 os_kill_ptraced_process(pid, 1); in kill_off_processes()
/arch/um/sys-ppc/
Dptrace_user.c5 int ptrace_getregs(long pid, unsigned long *regs_out) in ptrace_getregs() argument
10 regs_out->regs[i] = ptrace(PTRACE_PEEKUSR, pid, i*4, 0); in ptrace_getregs()
18 int ptrace_setregs(long pid, unsigned long *regs_in) in ptrace_setregs() argument
23 if (ptrace(PTRACE_POKEUSR, pid, i*4, regs_in->regs[i]) < 0) { in ptrace_setregs()
/arch/mips/kernel/
Dmips-mt-fpaff.c37 static inline struct task_struct *find_process_by_pid(pid_t pid) in find_process_by_pid() argument
39 return pid ? find_task_by_vpid(pid) : current; in find_process_by_pid()
46 asmlinkage long mipsmt_sys_sched_setaffinity(pid_t pid, unsigned int len, in mipsmt_sys_sched_setaffinity() argument
65 p = find_process_by_pid(pid); in mipsmt_sys_sched_setaffinity()
118 asmlinkage long mipsmt_sys_sched_getaffinity(pid_t pid, unsigned int len, in mipsmt_sys_sched_getaffinity() argument
134 p = find_process_by_pid(pid); in mipsmt_sys_sched_getaffinity()
/arch/powerpc/kernel/
Dsys_ppc32.c231 asmlinkage long compat_sys_sched_rr_get_interval(u32 pid, struct compat_timespec __user *interval) in compat_sys_sched_rr_get_interval() argument
239 ret = sys_sched_rr_get_interval((int)pid, (struct timespec __user *) &t); in compat_sys_sched_rr_get_interval()
273 asmlinkage long compat_sys_waitpid(u32 pid, unsigned int __user * stat_addr, u32 options) in compat_sys_waitpid() argument
275 return sys_waitpid((int)pid, stat_addr, (int)options); in compat_sys_waitpid()
295 asmlinkage long compat_sys_getpgid(u32 pid) in compat_sys_getpgid() argument
297 return sys_getpgid((int)pid); in compat_sys_getpgid()
307 asmlinkage long compat_sys_getsid(u32 pid) in compat_sys_getsid() argument
309 return sys_getsid((int)pid); in compat_sys_getsid()
318 asmlinkage long compat_sys_kill(u32 pid, u32 sig) in compat_sys_kill() argument
320 return sys_kill((int)pid, (int)sig); in compat_sys_kill()
[all …]

123456789