Lines Matching refs:bigwad
239 } *bigwad; in write_elfnotes() local
244 size_t bigsize = MAX(psize, MAX(sizeof (*bigwad), in write_elfnotes()
270 bigwad = kmem_alloc(bigsize, KM_SLEEP); in write_elfnotes()
283 prgetpsinfo(p, &bigwad->psinfo); in write_elfnotes()
285 bigwad->psinfo.pr_wstat = wstat(CLD_DUMPED, sig); in write_elfnotes()
287 error = elfnote(vp, &offset, NT_PSINFO, sizeof (bigwad->psinfo), in write_elfnotes()
288 (caddr_t)&bigwad->psinfo, rlimit, credp); in write_elfnotes()
307 prgetstatus(p, &bigwad->pstatus, p->p_zone); in write_elfnotes()
308 bigwad->pstatus.pr_lwp.pr_why = 0; in write_elfnotes()
314 error = elfnote(vp, &offset, NT_PSTATUS, sizeof (bigwad->pstatus), in write_elfnotes()
315 (caddr_t)&bigwad->pstatus, rlimit, credp); in write_elfnotes()
326 bigwad->auxv[i].a_type = up->u_auxv[i].a_type; in write_elfnotes()
327 bigwad->auxv[i].a_un.a_val = up->u_auxv[i].a_un.a_val; in write_elfnotes()
329 error = elfnote(vp, &offset, NT_AUXV, sizeof (bigwad->auxv), in write_elfnotes()
330 (caddr_t)bigwad->auxv, rlimit, credp); in write_elfnotes()
334 bcopy(&utsname, &bigwad->uts, sizeof (struct utsname)); in write_elfnotes()
336 bcopy(p->p_zone->zone_nodename, &bigwad->uts.nodename, in write_elfnotes()
340 (caddr_t)&bigwad->uts, rlimit, credp); in write_elfnotes()
344 prgetsecflags(p, &bigwad->psecflags); in write_elfnotes()
346 (caddr_t)&bigwad->psecflags, rlimit, credp); in write_elfnotes()
350 bzero(bigwad, crsize); in write_elfnotes()
351 prgetcred(p, &bigwad->pcred); in write_elfnotes()
353 if (bigwad->pcred.pr_ngroups != 0) { in write_elfnotes()
355 sizeof (gid_t) * (bigwad->pcred.pr_ngroups - 1); in write_elfnotes()
360 (caddr_t)&bigwad->pcred, rlimit, credp); in write_elfnotes()
369 prgetpriv(p, &bigwad->ppriv); in write_elfnotes()
372 (caddr_t)&bigwad->ppriv, rlimit, credp); in write_elfnotes()
495 fill_prcwd(p, &bigwad->cwd, vroot, credp); in write_elfnotes()
496 error = elfnote(vp, &offset, NT_CWD, sizeof (bigwad->cwd), in write_elfnotes()
497 (caddr_t)&bigwad->cwd, rlimit, credp); in write_elfnotes()
531 prgetlwpsinfo(t, &bigwad->lwpsinfo); in write_elfnotes()
540 bzero(&bigwad->lwpsinfo, sizeof (bigwad->lwpsinfo)); in write_elfnotes()
541 bigwad->lwpsinfo.pr_lwpid = lep->le_lwpid; in write_elfnotes()
542 bigwad->lwpsinfo.pr_state = SZOMB; in write_elfnotes()
543 bigwad->lwpsinfo.pr_sname = 'Z'; in write_elfnotes()
544 bigwad->lwpsinfo.pr_start.tv_sec = lep->le_start; in write_elfnotes()
547 name.pr_lwpid = bigwad->lwpsinfo.pr_lwpid; in write_elfnotes()
550 sizeof (bigwad->lwpsinfo), (caddr_t)&bigwad->lwpsinfo, in write_elfnotes()
573 prgetlwpstatus(t, &bigwad->lwpstatus, p->p_zone); in write_elfnotes()
574 bigwad->lwpstatus.pr_why = 0; in write_elfnotes()
579 prgetlwpstatus(t, &bigwad->lwpstatus, p->p_zone); in write_elfnotes()
583 sizeof (bigwad->lwpstatus), (caddr_t)&bigwad->lwpstatus, in write_elfnotes()
604 prgetwindows(lwp, &bigwad->gwindows); in write_elfnotes()
606 size, (caddr_t)&bigwad->gwindows, in write_elfnotes()
616 prgetasregs(lwp, bigwad->asrset); in write_elfnotes()
618 sizeof (asrset_t), (caddr_t)bigwad->asrset, in write_elfnotes()
626 prgetprxregs(lwp, (prxregset_t *)bigwad->xregs); in write_elfnotes()
628 xregsize, bigwad->xregs, rlimit, credp); in write_elfnotes()
647 psinfo_kto32(psaddr, &bigwad->psinfo); in write_elfnotes()
648 psaddr = &bigwad->psinfo; in write_elfnotes()
665 bzero(&bigwad->upanic, sizeof (prupanic_t)); in write_elfnotes()
666 bigwad->upanic.pru_version = PRUPANIC_VERSION_1; in write_elfnotes()
668 bigwad->upanic.pru_flags |= PRUPANIC_FLAG_MSG_ERROR; in write_elfnotes()
672 bigwad->upanic.pru_flags |= PRUPANIC_FLAG_MSG_TRUNC; in write_elfnotes()
676 bigwad->upanic.pru_flags |= PRUPANIC_FLAG_MSG_VALID; in write_elfnotes()
677 bcopy(p->p_upanic, bigwad->upanic.pru_data, in write_elfnotes()
683 &bigwad->upanic, rlimit, credp); in write_elfnotes()
692 kmem_free(bigwad, bigsize); in write_elfnotes()