Lines Matching refs:php
126 idle_add_mapping(struct ps_prochandle *P, GElf_Phdr *php, file_info_t *fp)
131 (u_longlong_t)php->p_vaddr, (u_longlong_t)php->p_filesz,
132 (u_longlong_t)php->p_memsz, (u_longlong_t)php->p_offset);
134 pmap.pr_vaddr = (uintptr_t)php->p_vaddr;
135 pmap.pr_size = php->p_filesz;
138 pmap.pr_offset = php->p_offset;
141 if (php->p_flags & PF_R)
143 if (php->p_flags & PF_W)
145 if (php->p_flags & PF_X)
151 return (Padd_mapping(P, php->p_offset, fp, &pmap));
261 GElf_Phdr phdr, *php;
263 if ((php = gelf_getphdr(elf, i, &phdr)) == NULL) {
268 if (php->p_type != PT_LOAD)
271 if (idle_add_mapping(P, php, fp) != 0) {