Lines Matching defs:ph_p

48 	struct ps_prochandle *ph_p;
139 if (ps_pdread(ta_p->ph_p, addr, &hash_size, sizeof (hash_size))
148 struct ps_prochandle *ph_p = ta_p->ph_p;
153 if (ps_pdread(ph_p, ta_p->uberdata_addr,
163 if (ps_pdread(ph_p, (psaddr_t)uberdata.tdb.tdb_events,
173 if (ps_pdread(ph_p, ta_p->uberdata_addr,
183 if (ps_pdread(ph_p, (psaddr_t)uberdata.tdb.tdb_events,
206 if (ps_pdread(ph_p, ta_p->hash_table_addr,
211 else if (ps_pdread(ph_p, (psaddr_t)head.hash_bucket +
222 if (ps_pdread(ph_p, ta_p->hash_table_addr,
227 else if (ps_pdread(ph_p, (psaddr_t)head.hash_bucket +
246 struct ps_prochandle *ph_p = ta_p->ph_p;
269 db_return = ps_pglobal_lookup(ph_p, TD_LIBRARY_NAME,
273 db_return = ps_pglobal_lookup(ph_p, TD_LIBRARY_NAME_1,
280 db_return = ps_pglobal_lookup(ph_p,
293 if (ps_pdread(ph_p, bootstrap_addr,
298 else if (ps_pdread(ph_p, psaddr,
310 if (ps_pdread(ph_p, bootstrap_addr,
315 else if (ps_pdread(ph_p, (psaddr_t)psaddr,
344 __td_ta_new(struct ps_prochandle *ph_p, td_thragent_t **ta_pp)
350 if (ph_p == NULL)
355 if (ps_pstop(ph_p) != PS_OK)
364 } else if (ps_pdmodel(ph_p, &model) != PS_OK) {
365 (void) ps_pcontinue(ph_p);
369 (void) ps_pcontinue(ph_p);
378 ta_p->ph_p = ph_p;
394 if (ps_pdread(ph_p, psaddr,
398 ps_pdwrite(ph_p, psaddr,
418 (void) ps_pcontinue(ph_p);
430 struct ps_prochandle *ph_p = NULL;
437 } else if ((ph_p = ta_p->ph_p) == NULL) {
443 ph_p = NULL;
449 return (ph_p);
509 struct ps_prochandle *ph_p;
517 if ((ph_p = ta_p->ph_p) == NULL) {
530 (void) ps_pdwrite(ph_p, ta_p->tdb_register_sync_addr,
533 ta_p->ph_p = NULL;
570 if (ta_p->ph_p == NULL)
582 struct ps_prochandle *ph_p;
608 if ((ph_p = ph_lock_ta(ta_p, &return_val)) == NULL)
610 if (ps_pdread(ph_p, nthreads_addr, &nthreads, sizeof (int)) != PS_OK)
612 if (ps_pdread(ph_p, nzombies_addr, &nzombies, sizeof (int)) != PS_OK)
704 struct ps_prochandle *ph_p;
712 if ((ph_p = ph_lock_ta(ta_p, &return_val)) == NULL)
718 if (ps_pdread(ph_p, (psaddr_t)&((mutex_t *)addr)->mutex_magic,
745 struct ps_prochandle *ph_p;
755 if ((ph_p = ph_lock_ta(ta_p, &return_val)) == NULL)
757 if (ps_pstop(ph_p) != PS_OK) {
765 if (ps_pdread(ph_p,
780 if (ps_pdread(ph_p,
797 (void) ps_pcontinue(ph_p);
805 if (ps_pdread(ph_p, dest_addr,
821 if (ps_pdread(ph_p, dest_addr,
838 (void) ps_pcontinue(ph_p);
892 struct ps_prochandle *ph_p;
910 if ((ph_p = ph_lock_ta(ta_p, &return_val)) == NULL)
912 if (ps_pstop(ph_p) != PS_OK) {
926 db_return = ps_pdread(ph_p,
929 db_return2 = ps_pdread(ph_p,
936 db_return = ps_pdread(ph_p,
940 db_return2 = ps_pdread(ph_p,
959 (void) ps_pcontinue(ph_p);
964 (void) ps_pcontinue(ph_p);
987 if (ps_pdread(ph_p, curr_lwp_addr,
990 ps_pdread(ph_p, curr_lwp_addr,
1011 if (ps_pdread(ph_p, curr_lwp_addr,
1014 ps_pdread(ph_p, curr_lwp_addr,
1079 (void) ps_pcontinue(ph_p);
1092 struct ps_prochandle *ph_p;
1096 if ((ph_p = ph_lock_ta(ta_p, &return_val)) == NULL)
1107 if (ps_pdwrite(ph_p, ta_p->tdb_register_sync_addr,
1133 struct ps_prochandle *ph_p;
1146 if ((ph_p = ph_lock_ta(ta_p, &return_val)) == NULL)
1148 if (ps_pstop(ph_p) != PS_OK) {
1152 if (ps_pdread(ph_p, ta_p->tdb_register_sync_addr,
1173 if (ps_pdread(ph_p, ta_p->uberdata_addr +
1183 if (ps_pdread(ph_p, ta_p->uberdata_addr +
1198 if (ps_pdread(ph_p, psaddr, sync_addr_hash,
1211 if (ps_pdread(ph_p, next_desc,
1231 (void) ps_pcontinue(ph_p);
1368 struct ps_prochandle *ph_p;
1377 if ((ph_p = ph_lock_th(th_p, &return_val)) == NULL)
1380 if (ps_pstop(ph_p) != PS_OK) {
1393 if (ps_pdread(ph_p, psaddr, &ulwp, sizeof (ulwp)) != PS_OK &&
1395 ps_pdread(ph_p, psaddr, &ulwp, REPLACEMENT_SIZE)) != PS_OK)
1403 if (ps_pdread(ph_p, psaddr, &ulwp, sizeof (ulwp)) != PS_OK &&
1405 ps_pdread(ph_p, psaddr, &ulwp, REPLACEMENT_SIZE32)) !=
1415 (void) ps_pcontinue(ph_p);
1472 struct ps_prochandle *ph_p;
1479 if ((ph_p = ph_lock_th(th_p, &return_val)) == NULL)
1495 if (ps_pstop(ph_p) != PS_OK) {
1500 if (ps_pdread(ph_p, psaddr_evset, &evset, sizeof (evset)) != PS_OK)
1507 if (ps_pdwrite(ph_p, psaddr_evset, &evset, sizeof (evset))
1514 if (ps_pdwrite(ph_p, psaddr_enab,
1520 (void) ps_pcontinue(ph_p);
1568 struct ps_prochandle *ph_p;
1572 if ((ph_p = ph_lock_ta(ta_p, &return_val)) == NULL)
1574 if (ps_pstop(ph_p) != PS_OK) {
1578 if (ps_pdread(ph_p, ta_p->tdb_eventmask_addr,
1586 if (ps_pdwrite(ph_p, ta_p->tdb_eventmask_addr,
1590 (void) ps_pcontinue(ph_p);
1639 struct ps_prochandle *ph_p;
1643 if ((ph_p = ph_lock_th(th_p, &return_val)) == NULL)
1645 if (ps_pstop(ph_p) != PS_OK) {
1654 if (ps_pdread(ph_p, psaddr, &evbuf, sizeof (evbuf)) != PS_OK) {
1665 if (ps_pdwrite(ph_p, psaddr, &evbuf, sizeof (evbuf))
1675 if (ps_pdread(ph_p, psaddr, &evbuf, sizeof (evbuf)) != PS_OK) {
1686 if (ps_pdwrite(ph_p, psaddr, &evbuf, sizeof (evbuf))
1695 (void) ps_pcontinue(ph_p);
1744 if (ta_p->ph_p == NULL)
1761 struct ps_prochandle *ph_p = th_p->th_ta_p->ph_p;
1771 if (ps_pdread(ph_p, (psaddr_t)&ulwp->ul_lwpid,
1780 if (ps_pdread(ph_p, (psaddr_t)&ulwp->ul_lwpid,
1801 struct ps_prochandle *ph_p;
1804 if ((ph_p = ph_lock_th(th_p, &return_val)) == NULL)
1806 if (ps_lstop(ph_p, thr_to_lwpid(th_p)) != PS_OK)
1820 struct ps_prochandle *ph_p;
1823 if ((ph_p = ph_lock_th(th_p, &return_val)) == NULL)
1825 if (ps_lcontinue(ph_p, thr_to_lwpid(th_p)) != PS_OK)
1863 struct ps_prochandle *ph_p;
1866 if ((ph_p = ph_lock_th(th_p, &return_val)) == NULL)
1868 if (ps_pstop(ph_p) != PS_OK) {
1873 if (ps_lgetregs(ph_p, thr_to_lwpid(th_p), regset) != PS_OK)
1876 (void) ps_pcontinue(ph_p);
1888 struct ps_prochandle *ph_p;
1891 if ((ph_p = ph_lock_th(th_p, &return_val)) == NULL)
1893 if (ps_pstop(ph_p) != PS_OK) {
1898 if (ps_lsetregs(ph_p, thr_to_lwpid(th_p), regset) != PS_OK)
1901 (void) ps_pcontinue(ph_p);
1913 struct ps_prochandle *ph_p;
1916 if ((ph_p = ph_lock_th(th_p, &return_val)) == NULL)
1918 if (ps_pstop(ph_p) != PS_OK) {
1923 if (ps_lgetfpregs(ph_p, thr_to_lwpid(th_p), fpregset) != PS_OK)
1926 (void) ps_pcontinue(ph_p);
1938 struct ps_prochandle *ph_p;
1941 if ((ph_p = ph_lock_th(th_p, &return_val)) == NULL)
1943 if (ps_pstop(ph_p) != PS_OK) {
1948 if (ps_lsetfpregs(ph_p, thr_to_lwpid(th_p), fpregset) != PS_OK)
1951 (void) ps_pcontinue(ph_p);
1966 struct ps_prochandle *ph_p;
1969 if ((ph_p = ph_lock_th(th_p, &return_val)) == NULL)
1971 if (ps_pstop(ph_p) != PS_OK) {
1976 if (ps_lgetxregsize(ph_p, thr_to_lwpid(th_p), xregsize) != PS_OK)
1979 (void) ps_pcontinue(ph_p);
1996 struct ps_prochandle *ph_p;
1999 if ((ph_p = ph_lock_th(th_p, &return_val)) == NULL)
2001 if (ps_pstop(ph_p) != PS_OK) {
2006 if (ps_lgetxregs(ph_p, thr_to_lwpid(th_p), (caddr_t)xregset) != PS_OK)
2009 (void) ps_pcontinue(ph_p);
2026 struct ps_prochandle *ph_p;
2029 if ((ph_p = ph_lock_th(th_p, &return_val)) == NULL)
2031 if (ps_pstop(ph_p) != PS_OK) {
2036 if (ps_lsetxregs(ph_p, thr_to_lwpid(th_p), (caddr_t)xregset) != PS_OK)
2039 (void) ps_pcontinue(ph_p);
2117 struct ps_prochandle *ph_p;
2127 if ((ph_p = ph_lock_th(th_p, &return_val)) == NULL)
2130 if (ps_pstop(ph_p) != PS_OK) {
2140 if (ps_pdread(ph_p,
2144 else if (ps_pdread(ph_p, (psaddr_t)&ulwp->ul_stsd,
2148 ps_pdread(ph_p, tsd_paddr, &stsd, sizeof (stsd)) != PS_OK)
2164 if (ps_pdread(ph_p,
2168 else if (ps_pdread(ph_p, (psaddr_t)&ulwp->ul_stsd,
2172 ps_pdread(ph_p, addr, &stsd, sizeof (stsd)) != PS_OK)
2193 (void) ps_pcontinue(ph_p);
2204 if (ps_pdread(ph_p, tsd_paddr + key * sizeof (void *),
2213 if (ps_pdread(ph_p, tsd_paddr + key * sizeof (caddr32_t),
2221 (void) ps_pcontinue(ph_p);
2234 struct ps_prochandle *ph_p;
2241 if ((ph_p = ph_lock_th(th_p, &return_val)) == NULL)
2244 if (ps_pstop(ph_p) != PS_OK) {
2255 if (ps_pdread(ph_p,
2261 else if (ps_pdread(ph_p,
2270 else if (ps_pdread(ph_p, (psaddr_t)&ulwp->ul_tls,
2275 else if (ps_pdread(ph_p,
2290 if (ps_pdread(ph_p,
2296 else if (ps_pdread(ph_p,
2305 else if (ps_pdread(ph_p, (psaddr_t)&ulwp->ul_tls,
2310 else if (ps_pdread(ph_p,
2323 (void) ps_pcontinue(ph_p);
2359 if (ps_pdread(sh_p->sh_ta_p->ph_p, sh_p->sh_unique,
2362 if (ps_pdread(sh_p->sh_ta_p->ph_p, sh_p->sh_unique,
2412 struct ps_prochandle *ph_p;
2418 if ((ph_p = ph_lock_th((td_thrhandle_t *)th_p, &return_val)) == NULL)
2427 if (ps_pdread(ph_p, (psaddr_t)&ulwp->ul_wchan,
2435 if (ps_pdread(ph_p, (psaddr_t)&ulwp->ul_wchan,
2473 sync_get_info_common(const td_synchandle_t *sh_p, struct ps_prochandle *ph_p,
2484 if (ps_pdread(ph_p, sh_p->sh_unique,
2487 if (ps_pdread(ph_p, sh_p->sh_unique, &generic_so.condition,
2494 if (trunc && ps_pdread(ph_p, sh_p->sh_unique,
2528 if (trunc && ps_pdread(ph_p, sh_p->sh_unique,
2546 if (trunc && ps_pdread(ph_p, sh_p->sh_unique,
2590 struct ps_prochandle *ph_p;
2596 if ((ph_p = ph_lock_sh(sh_p, &return_val)) == NULL)
2598 if (ps_pstop(ph_p) != PS_OK) {
2603 return_val = sync_get_info_common(sh_p, ph_p, si_p);
2605 (void) ps_pcontinue(ph_p);
2644 if (ps_pdread(ta_p->ph_p, hash_table + ix * sizeof (uint64_t),
2653 if (ps_pdread(ta_p->ph_p, next_desc,
2672 struct ps_prochandle *ph_p;
2683 if ((ph_p = ph_lock_sh(sh_p, &return_val)) == NULL)
2686 if (ps_pstop(ph_p) != PS_OK) {
2691 if ((return_val = sync_get_info_common(sh_p, ph_p, &ss_p->ss_info))
2702 if (ps_pdread(ph_p, ta_p->tdb_register_sync_addr,
2714 if (ps_pdread(ph_p, ta_p->uberdata_addr +
2724 if (ps_pdread(ph_p, ta_p->uberdata_addr +
2854 (void) ps_pcontinue(ph_p);
2871 struct ps_prochandle *ph_p;
2878 if ((ph_p = ph_lock_sh(sh_p, &return_val)) == NULL)
2880 if (ps_pstop(ph_p) != PS_OK) {
2890 if (ps_pdread(ph_p, sh_p->sh_unique, &generic_so,
2893 if (ps_pdread(ph_p, sh_p->sh_unique, &generic_so.condition,
2895 (void) ps_pcontinue(ph_p);
2907 if (trunc && ps_pdread(ph_p, sh_p->sh_unique,
2913 if (ps_pdwrite(ph_p, sh_p->sh_unique, &generic_so.lock,
2918 if (trunc && ps_pdread(ph_p, sh_p->sh_unique,
2925 if (ps_pdwrite(ph_p, sh_p->sh_unique, &generic_so.semaphore,
2934 if (trunc && ps_pdread(ph_p, sh_p->sh_unique,
2945 if (ps_pdwrite(ph_p, sh_p->sh_unique, &generic_so.rwlock,
2955 (void) ps_pcontinue(ph_p);
2972 struct ps_prochandle *ph_p = ta_p->ph_p;
2979 if (ps_pdread(ph_p, (psaddr_t)&ulwp->ul_wchan,
2989 if (ps_pdread(ph_p, (psaddr_t)&ulwp->ul_wchan,
3020 struct ps_prochandle *ph_p;
3024 if ((ph_p = ph_lock_sh(sh_p, &return_val)) == NULL)
3026 if (ps_pdread(ph_p,