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

12

/illumos-gate/usr/src/lib/libproc/common/
H A DPlwpregs.c49 * about an lwp in the core file, given its lwpid.
52 getlwpcore(struct ps_prochandle *P, lwpid_t lwpid) argument
59 if (lwp->lwp_id == lwpid)
72 getlwpfile(struct ps_prochandle *P, lwpid_t lwpid, argument
79 procfs_path, (int)P->status.pr_pid, (int)lwpid, fbase);
97 getlwpstatus(struct ps_prochandle *P, lwpid_t lwpid, lwpstatus_t *lps) argument
102 * For both live processes and cores, our job is easy if the lwpid
105 if (P->status.pr_lwp.pr_lwpid == lwpid) {
115 return (getlwpfile(P, lwpid, "lwpstatus",
123 if (P->data != NULL && (lwp = getlwpcore(P, lwpid)) !
136 setlwpregs(struct ps_prochandle *P, lwpid_t lwpid, long cmd, const void *rp, size_t n) argument
191 Plwp_getregs(struct ps_prochandle *P, lwpid_t lwpid, prgregset_t gregs) argument
203 Plwp_setregs(struct ps_prochandle *P, lwpid_t lwpid, const prgregset_t gregs) argument
209 Plwp_getfpregs(struct ps_prochandle *P, lwpid_t lwpid, prfpregset_t *fpregs) argument
220 Plwp_setfpregs(struct ps_prochandle *P, lwpid_t lwpid, const prfpregset_t *fpregs) argument
228 Plwp_getxregs(struct ps_prochandle *P, lwpid_t lwpid, prxregset_t *xregs) argument
258 Plwp_setxregs(struct ps_prochandle *P, lwpid_t lwpid, const prxregset_t *xregs) argument
264 Plwp_getgwindows(struct ps_prochandle *P, lwpid_t lwpid, gwindows_t *gwins) argument
295 Plwp_getasrs(struct ps_prochandle *P, lwpid_t lwpid, asrset_t asrs) argument
325 Plwp_setasrs(struct ps_prochandle *P, lwpid_t lwpid, const asrset_t asrs) argument
333 Plwp_getpsinfo(struct ps_prochandle *P, lwpid_t lwpid, lwpsinfo_t *lps) argument
356 Plwp_getspymaster(struct ps_prochandle *P, lwpid_t lwpid, psinfo_t *ps) argument
389 Plwp_stack(struct ps_prochandle *P, lwpid_t lwpid, stack_t *stkp) argument
429 Plwp_main_stack(struct ps_prochandle *P, lwpid_t lwpid, stack_t *stkp) argument
503 Plwp_alt_stack(struct ps_prochandle *P, lwpid_t lwpid, stack_t *stkp) argument
[all...]
H A DPservice.c106 ps_lstop(struct ps_prochandle *P, lwpid_t lwpid) argument
115 ps_lcontinue(struct ps_prochandle *P, lwpid_t lwpid) argument
123 ps_lgetregs(struct ps_prochandle *P, lwpid_t lwpid, prgregset_t regs) argument
128 if (Plwp_getregs(P, lwpid, regs) == 0)
135 ps_lsetregs(struct ps_prochandle *P, lwpid_t lwpid, const prgregset_t regs) argument
140 if (Plwp_setregs(P, lwpid, regs) == 0)
147 ps_lgetfpregs(struct ps_prochandle *P, lwpid_t lwpid, prfpregset_t *regs) argument
152 if (Plwp_getfpregs(P, lwpid, regs) == 0)
159 ps_lsetfpregs(struct ps_prochandle *P, lwpid_t lwpid, const prfpregset_t *regs) argument
164 if (Plwp_setfpregs(P, lwpid, reg
173 ps_lgetxregsize(struct ps_prochandle *P, lwpid_t lwpid, int *xrsize) argument
207 ps_lgetxregs(struct ps_prochandle *P, lwpid_t lwpid, caddr_t xregs) argument
220 ps_lsetxregs(struct ps_prochandle *P, lwpid_t lwpid, caddr_t xregs) argument
237 ps_lgetLDT(struct ps_prochandle *P, lwpid_t lwpid, struct ssd *ldt) argument
[all...]
H A Dllib-lproc94 struct ps_lwphandle *Lgrab(struct ps_prochandle *P, lwpid_t lwpid, int *perr);
153 ps_err_e ps_lstop(struct ps_prochandle *Pr, lwpid_t lwpid);
154 ps_err_e ps_lcontinue(struct ps_prochandle *Pr, lwpid_t lwpid);
156 lwpid_t lwpid, prgregset_t regs);
158 lwpid_t lwpid, const prgregset_t regs);
160 lwpid_t lwpid, prfpregset_t *regs);
162 lwpid_t lwpid, const prfpregset_t *regs);
165 lwpid_t lwpid, int *xrsize);
167 lwpid_t lwpid, caddr_t xregs);
169 lwpid_t lwpid, caddr_
[all...]
/illumos-gate/usr/src/uts/common/syscall/
H A Dlwpsys.c46 idtot(proc_t *p, id_t lwpid) argument
50 if ((ldp = lwp_hash_lookup(p, lwpid)) != NULL)
63 idtot_and_lock(proc_t *p, id_t lwpid, kmutex_t **mpp) argument
68 if ((ldp = lwp_hash_lookup_and_lock(p, lwpid, mpp)) != NULL) {
80 syslwp_suspend(id_t lwpid) argument
87 if ((t = idtot(p, lwpid)) == NULL)
98 syslwp_continue(id_t lwpid) argument
104 if ((t = idtot(p, lwpid)) == NULL) {
114 lwp_kill(id_t lwpid, int sig) argument
125 if ((t = idtot(p, lwpid))
172 lwp_wait(id_t lwpid, id_t *departed) argument
358 lwp_detach(id_t lwpid) argument
392 lwp_unpark(id_t lwpid) argument
424 lwp_unpark_cancel(id_t lwpid) argument
449 lwp_park(timespec_t *timeoutp, id_t lwpid) argument
553 id_t *lwpid; local
[all...]
/illumos-gate/usr/src/lib/libc/port/sys/
H A Dlwp.c68 _lwp_suspend(lwpid_t lwpid) argument
71 return (___lwp_suspend(lwpid));
/illumos-gate/usr/src/cmd/prstat/
H A Dprtable.c244 lwpid_add(lwp_info_t *lwp, pid_t pid, id_t lwpid) argument
250 elm->l_lwpid = lwpid;
257 lwpid_del(pid_t pid, id_t lwpid) argument
266 if ((elm->l_pid == pid) && (elm->l_lwpid == lwpid)) {
281 lwpid_getptr(pid_t pid, id_t lwpid) argument
285 if ((elm->l_pid == pid) && (elm->l_lwpid == lwpid))
294 lwpid_get(pid_t pid, id_t lwpid) argument
296 plwp_t *elm = lwpid_getptr(pid, lwpid);
318 lwpid_is_active(pid_t pid, id_t lwpid) argument
320 plwp_t *elm = lwpid_getptr(pid, lwpid);
328 lwpid_set_active(pid_t pid, id_t lwpid) argument
[all...]
H A Dprstat.c368 int i, lwpid; local
503 lwpid = lwp->li_info.pr_lwp.pr_lwpid;
505 lwpid = lwp->li_info.pr_nlwp +
546 lwp->li_info.pr_fname, lwpid); local
553 lwp->li_info.pr_fname, lwpid); local
578 lwp->li_info.pr_fname, lwpid); local
625 list_add_lwp(list_t *list, pid_t pid, id_t lwpid) argument
638 lwp->li_info.pr_lwp.pr_lwpid = lwpid;
639 lwpid_add(lwp, pid, lwpid);
768 lwp_update(lwp_info_t *lwp, pid_t pid, id_t lwpid, struc argument
868 id_t lwpid; local
884 id_t lwpid = lwpsinfo->pr_lwpid; local
901 id_t lwpid; local
[all...]
/illumos-gate/usr/src/lib/libc/port/threads/
H A Dassfail.c68 lwpid_t lwpid; local
74 lwpid = self->ul_lwpid;
76 lwpid = _lwp_self();
89 (void) _lwp_kill(lwpid, SIGABRT); /* never returns */
179 lwpid_t lwpid; local
195 lwpid = self->ul_lwpid;
201 lwpid = _lwp_self();
230 ultos((uint64_t)lwpid, 10, buf + strlen(buf));
270 lwpid_t lwpid; local
287 lwpid
357 lwpid_t lwpid; local
406 lwpid_t lwpid; local
[all...]
H A Dsema.c138 lwpid_t lwpid = 0; local
170 lwpid = ulwp->ul_lwpid;
175 if (lwpid) {
176 (void) __lwp_unpark(lwpid);
256 lwpid_t lwpid = 0; local
265 lwpid = ulwp->ul_lwpid;
270 if (lwpid) {
271 (void) __lwp_unpark(lwpid);
323 lwpid_t lwpid = 0; local
332 lwpid
[all...]
H A Dsynch.c1221 * lwp so it can run while we delay. Return the original lwpid if the
1227 preempt_unpark(ulwp_t *self, lwpid_t lwpid) argument
1234 (void) __lwp_unpark(lwpid);
1235 lwpid = 0;
1237 return (lwpid);
1609 * Returns the lwpid of the thread that was dequeued, if any.
1610 * The caller of mutex_wakeup() must call __lwp_unpark(lwpid)
1616 lwpid_t lwpid = 0; local
1628 lwpid = ulwp->ul_lwpid;
1632 return (lwpid);
1647 lwpid_t *lwpid = buffer; local
1708 lwpid_t lwpid = 0; local
2448 lwpid_t lwpid; local
2509 lwpid_t lwpid; local
2687 lwpid_t lwpid; local
3183 lwpid_t lwpid; local
3702 lwpid_t lwpid; local
3784 alloc_lwpids(lwpid_t *lwpid, int *nlwpid_ptr, int *maxlwps_ptr) argument
3841 lwpid_t *lwpid = buffer; local
[all...]
/illumos-gate/usr/src/cmd/cpc/common/
H A Dcputrack.c281 print_fork(float now, pid_t newpid, id_t lwpid, pid_t oldpid) argument
286 (void) fprintf(opts->log, "%3d %10s ", (int)lwpid, "fork");
294 print_sample(pid_t pid, id_t lwpid, argument
304 (void) fprintf(opts->log, "%3d %10s ", (int)lwpid, pevent);
325 pinit_lwp(pctx_t *pctx, pid_t pid, id_t lwpid, void *arg) argument
337 if (state->maxlwpid < lwpid) {
339 lwpid * sizeof (state->sgrps));
345 while (state->maxlwpid < lwpid) {
351 if ((sgrp = state->sgrps[lwpid-1]) == NULL) {
357 state->sgrps[lwpid
391 pfini_lwp(pctx_t *pctx, pid_t pid, id_t lwpid, void *arg) argument
448 plwp_create(pctx_t *pctx, pid_t pid, id_t lwpid, void *arg) argument
467 plwp_exit(pctx_t *pctx, pid_t pid, id_t lwpid, void *arg) argument
492 pexec(pctx_t *pctx, pid_t pid, id_t lwpid, char *name, void *arg) argument
537 pexit(pctx_t *pctx, pid_t pid, id_t lwpid, int status, void *arg) argument
571 ptick(pctx_t *pctx, pid_t pid, id_t lwpid, void *arg) argument
657 pfork(pctx_t *pctx, pid_t oldpid, pid_t pid, id_t lwpid, void *arg) argument
[all...]
/illumos-gate/usr/src/cmd/pbind/
H A Dpbind.c100 query_out(id_t pid, id_t lwpid, processorid_t cpu) argument
105 if (lwpid == -1) {
109 (void) snprintf(pidstr, 20, "%d/%d", (int)pid, (int)lwpid);
125 bind_err(processorid_t cpu, id_t pid, id_t lwpid, int err) argument
140 if (lwpid == -1)
144 warn(gettext("cannot %s lwpid %d/%d: %s\n"), msg,
145 (int)pid, (int)lwpid, strerror(err));
152 bind_out(id_t pid, id_t lwpid, processorid_t old, processorid_t new) argument
157 if (lwpid == -1) {
161 (void) snprintf(pidstr, 20, "%d/%d", (int)pid, (int)lwpid);
218 bind_lwp(struct ps_prochandle *Pr, id_t pid, id_t lwpid, processorid_t cpu) argument
336 id_t lwpid = lwpsinfo->pr_lwpid; local
[all...]
/illumos-gate/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) argument
301 return (cpc_pctx_rele(pctx, lwpid));
326 ret = cpc_bind_pctx(__cpc, pctx, lwpid, set, 0);
334 cpc_pctx_take_sample(pctx_t *pctx, id_t lwpid, cpc_event_t *event) argument
338 return (__pctx_cpc(pctx, __cpc, CPC_SAMPLE, lwpid, event->ce_pic,
343 * Given a process context and an lwpid, mark the CPU performance
347 cpc_pctx_invalidate(pctx_t *pctx, id_t lwpid) argument
349 return (__pctx_cpc(pctx, __cpc, CPC_INVALIDATE, lwpid, 0, 0, 0, 0));
353 * Given a process context and an lwpid, remove all our
357 cpc_pctx_rele(pctx_t *pctx, id_t lwpid) argument
[all...]
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);
/illumos-gate/usr/src/lib/libtnfprobe/
H A Dtnf_trace.h72 unsigned long lwpid; member in struct:__anon4134
80 tnf_uint32_t lwpid; member in struct:__anon4135
H A Dtnf_trace.c111 &TAG_DATA(tnf_lwpid), /* lwpid */
182 /* LINTED - lwpid is 32 bits */
183 ASSIGN(buffer, lwpid, sched->lwpid);
/illumos-gate/usr/src/cmd/psrset/
H A Dpsrset.c137 bind_err(psetid_t pset, const char *zname, id_t pid, id_t lwpid, int err) argument
156 else if (lwpid == -1)
159 warn(gettext("cannot %s lwpid %d/%d"), msg, pid, lwpid);
198 query_out(id_t pid, id_t lwpid, psetid_t pset) argument
203 if (lwpid == -1) {
207 (void) snprintf(pidstr, 20, "%d/%d", pid, lwpid);
256 bind_out(id_t pid, id_t lwpid, psetid_t old, psetid_t new) argument
261 if (lwpid == -1) {
265 (void) snprintf(pidstr, 20, "%d/%d", pid, lwpid);
287 bind_lwp(id_t pid, id_t lwpid, psetid_t pset) argument
515 id_t lwpid = lwpsinfo->pr_lwpid; local
[all...]
/illumos-gate/usr/src/cmd/ptools/pstack/
H A Dpstack.c60 id_t lwpid; member in struct:threadinfo
327 tip->lwpid = thrinfo.ti_lid;
363 * Find and eliminate the thread corresponding to the given lwpid.
366 find_thread(id_t lwpid) argument
371 if (lwpid == tip->lwpid) {
372 tip->lwpid = 0;
459 if (!proc_lwp_in_set(h->lwps, tip->lwpid))
465 tlhead(tid, tip->lwpid);
472 tip->lwpid
479 tlhead(id_t threadid, id_t lwpid) argument
[all...]
/illumos-gate/usr/src/cmd/ptools/plgrp/
H A Dplgrp.c869 do_op(plgrp_args_t *plgrp_args, id_t pid, id_t lwpid, argument
921 affs[i] = Plgrp_affinity_get(Ph, P_LWPID, lwpid,
929 progname, lgrps[i], pid, lwpid,
951 if (Plgrp_home_set(Ph, P_LWPID, lwpid, lgrps[i]) != 0) {
956 progname, pid, lwpid, lgrps[i],
963 home = Plgrp_home(Ph, P_LWPID, lwpid);
969 progname, pid, lwpid, strerror(errno));
1031 lwpid, lgrpid);
1039 progname, lgrpid, pid, lwpid,
1066 if (Plgrp_affinity_set(Ph, P_LWPID, lwpid, lgrpi
1197 id_t lwpid; local
[all...]
/illumos-gate/usr/src/cmd/sgs/librtld_db/amd64/
H A Dplt64_resolution.c51 plt64_resolution(rd_agent_t *rap, psaddr_t pc, lwpid_t lwpid, argument
/illumos-gate/usr/src/cmd/tnf/tnfdump/
H A Dcooked.c203 int lwpid = 0, pid = 0; local
217 lwpid = tnf_get_int32(temp);
230 pid, lwpid, tid, cpuid);
236 pid, lwpid, tid, "-");
/illumos-gate/usr/src/uts/common/tnf/
H A Dtnf_trace.h101 tnf_lwpid_t lwpid; member in struct:__anon9258
/illumos-gate/usr/src/lib/libc_db/common/
H A Dthread_db.c225 * Get the address and lwpid of the single thread/LWP.
230 lwpid_t lwpid = 0; local
239 &lwpid, sizeof (lwpid)) != PS_OK)
241 ta_p->single_lwpid = lwpid;
246 lwpid_t lwpid = 0; local
255 &lwpid, sizeof (lwpid)) != PS_OK)
257 ta_p->single_lwpid = lwpid;
1304 lwpid_t lwpid; local
1348 lwpid_t lwpid; local
1789 lwpid_t lwpid; local
2490 __td_ta_map_lwp2thr(td_thragent_t *ta_p, lwpid_t lwpid, td_thrhandle_t *th_p) argument
[all...]
/illumos-gate/usr/src/cmd/sgs/librtld_db/sparc/
H A Dplt32_resolution.c50 plt32_resolution(rd_agent_t *rap, psaddr_t pc, lwpid_t lwpid, argument
/illumos-gate/usr/src/cmd/sgs/librtld_db/common/
H A Drtld_db.c216 rd_plt_resolution(rd_agent_t *rap, psaddr_t pc, lwpid_t lwpid, argument
223 err = plt64_resolution(rap, pc, lwpid, pltbase,
227 err = plt32_resolution(rap, pc, lwpid, pltbase,

Completed in 139 milliseconds

12