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