Lines Matching defs:lgrp

29 #include "lgrp.h"
33 #include <sys/lgrp.h>
104 lgrp_t lgrp;
108 if (mdb_vread(&lgrp, sizeof (struct lgrp), wsp->walk_addr) == -1) {
109 mdb_warn("couldn't read 'lgrp' at %p", wsp->walk_addr);
113 lcw->lcw_firstcpu = (uintptr_t)lgrp.lgrp_cpu;
114 lcw->lcw_cpusleft = lgrp.lgrp_cpucnt;
176 * each lgrp by processor set.
225 lgrp(uintptr_t addr, uint_t flags, int argc, const mdb_arg_t *argv)
227 lgrp_t lgrp;
230 int lcpu; /* cpus in lgrp */
242 if (mdb_walk_dcmd("lgrptbl", "lgrp", argc, argv) == -1) {
301 if (mdb_vread(&lgrp, sizeof (struct lgrp), addr) == -1) {
302 mdb_warn("unable to read 'lgrp' at %p", addr);
307 * Do not report free lgrp unless specifically asked for.
309 if ((lgrp.lgrp_id == LGRP_NONE) &&
314 * If lgrp doesn't pass filtering criteria, don't print anything and
319 parent != (uintptr_t)lgrp.lgrp_parent)
321 if ((s_index != NULL) && index != (uintptr_t)lgrp.lgrp_id)
324 handle != (uintptr_t)lgrp.lgrp_plathand)
346 lcpu = lgrp.lgrp_cpucnt;
373 if (lgrp.lgrp_plathand == LGRP_NULL_HANDLE) {
375 lgrp.lgrp_id,
377 lgrp.lgrp_parent,
379 lgrp.lgrp_cpucnt);
380 } else if (lgrp.lgrp_plathand == LGRP_DEFAULT_HANDLE) {
382 lgrp.lgrp_id,
384 lgrp.lgrp_parent,
386 lgrp.lgrp_cpucnt);
389 lgrp.lgrp_id,
391 lgrp.lgrp_parent,
392 lgrp.lgrp_plathand,
393 lgrp.lgrp_cpucnt);
396 if (lgrp.lgrp_cpucnt != 0) {
404 lgrp.lgrp_id,
481 lgrp_t lgrp;
486 if (mdb_vread(&lgrp, sizeof (lgrp_t), wsp->walk_addr) == -1) {
487 mdb_warn("unable to read lgrp at %p", wsp->walk_addr);
491 return (wsp->walk_callback(wsp->walk_addr, &lgrp, wsp->walk_cbdata));
513 mdb_warn("NULL lgrp pointer in lgrp_table[%d]",
540 lgrp_t lgrp;
546 if (mdb_vread(&lgrp, sizeof (struct lgrp), wsp->walk_addr) == -1) {
547 mdb_warn("couldn't read 'lgrp' at %p", wsp->walk_addr);
551 status = wsp->walk_callback(wsp->walk_addr, &lgrp, wsp->walk_cbdata);
554 wsp->walk_addr = (uintptr_t)lgrp.lgrp_parent;
690 lgrp_t lgrp;
692 if (mdb_vread(&lgrp, sizeof (struct lgrp), wsp->walk_addr) == -1) {
693 mdb_warn("couldn't read 'lgrp' at %p", wsp->walk_addr);
697 return (lgrp_set_walk_init(wsp, lgrp.lgrp_set[resource]));