Lines Matching defs:pfile_p

149 	PROF_FILE	*pfile_p;	/* PROF_FILE ptr to return. */
164 pfile_p = _Malloc(sizeof (PROF_FILE), 1);
166 if ((pfile_p->pf_fildes = open(aout_name, O_RDONLY)) == -1)
170 if ((pfile_p->pf_elf_p = elf_begin(pfile_p->pf_fildes,
174 DEBUG_EXP(printf("elfkind = %d\n", elf_kind(pfile_p->pf_elf_p)));
175 if ((pfile_p->pf_elfhd_p = elf32_getehdr(pfile_p->pf_elf_p)) == NULL)
179 telf_p = pfile_p->pf_elf_p;
181 tscn_p = elf_getscn(telf_p, k = pfile_p->pf_elfhd_p->e_shstrndx);
188 if ((pfile_p->pf_snmdat_p = elf_getdata(tscn_p, NULL)) == NULL)
193 pfile_p->pf_snmdat_p));
195 pfile_p->pf_snmdat_p->d_buf));
197 pfile_p->pf_snmdat_p->d_type));
199 pfile_p->pf_snmdat_p->d_size));
201 pfile_p->pf_snmdat_p->d_off));
203 pfile_p->pf_snmdat_p->d_align));
205 pfile_p->pf_snmdat_p->d_version));
207 if (pfile_p->pf_snmdat_p->d_buf == NULL)
213 pfile_p->pf_shdarr_p = _Malloc(pfile_p->pf_elfhd_p->e_shentsize,
214 pfile_p->pf_elfhd_p->e_shnum);
218 char *shdnms_p = (char *)pfile_p->pf_snmdat_p->d_buf;
221 char *dest_p = (char *)pfile_p->pf_shdarr_p;
222 int shdsize = pfile_p->pf_elfhd_p->e_shentsize;
229 pfile_p->pf_symdat_aux_p = NULL;
256 pfile_p->pf_symstr_ndx = tshd_p->sh_link;
257 pfile_p->pf_symdat_pri_p =
262 pfile_p->pf_symdat_aux_p = NULL;
270 pfile_p->pf_symstr_ndx = tshd_p->sh_link;
271 pfile_p->pf_symdat_pri_p =
279 pfile_p->pf_symdat_aux_p =
288 if (pfile_p->pf_symdat_pri_p == NULL || pfile_p->pf_symstr_ndx == 0)
291 pfile_p->pf_nstsyms = (int)(nsyms_pri + nsyms_aux);
292 pfile_p->pf_nstsyms_aux = (int)nsyms_aux;
293 if ((nsyms_pri + nsyms_aux) != (Elf64_Xword)pfile_p->pf_nstsyms)
301 if ((pfile_p->pf_symarr_p = _symintLoad(pfile_p)) == NULL)
320 return (pfile_p);