Home
last modified time | relevance | path

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

/freebsd-14.2/lib/libproc/
H A Dproc_rtld.c50 phdl = arg; in map_iter()
51 if (phdl->nmappings >= phdl->maparrsz) { in map_iter()
53 tmp = reallocarray(phdl->mappings, phdl->maparrsz, in map_iter()
60 mapping = &phdl->mappings[phdl->nmappings]; in map_iter()
64 phdl->exec_map = phdl->nmappings; in map_iter()
113 if (phdl->rdap == NULL && phdl->status != PS_UNDEAD && in proc_rdagent()
115 if ((phdl->rdap = rd_new(phdl)) == NULL) in proc_rdagent()
119 phdl->mappings = calloc(phdl->maparrsz, in proc_rdagent()
123 if (rd_loadobj_iter(phdl->rdap, map_iter, phdl) != RD_OK) in proc_rdagent()
133 memset(phdl->mappings, 0, sizeof(*phdl->mappings) * phdl->maparrsz); in proc_updatesyms()
[all …]
H A Dproc_util.c50 if (phdl == NULL) in proc_clearflags()
66 if (phdl == NULL) in proc_continue()
69 if (phdl->status == PS_STOP && WSTOPSIG(phdl->wstat) != SIGTRAP) in proc_continue()
89 if (phdl == NULL) in proc_detach()
104 proc_free(phdl); in proc_detach()
112 if (phdl == NULL) in proc_getflags()
122 if (phdl == NULL) in proc_setflags()
134 if (phdl == NULL) in proc_state()
144 if (phdl == NULL) in proc_getmodel()
155 if (phdl == NULL) in proc_wstatus()
[all …]
H A Dproc_create.c80 if ((phdl = malloc(sizeof(*phdl))) == NULL) in proc_init()
83 memset(phdl, 0, sizeof(*phdl)); in proc_init()
95 error = procstat_getpathname(phdl->procstat, kp, phdl->execpath, in proc_init()
122 *pphdl = phdl; in proc_init()
171 proc_free(phdl); in proc_attach()
172 phdl = NULL; in proc_attach()
174 *pphdl = phdl; in proc_attach()
190 phdl = NULL; in proc_create()
232 phdl = NULL; in proc_create()
235 *pphdl = phdl; in proc_create()
[all …]
H A Dproc_bkpt.c103 if (phdl->status == PS_DEAD || phdl->status == PS_UNDEAD || in proc_bkptset()
104 phdl->status == PS_IDLE) { in proc_bkptset()
112 if (phdl->status != PS_STOP) { in proc_bkptset()
113 if (proc_stop(phdl) != 0) in proc_bkptset()
151 proc_continue(phdl); in proc_bkptset()
164 if (phdl->status == PS_DEAD || phdl->status == PS_UNDEAD || in proc_bkptdel()
165 phdl->status == PS_IDLE) { in proc_bkptdel()
174 if (proc_stop(phdl) != 0) in proc_bkptdel()
195 proc_continue(phdl); in proc_bkptdel()
246 proc_wstatus(phdl); in proc_bkptexec()
[all …]
H A Dproc_regs.c43 proc_regget(struct proc_handle *phdl, proc_reg_t reg, unsigned long *regvalue) in proc_regget() argument
47 if (phdl->status == PS_DEAD || phdl->status == PS_UNDEAD || in proc_regget()
48 phdl->status == PS_IDLE) { in proc_regget()
53 if (ptrace(PT_GETREGS, proc_getpid(phdl), (caddr_t)&regs, 0) < 0) in proc_regget()
95 proc_regset(struct proc_handle *phdl, proc_reg_t reg, unsigned long regvalue) in proc_regset() argument
99 if (phdl->status == PS_DEAD || phdl->status == PS_UNDEAD || in proc_regset()
100 phdl->status == PS_IDLE) { in proc_regset()
104 if (ptrace(PT_GETREGS, proc_getpid(phdl), (caddr_t)&regs, 0) < 0) in proc_regset()
141 if (ptrace(PT_SETREGS, proc_getpid(phdl), (caddr_t)&regs, 0) < 0) in proc_regset()
H A Dlibproc.h128 #define proc_getpid(phdl) (((struct proc_handle_public *)(phdl))->pid) argument
/freebsd-14.2/lib/libproc/tests/
H A Dproc_test.c52 struct proc_handle *phdl; in start_prog() local
73 return (phdl); in start_prog()
184 proc_detach(phdl, 0); in ATF_TC_BODY()
213 proc_detach(phdl, 0); in ATF_TC_BODY()
252 proc_detach(phdl, 0); in ATF_TC_BODY()
292 proc_detach(phdl, 0); in ATF_TC_BODY()
329 proc_detach(phdl, 0); in ATF_TC_BODY()
370 proc_detach(phdl, 0); in ATF_TC_BODY()
402 proc_detach(phdl, 0); in ATF_TC_BODY()
432 proc_detach(phdl, 0); in ATF_TC_BODY()
[all …]