Home
last modified time | relevance | path

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

123456789

/arch/x86/um/os-Linux/
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()
31 int save_fpx_registers(int pid, unsigned long *fp_regs) in save_fpx_registers() argument
33 if (ptrace(PTRACE_GETFPXREGS, pid, 0, fp_regs) < 0) in save_fpx_registers()
38 int restore_fpx_registers(int pid, unsigned long *fp_regs) in restore_fpx_registers() argument
40 if (ptrace(PTRACE_SETFPXREGS, pid, 0, fp_regs) < 0) in restore_fpx_registers()
45 int get_fp_registers(int pid, unsigned long *regs) in get_fp_registers() argument
48 return save_fpx_registers(pid, regs); in get_fp_registers()
[all …]
Dtls.c47 int os_set_thread_area(user_desc_t *info, int pid) in os_set_thread_area() argument
51 ret = ptrace(PTRACE_SET_THREAD_AREA, pid, info->entry_number, in os_set_thread_area()
58 int os_get_thread_area(user_desc_t *info, int pid) in os_get_thread_area() argument
62 ret = ptrace(PTRACE_GET_THREAD_AREA, pid, info->entry_number, in os_get_thread_area()
/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 …]
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_registers(int pid, struct uml_pt_regs *regs) in restore_registers() argument
28 err = ptrace(PTRACE_SETREGS, pid, 0, regs->gp); in restore_registers()
39 int init_registers(int pid) in init_registers() argument
43 err = ptrace(PTRACE_GETREGS, pid, 0, exec_regs); in init_registers()
47 arch_init_registers(pid); in init_registers()
48 get_fp_registers(pid, exec_fp_regs); in init_registers()
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, __WCLONE)); 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, __WCLONE)); in run_helper_thread()
133 if (pid < 0) { in run_helper_thread()
[all …]
Dprocess.c26 unsigned long os_process_pc(int pid) in os_process_pc() argument
32 sprintf(proc_stat, "/proc/%d/stat", pid); in os_process_pc()
58 int os_process_parent(int pid) in os_process_parent() argument
64 if (pid == -1) in os_process_parent()
67 snprintf(stat, sizeof(stat), "/proc/%d/stat", pid); in os_process_parent()
92 void os_stop_process(int pid) in os_stop_process() argument
94 kill(pid, SIGSTOP); in os_stop_process()
97 void os_kill_process(int pid, int reap_child) in os_kill_process() argument
99 kill(pid, SIGKILL); in os_kill_process()
101 CATCH_EINTR(waitpid(pid, NULL, __WALL)); in os_kill_process()
[all …]
/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.c26 int is_skas_winch(int pid, int fd, void *data) in is_skas_winch() argument
28 return pid == getpgrp(); in is_skas_winch()
31 static int ptrace_dump_regs(int pid) in ptrace_dump_regs() argument
36 if (ptrace(PTRACE_GETREGS, pid, 0, regs) < 0) in ptrace_dump_regs()
55 void wait_stub_done(int pid) in wait_stub_done() argument
60 CATCH_EINTR(n = waitpid(pid, &status, WUNTRACED | __WALL)); in wait_stub_done()
67 err = ptrace(PTRACE_CONT, pid, 0, 0); in wait_stub_done()
79 err = ptrace_dump_regs(pid); in wait_stub_done()
84 "pid = %d, n = %d, errno = %d, status = 0x%x\n", pid, n, errno, in wait_stub_done()
91 static void get_skas_faultinfo(int pid, struct faultinfo *fi) in get_skas_faultinfo() argument
[all …]
/arch/powerpc/mm/
Dmmu_decl.h35 static inline void _tlbil_pid(unsigned int pid) in _tlbil_pid() argument
39 #define _tlbil_pid_noind(pid) _tlbil_pid(pid) argument
43 extern void _tlbil_pid(unsigned int pid);
45 extern void _tlbil_pid_noind(unsigned int pid);
47 #define _tlbil_pid_noind(pid) _tlbil_pid(pid) argument
55 static inline void _tlbil_va(unsigned long address, unsigned int pid, in _tlbil_va() argument
61 extern void _tlbil_va(unsigned long address, unsigned int pid,
64 extern void __tlbil_va(unsigned long address, unsigned int pid);
65 static inline void _tlbil_va(unsigned long address, unsigned int pid, in _tlbil_va() argument
68 __tlbil_va(address, pid); in _tlbil_va()
[all …]
Dtlb_nohash.c167 unsigned int pid; in local_flush_tlb_mm() local
170 pid = mm->context.id; in local_flush_tlb_mm()
171 if (pid != MMU_NO_CONTEXT) in local_flush_tlb_mm()
172 _tlbil_pid(pid); in local_flush_tlb_mm()
180 unsigned int pid; in __local_flush_tlb_page() local
183 pid = mm ? mm->context.id : 0; in __local_flush_tlb_page()
184 if (pid != MMU_NO_CONTEXT) in __local_flush_tlb_page()
185 _tlbil_va(vmaddr, pid, tsize, ind); in __local_flush_tlb_page()
211 unsigned int pid; member
220 _tlbil_pid(p ? p->pid : 0); in do_flush_tlb_mm_ipi()
[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
34 *data = ((struct xterm_chan) { .pid = -1, in xterm_init()
88 int pid, fd, new, err; in xterm_open() local
137 pid = run_helper(NULL, NULL, argv); in xterm_open()
138 if (pid < 0) { in xterm_open()
139 err = pid; in xterm_open()
182 data->pid = pid; in xterm_open()
190 os_kill_process(pid, 1); in xterm_open()
201 if (data->pid != -1) in xterm_close()
202 os_kill_process(data->pid, 1); in xterm_close()
[all …]
Dubd_user.c31 int pid, fds[2], err; in start_io_thread() local
48 pid = clone(io_thread, (void *) sp, CLONE_FILES | CLONE_VM, NULL); in start_io_thread()
49 if(pid < 0){ in start_io_thread()
55 return(pid); in start_io_thread()
Dharddog_user.c33 int in_fds[2], out_fds[2], pid, n, err; in start_watchdog() local
67 pid = run_helper(pre_exec, &data, args); in start_watchdog()
72 if (pid < 0) { in start_watchdog()
73 err = -pid; in start_watchdog()
81 helper_wait(pid); in start_watchdog()
88 helper_wait(pid); in start_watchdog()
Dxterm_kern.c16 int pid; member
25 fd = os_rcv_fd(xterm->fd, &xterm->pid); in xterm_interrupt()
48 .pid = -1, in xterm_fd()
71 *pid_out = data->pid; in xterm_fd()
/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.c19 int pid = task->mm->context.id.u.pid; in arch_prctl() local
37 ret = restore_registers(pid, &current->thread.regs.regs); in arch_prctl()
54 ret = os_arch_prctl(pid, code, ptr); in arch_prctl()
61 ret = save_registers(pid, &current->thread.regs.regs); in arch_prctl()
64 ret = save_registers(pid, &current->thread.regs.regs); in arch_prctl()
/arch/cris/arch-v32/kernel/
Dptrace.c29 static int put_debugreg(long pid, unsigned int regno, long data);
30 static long get_debugreg(long pid, unsigned int regno);
32 void deconfigure_bp(long pid);
53 ret = get_debugreg(task->pid, regno); in get_reg()
74 return put_debugreg(task->pid, regno, data); in put_reg()
101 if (!get_debugreg(child->pid, PT_BP_CTRL)) { in user_disable_single_step()
124 deconfigure_bp(child->pid); in ptrace_disable()
339 void deconfigure_bp(long pid) in deconfigure_bp() argument
344 if (bp_owner != pid) in deconfigure_bp()
350 put_debugreg(pid, PT_BP + 3 + (bp * 2), 0); in deconfigure_bp()
[all …]
/arch/arm/mach-ux500/
Ddevices-db8500.h78 #define db8500_add_sdi0(parent, pdata, pid) \ argument
80 IRQ_DB8500_SDMMC0, pdata, pid)
81 #define db8500_add_sdi1(parent, pdata, pid) \ argument
83 IRQ_DB8500_SDMMC1, pdata, pid)
84 #define db8500_add_sdi2(parent, pdata, pid) \ argument
86 IRQ_DB8500_SDMMC2, pdata, pid)
87 #define db8500_add_sdi3(parent, pdata, pid) \ argument
89 IRQ_DB8500_SDMMC3, pdata, pid)
90 #define db8500_add_sdi4(parent, pdata, pid) \ argument
92 IRQ_DB8500_SDMMC4, pdata, pid)
[all …]
/arch/um/kernel/
Dreboot.c23 int pid; 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/arm/plat-s5p/
Dsetup-mipiphy.c23 int pid; in __s5p_mipi_phy_control() local
29 pid = (pdev->id == -1) ? 0 : pdev->id; in __s5p_mipi_phy_control()
31 if (pid != 0 && pid != 1) in __s5p_mipi_phy_control()
34 addr = S5P_MIPI_DPHY_CONTROL(pid); in __s5p_mipi_phy_control()
/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/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 : %04lx\n", pid, in asids_seq_show()
/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 …]
/arch/um/kernel/skas/
Dprocess.c36 int pid; in start_kernel_proc() local
39 pid = os_getpid(); in start_kernel_proc()
41 cpu_tasks[0].pid = pid; in start_kernel_proc()

123456789