Lines Matching refs:pgp
469 pgrep_data_t *pgp = data; in pgrep_cb() local
482 if ((pgp->pg_flags & PG_EXACT_MATCH) ? in pgrep_cb()
483 (strcmp(p.p_user.u_comm, pgp->pg_pat) != 0) : in pgrep_cb()
484 (strstr(p.p_user.u_comm, pgp->pg_pat) == NULL)) in pgrep_cb()
487 if (regexec(&pgp->pg_reg, p.p_user.u_comm, 1, &pmatch, 0) != 0) in pgrep_cb()
490 if ((pgp->pg_flags & PG_EXACT_MATCH) && in pgrep_cb()
495 if (pgp->pg_flags & (PG_NEWEST | PG_OLDEST)) { in pgrep_cb()
501 if (pgp->pg_flags & PG_NEWEST) { in pgrep_cb()
502 if (pgp->pg_xaddr == 0 || start > pgp->pg_xstart) { in pgrep_cb()
503 pgp->pg_xaddr = addr; in pgrep_cb()
504 pgp->pg_xstart = start; in pgrep_cb()
507 if (pgp->pg_xaddr == 0 || start < pgp->pg_xstart) { in pgrep_cb()
508 pgp->pg_xaddr = addr; in pgrep_cb()
509 pgp->pg_xstart = start; in pgrep_cb()
513 } else if (pgp->pg_flags & PG_PIPE_OUT) { in pgrep_cb()
517 if (mdb_call_dcmd("ps", addr, pgp->pg_psflags, 0, NULL) != 0) { in pgrep_cb()
521 pgp->pg_psflags &= ~DCMD_LOOPFIRST; in pgrep_cb()