Home
last modified time | relevance | path

Searched refs:phdl (Results 1 – 4 of 4) sorted by relevance

/freebsd/lib/libproc/tests/
H A Dproc_test.c51 struct proc_handle *phdl; in start_prog() local
65 error = proc_create(argv[0], argv, NULL, NULL, NULL, &phdl); in start_prog()
67 ATF_REQUIRE(phdl != NULL); in start_prog()
72 return (phdl); in start_prog()
76 set_bkpt(struct proc_handle *phdl, uintptr_t addr, u_long *saved) in set_bkpt() argument
80 error = proc_bkptset(phdl, addr, saved); in set_bkpt()
86 remove_bkpt(struct proc_handle *phdl, uintptr_t addr, u_long val) in remove_bkpt() argument
90 error = proc_bkptdel(phdl, addr, val); in remove_bkpt()
94 error = proc_regset(phdl, REG_PC, addr); in remove_bkpt()
102 verify_bkpt(struct proc_handle *phdl, GElf_Sym *sym, const char *symname, in verify_bkpt() argument
[all …]
/freebsd/lib/libproc/
H A Dproc_util.c46 proc_clearflags(struct proc_handle *phdl, int mask) in proc_clearflags() argument
49 if (phdl == NULL) in proc_clearflags()
52 phdl->flags &= ~mask; in proc_clearflags()
61 proc_continue(struct proc_handle *phdl) in proc_continue() argument
65 if (phdl == NULL) in proc_continue()
68 if (phdl->status == PS_STOP && WSTOPSIG(phdl->wstat) != SIGTRAP) in proc_continue()
69 pending = WSTOPSIG(phdl->wstat); in proc_continue()
72 if (ptrace(PT_CONTINUE, proc_getpid(phdl), (caddr_t)(uintptr_t)1, in proc_continue()
76 phdl->status = PS_RUN; in proc_continue()
82 proc_detach(struct proc_handle *phdl, int reason) in proc_detach() argument
[all …]
H A Dproc_create.c75 struct proc_handle *phdl; in proc_init() local
79 if ((phdl = malloc(sizeof(*phdl))) == NULL) in proc_init()
82 memset(phdl, 0, sizeof(*phdl)); in proc_init()
83 phdl->public.pid = pid; in proc_init()
84 phdl->flags = flags; in proc_init()
85 phdl->status = status; in proc_init()
86 phdl->procstat = procstat_open_sysctl(); in proc_init()
87 if (phdl->procstat == NULL) in proc_init()
91 if ((kp = procstat_getprocs(phdl->procstat, KERN_PROC_PID, pid, in proc_init()
94 error = procstat_getpathname(phdl->procstat, kp, phdl->execpath, in proc_init()
[all …]
H A Dlibproc.h128 #define proc_getpid(phdl) (((struct proc_handle_public *)(phdl))->pid) argument