Home
last modified time | relevance | path

Searched refs:lwpid (Results 1 – 25 of 49) sorted by relevance

12

/titanic_44/usr/src/lib/libproc/common/
H A DPlwpregs.c52 getlwpcore(struct ps_prochandle *P, lwpid_t lwpid) in getlwpcore() argument
59 if (lwp->lwp_id == lwpid) in getlwpcore()
72 getlwpfile(struct ps_prochandle *P, lwpid_t lwpid, in getlwpfile() argument
79 procfs_path, (int)P->status.pr_pid, (int)lwpid, fbase); in getlwpfile()
97 getlwpstatus(struct ps_prochandle *P, lwpid_t lwpid, lwpstatus_t *lps) in getlwpstatus() argument
105 if (P->status.pr_lwp.pr_lwpid == lwpid) { in getlwpstatus()
115 return (getlwpfile(P, lwpid, "lwpstatus", in getlwpstatus()
123 if (P->data != NULL && (lwp = getlwpcore(P, lwpid)) != NULL) { in getlwpstatus()
136 setlwpregs(struct ps_prochandle *P, lwpid_t lwpid, long cmd, in setlwpregs() argument
159 if (P->status.pr_lwp.pr_lwpid == lwpid) { in setlwpregs()
[all …]
H A DPservice.c106 ps_lstop(struct ps_prochandle *P, lwpid_t lwpid) in ps_lstop() argument
115 ps_lcontinue(struct ps_prochandle *P, lwpid_t lwpid) in ps_lcontinue() argument
123 ps_lgetregs(struct ps_prochandle *P, lwpid_t lwpid, prgregset_t regs) in ps_lgetregs() argument
128 if (Plwp_getregs(P, lwpid, regs) == 0) in ps_lgetregs()
135 ps_lsetregs(struct ps_prochandle *P, lwpid_t lwpid, const prgregset_t regs) in ps_lsetregs() argument
140 if (Plwp_setregs(P, lwpid, regs) == 0) in ps_lsetregs()
147 ps_lgetfpregs(struct ps_prochandle *P, lwpid_t lwpid, prfpregset_t *regs) in ps_lgetfpregs() argument
152 if (Plwp_getfpregs(P, lwpid, regs) == 0) in ps_lgetfpregs()
159 ps_lsetfpregs(struct ps_prochandle *P, lwpid_t lwpid, const prfpregset_t *regs) in ps_lsetfpregs() argument
164 if (Plwp_setfpregs(P, lwpid, regs) == 0) in ps_lsetfpregs()
[all …]
H A Dllib-lproc93 struct ps_lwphandle *Lgrab(struct ps_prochandle *P, lwpid_t lwpid, int *perr);
152 ps_err_e ps_lstop(struct ps_prochandle *Pr, lwpid_t lwpid);
153 ps_err_e ps_lcontinue(struct ps_prochandle *Pr, lwpid_t lwpid);
155 lwpid_t lwpid, prgregset_t regs);
157 lwpid_t lwpid, const prgregset_t regs);
159 lwpid_t lwpid, prfpregset_t *regs);
161 lwpid_t lwpid, const prfpregset_t *regs);
164 lwpid_t lwpid, int *xrsize);
166 lwpid_t lwpid, caddr_t xregs);
168 lwpid_t lwpid, caddr_t xregs);
[all …]
/titanic_44/usr/src/uts/common/syscall/
H A Dlwpsys.c46 idtot(proc_t *p, id_t lwpid) in idtot() argument
50 if ((ldp = lwp_hash_lookup(p, lwpid)) != NULL) in idtot()
63 idtot_and_lock(proc_t *p, id_t lwpid, kmutex_t **mpp) in idtot_and_lock() argument
68 if ((ldp = lwp_hash_lookup_and_lock(p, lwpid, mpp)) != NULL) { in idtot_and_lock()
80 syslwp_suspend(id_t lwpid) in syslwp_suspend() argument
87 if ((t = idtot(p, lwpid)) == NULL) in syslwp_suspend()
98 syslwp_continue(id_t lwpid) in syslwp_continue() argument
104 if ((t = idtot(p, lwpid)) == NULL) { in syslwp_continue()
114 lwp_kill(id_t lwpid, int sig) in lwp_kill() argument
125 if ((t = idtot(p, lwpid)) == NULL) { in lwp_kill()
[all …]
/titanic_44/usr/src/cmd/cpc/common/
H A Dcputrack.c281 print_fork(float now, pid_t newpid, id_t lwpid, pid_t oldpid) in print_fork() argument
286 (void) fprintf(opts->log, "%3d %10s ", (int)lwpid, "fork"); in print_fork()
294 print_sample(pid_t pid, id_t lwpid, in print_sample() argument
304 (void) fprintf(opts->log, "%3d %10s ", (int)lwpid, pevent); in print_sample()
325 pinit_lwp(pctx_t *pctx, pid_t pid, id_t lwpid, void *arg) in pinit_lwp() argument
337 if (state->maxlwpid < lwpid) { in pinit_lwp()
339 lwpid * sizeof (state->sgrps)); in pinit_lwp()
345 while (state->maxlwpid < lwpid) { in pinit_lwp()
351 if ((sgrp = state->sgrps[lwpid-1]) == NULL) { in pinit_lwp()
357 state->sgrps[lwpid-1] = sgrp; in pinit_lwp()
[all …]
/titanic_44/usr/src/lib/libc/port/threads/
H A Dassfail.c65 lwpid_t lwpid; in Abort() local
71 lwpid = self->ul_lwpid; in Abort()
73 lwpid = _lwp_self(); in Abort()
86 (void) _lwp_kill(lwpid, SIGABRT); /* never returns */ in Abort()
169 lwpid_t lwpid; in lock_error() local
185 lwpid = self->ul_lwpid; in lock_error()
191 lwpid = _lwp_self(); in lock_error()
220 ultos((uint64_t)lwpid, 10, buf + strlen(buf)); in lock_error()
260 lwpid_t lwpid; in rwlock_error() local
277 lwpid = self->ul_lwpid; in rwlock_error()
[all …]
H A Dsema.c138 lwpid_t lwpid = 0; in sema_wait_impl() local
170 lwpid = ulwp->ul_lwpid; in sema_wait_impl()
175 if (lwpid) { in sema_wait_impl()
176 (void) __lwp_unpark(lwpid); in sema_wait_impl()
256 lwpid_t lwpid = 0; in sema_trywait() local
265 lwpid = ulwp->ul_lwpid; in sema_trywait()
270 if (lwpid) { in sema_trywait()
271 (void) __lwp_unpark(lwpid); in sema_trywait()
323 lwpid_t lwpid = 0; in sema_post() local
332 lwpid = ulwp->ul_lwpid; in sema_post()
[all …]
H A Dsynch.c1226 preempt_unpark(ulwp_t *self, lwpid_t lwpid) in preempt_unpark() argument
1233 (void) __lwp_unpark(lwpid); in preempt_unpark()
1234 lwpid = 0; in preempt_unpark()
1236 return (lwpid); in preempt_unpark()
1615 lwpid_t lwpid = 0; in mutex_wakeup() local
1627 lwpid = ulwp->ul_lwpid; in mutex_wakeup()
1631 return (lwpid); in mutex_wakeup()
1646 lwpid_t *lwpid = buffer; in mutex_wakeup_all() local
1674 lwpid = alloc_lwpids(lwpid, &nlwpid, &maxlwps); in mutex_wakeup_all()
1675 lwpid[nlwpid++] = ulwp->ul_lwpid; in mutex_wakeup_all()
[all …]
H A Drwlock.c386 lwpid_t *lwpid = buffer; in rw_queue_release() local
450 lwpid = alloc_lwpids(lwpid, &nlwpid, &maxlwps); in rw_queue_release()
463 lwpid[nlwpid++] = ulwp->ul_lwpid; in rw_queue_release()
483 (void) __lwp_unpark(lwpid[0]); in rw_queue_release()
485 (void) __lwp_unpark_all(lwpid, nlwpid); in rw_queue_release()
488 if (lwpid != buffer) in rw_queue_release()
489 (void) munmap((caddr_t)lwpid, maxlwps * sizeof (lwpid_t)); in rw_queue_release()
/titanic_44/usr/src/cmd/pbind/
H A Dpbind.c100 query_out(id_t pid, id_t lwpid, processorid_t cpu) in query_out() argument
105 if (lwpid == -1) { in query_out()
109 (void) snprintf(pidstr, 20, "%d/%d", (int)pid, (int)lwpid); in query_out()
125 bind_err(processorid_t cpu, id_t pid, id_t lwpid, int err) in bind_err() argument
140 if (lwpid == -1) in bind_err()
145 (int)pid, (int)lwpid, strerror(err)); in bind_err()
152 bind_out(id_t pid, id_t lwpid, processorid_t old, processorid_t new) in bind_out() argument
157 if (lwpid == -1) { in bind_out()
161 (void) snprintf(pidstr, 20, "%d/%d", (int)pid, (int)lwpid); in bind_out()
218 bind_lwp(struct ps_prochandle *Pr, id_t pid, id_t lwpid, processorid_t cpu) in bind_lwp() argument
[all …]
/titanic_44/usr/src/cmd/prstat/
H A Dprtable.c244 lwpid_add(lwp_info_t *lwp, pid_t pid, id_t lwpid) in lwpid_add() argument
250 elm->l_lwpid = lwpid; in lwpid_add()
257 lwpid_del(pid_t pid, id_t lwpid) in lwpid_del() argument
266 if ((elm->l_pid == pid) && (elm->l_lwpid == lwpid)) { in lwpid_del()
281 lwpid_getptr(pid_t pid, id_t lwpid) in lwpid_getptr() argument
285 if ((elm->l_pid == pid) && (elm->l_lwpid == lwpid)) in lwpid_getptr()
294 lwpid_get(pid_t pid, id_t lwpid) in lwpid_get() argument
296 plwp_t *elm = lwpid_getptr(pid, lwpid); in lwpid_get()
318 lwpid_is_active(pid_t pid, id_t lwpid) in lwpid_is_active() argument
320 plwp_t *elm = lwpid_getptr(pid, lwpid); in lwpid_is_active()
[all …]
H A Dprstat.c368 int i, lwpid; in list_print() local
503 lwpid = lwp->li_info.pr_lwp.pr_lwpid; in list_print()
505 lwpid = lwp->li_info.pr_nlwp + in list_print()
546 lwp->li_info.pr_fname, lwpid); in list_print()
553 lwp->li_info.pr_fname, lwpid); in list_print()
578 lwp->li_info.pr_fname, lwpid); in list_print()
625 list_add_lwp(list_t *list, pid_t pid, id_t lwpid) in list_add_lwp() argument
638 lwp->li_info.pr_lwp.pr_lwpid = lwpid; in list_add_lwp()
639 lwpid_add(lwp, pid, lwpid); in list_add_lwp()
768 lwp_update(lwp_info_t *lwp, pid_t pid, id_t lwpid, struct prusage *usage) in lwp_update() argument
[all …]
/titanic_44/usr/src/lib/libcpc/common/
H A Dobsoleted.c295 cpc_pctx_bind_event(pctx_t *pctx, id_t lwpid, cpc_event_t *event, int flags) in cpc_pctx_bind_event() argument
301 return (cpc_pctx_rele(pctx, lwpid)); in cpc_pctx_bind_event()
326 ret = cpc_bind_pctx(__cpc, pctx, lwpid, set, 0); in cpc_pctx_bind_event()
334 cpc_pctx_take_sample(pctx_t *pctx, id_t lwpid, cpc_event_t *event) in cpc_pctx_take_sample() argument
338 return (__pctx_cpc(pctx, __cpc, CPC_SAMPLE, lwpid, event->ce_pic, in cpc_pctx_take_sample()
347 cpc_pctx_invalidate(pctx_t *pctx, id_t lwpid) in cpc_pctx_invalidate() argument
349 return (__pctx_cpc(pctx, __cpc, CPC_INVALIDATE, lwpid, 0, 0, 0, 0)); in cpc_pctx_invalidate()
357 cpc_pctx_rele(pctx_t *pctx, id_t lwpid) in cpc_pctx_rele() argument
359 return (__pctx_cpc(pctx, __cpc, CPC_RELE, lwpid, 0, 0, 0, 0)); in cpc_pctx_rele()
H A Dlibcpc.h199 id_t lwpid, cpc_event_t *event, int flags);
200 extern int cpc_pctx_take_sample(pctx_t *pctx, id_t lwpid, cpc_event_t *event);
201 extern int cpc_pctx_rele(pctx_t *pctx, id_t lwpid);
202 extern int cpc_pctx_invalidate(pctx_t *pctx, id_t lwpid);
/titanic_44/usr/src/cmd/ptools/plgrp/
H A Dplgrp.c869 do_op(plgrp_args_t *plgrp_args, id_t pid, id_t lwpid, in do_op() argument
921 affs[i] = Plgrp_affinity_get(Ph, P_LWPID, lwpid, in do_op()
929 progname, lgrps[i], pid, lwpid, in do_op()
951 if (Plgrp_home_set(Ph, P_LWPID, lwpid, lgrps[i]) != 0) { in do_op()
956 progname, pid, lwpid, lgrps[i], in do_op()
963 home = Plgrp_home(Ph, P_LWPID, lwpid); in do_op()
969 progname, pid, lwpid, strerror(errno)); in do_op()
1031 lwpid, lgrpid); in do_op()
1039 progname, lgrpid, pid, lwpid, in do_op()
1066 if (Plgrp_affinity_set(Ph, P_LWPID, lwpid, lgrpid, in do_op()
[all …]
/titanic_44/usr/src/cmd/psrset/
H A Dpsrset.c137 bind_err(psetid_t pset, const char *zname, id_t pid, id_t lwpid, int err) in bind_err() argument
156 else if (lwpid == -1) in bind_err()
159 warn(gettext("cannot %s lwpid %d/%d"), msg, pid, lwpid); in bind_err()
198 query_out(id_t pid, id_t lwpid, psetid_t pset) in query_out() argument
203 if (lwpid == -1) { in query_out()
207 (void) snprintf(pidstr, 20, "%d/%d", pid, lwpid); in query_out()
256 bind_out(id_t pid, id_t lwpid, psetid_t old, psetid_t new) in bind_out() argument
261 if (lwpid == -1) { in bind_out()
265 (void) snprintf(pidstr, 20, "%d/%d", pid, lwpid); in bind_out()
287 bind_lwp(id_t pid, id_t lwpid, psetid_t pset) in bind_lwp() argument
[all …]
/titanic_44/usr/src/cmd/ptools/pstack/
H A Dpstack.c60 id_t lwpid; member
327 tip->lwpid = thrinfo.ti_lid; in thr_stack()
366 find_thread(id_t lwpid) in find_thread() argument
371 if (lwpid == tip->lwpid) { in find_thread()
372 tip->lwpid = 0; in find_thread()
459 if (!proc_lwp_in_set(h->lwps, tip->lwpid)) in all_call_stacks()
465 tlhead(tid, tip->lwpid); in all_call_stacks()
472 tip->lwpid = 0; in all_call_stacks()
479 tlhead(id_t threadid, id_t lwpid) in tlhead() argument
481 if (threadid == 0 && lwpid == 0) in tlhead()
[all …]
/titanic_44/usr/src/lib/libc/port/sys/
H A Dlwp.c68 _lwp_suspend(lwpid_t lwpid) in _lwp_suspend() argument
71 return (___lwp_suspend(lwpid)); in _lwp_suspend()
/titanic_44/usr/src/lib/libpctx/common/
H A Dlibpctx.c532 id_t lwpid; in pctx_run() local
661 lwpid = pstatus->pr_lwp.pr_lwpid; in pctx_run()
684 pid, lwpid, pctx->uarg); in pctx_run()
686 pid, lwpid, pctx->uarg); in pctx_run()
693 pctx->exit(pctx, pid, lwpid, in pctx_run()
734 if (pctx->exec(pctx, pid, lwpid, in pctx_run()
747 if (pctx->init_lwp(pctx, pid, lwpid, in pctx_run()
751 pid, lwpid, pctx->uarg) != 0) in pctx_run()
784 lwpid, pctx->uarg); in pctx_run()
871 int cmd, id_t lwpid, void *data1, void *data2, void *data3, int bufsize) in __pctx_cpc() argument
[all …]
/titanic_44/usr/src/lib/libc_db/common/
H A Dthread_db.c204 lwpid_t lwpid = 0; in td_read_uberdata() local
213 &lwpid, sizeof (lwpid)) != PS_OK) in td_read_uberdata()
215 ta_p->single_lwpid = lwpid; in td_read_uberdata()
220 lwpid_t lwpid = 0; in td_read_uberdata() local
229 &lwpid, sizeof (lwpid)) != PS_OK) in td_read_uberdata()
231 ta_p->single_lwpid = lwpid; in td_read_uberdata()
1278 lwpid_t lwpid; in td_thr2to() local
1280 if ((lwpid = ulwp->ul_lwpid) == 0) in td_thr2to()
1281 lwpid = 1; in td_thr2to()
1285 ti_p->ti_tid = lwpid; in td_thr2to()
[all …]
/titanic_44/usr/src/cmd/tnf/tnfdump/
H A Dcooked.c203 int lwpid = 0, pid = 0; in describe_event() local
217 lwpid = tnf_get_int32(temp); in describe_event()
230 pid, lwpid, tid, cpuid); in describe_event()
236 pid, lwpid, tid, "-"); in describe_event()
/titanic_44/usr/src/lib/libtnfprobe/
H A Dtnf_trace.h72 unsigned long lwpid; member
80 tnf_uint32_t lwpid; member
H A Dtnf_trace.c183 ASSIGN(buffer, lwpid, sched->lwpid); in tnf_schedule_write()
/titanic_44/usr/src/cmd/truss/
H A Dmain.c149 insert_lwpid(lwpid_t lwpid) in insert_lwpid() argument
166 truss_lwpid[i] = lwpid; in insert_lwpid()
181 lwpid_t lwpid; in broadcast_signals() local
187 if ((lwpid = truss_lwpid[i]) != 0 && lwpid != my_id) in broadcast_signals()
188 (void) thr_kill(lwpid, interrupt); in broadcast_signals()
194 if ((lwpid = truss_lwpid[i]) != 0 && lwpid != my_id) in broadcast_signals()
195 (void) thr_kill(lwpid, SIGUSR1); in broadcast_signals()
201 if ((lwpid = truss_lwpid[i]) != 0 && lwpid != my_id) in broadcast_signals()
202 (void) thr_kill(lwpid, SIGUSR2); in broadcast_signals()
234 lwpid_t lwpid; in create_thread() local
[all …]
/titanic_44/usr/src/uts/common/os/
H A Dlwp.c97 int state, int pri, const k_sigset_t *smask, int cid, id_t lwpid) in lwp_create() argument
599 if (lwpid != 0) in lwp_create()
600 t->t_tid = lwpid; in lwp_create()
1798 forklwp(klwp_t *lwp, proc_t *cp, id_t lwpid) in forklwp() argument
1823 NULL, 0, cp, TS_STOPPED, t->t_pri, &t->t_hold, NOCLASS, lwpid); in forklwp()
1975 lwp_hash_out(proc_t *p, id_t lwpid) in lwp_hash_out() argument
1977 tidhash_t *thp = &p->p_tidhash[TIDHASH(lwpid, p->p_tidhash_sz)]; in lwp_hash_out()
1986 if (lep->le_lwpid == lwpid) { in lwp_hash_out()
2003 lwp_hash_lookup(proc_t *p, id_t lwpid) in lwp_hash_lookup() argument
2016 thp = &p->p_tidhash[TIDHASH(lwpid, p->p_tidhash_sz)]; in lwp_hash_lookup()
[all …]

12