Lines Matching defs:Hptr
53 static L_hdr *Hptr; /* profile buffer header pointer */
324 Hptr = (L_hdr *)addr;
327 (void) prof_mutex_init((lwp_mutex_t *)&Hptr->hd_mutex);
329 (void) prof_mutex_lock((mutex_t *)&Hptr->hd_mutex, &mask);
330 if (Hptr->hd_hpc) {
331 if (Hptr->hd_hpc != (caddr_t)(hpc - lpc)) {
334 (void) prof_mutex_unlock((mutex_t *)&Hptr->
336 (void) munmap((caddr_t)Hptr, Fsize);
344 Hptr->hd_magic = (unsigned int)PRF_MAGIC;
346 Hptr->hd_version = (unsigned int)PRF_VERSION_64;
348 Hptr->hd_version = (unsigned int)PRF_VERSION;
350 Hptr->hd_hpc = (caddr_t)(hpc - lpc);
352 Hptr->hd_psize = (unsigned int)psize;
354 Hptr->hd_fsize = (unsigned int)Fsize;
355 Hptr->hd_ncndx = nsym;
356 Hptr->hd_lcndx = (nsym + 1) * PRF_CGINIT;
359 (void) prof_mutex_unlock((mutex_t *)&Hptr->hd_mutex, &mask);
431 (void) munmap((caddr_t)Hptr, Fsize);
442 l_fsize = Hptr->hd_fsize;
452 (void) munmap((caddr_t)Hptr, Fsize);
456 Hptr = (L_hdr*) addr;
458 Cptr = (L_cgarc *)(addr + sizeof (L_hdr) + Hptr->hd_psize);
496 (void) prof_mutex_lock((mutex_t *)&Hptr->hd_mutex, &mask);
502 if (Hptr->hd_fsize != (unsigned int)Fsize) {
506 (void) prof_mutex_unlock((mutex_t *)&Hptr->hd_mutex,
549 cptr->cg_next = Hptr->hd_ncndx++;
554 if (Hptr->hd_ncndx == Hptr->hd_lcndx) {
559 Hptr->hd_fsize += (unsigned int)
564 Hptr->hd_fsize) == -1) {
585 (mutex_t *)&Hptr->
592 Hptr->hd_lcndx += PRF_CGNUMB;
613 (void) prof_mutex_unlock((mutex_t *)&Hptr->hd_mutex, &mask);