Mercurial > illumos > illumos-gate
changeset 9892:59a0cc07a7b3
6847706 ::pg uses cmt class name before reading class, cmt_hint obsolete
author | Rafael Vanoni <rafael.vanoni@sun.com> |
---|---|
date | Wed, 17 Jun 2009 12:21:28 -0700 |
parents | f5fce101fa1c |
children | 589b92d8d72b |
files | usr/src/cmd/mdb/common/modules/genunix/pg.c usr/src/uts/common/sys/cmt.h |
diffstat | 2 files changed, 6 insertions(+), 7 deletions(-) [+] |
line wrap: on
line diff
--- a/usr/src/cmd/mdb/common/modules/genunix/pg.c Wed Jun 17 11:50:08 2009 -0700 +++ b/usr/src/cmd/mdb/common/modules/genunix/pg.c Wed Jun 17 12:21:28 2009 -0700 @@ -115,6 +115,12 @@ return (DCMD_OK); } + if (mdb_vread(&pg_class, sizeof (struct pg_class), + (uintptr_t)pg.pg_class) == -1) { + mdb_warn("unable to read 'pg_class' at %p", pg.pg_class); + return (DCMD_ERR); + } + if (strcmp(pg_class.pgc_name, "cmt") == 0) { if (mdb_vread(&pg_cmt, sizeof (pg_cmt_t), addr) == -1) { mdb_warn("unable to read 'cmt pg' at %p", addr); @@ -123,12 +129,6 @@ is_cmt = 1; } - if (mdb_vread(&pg_class, sizeof (struct pg_class), - (uintptr_t)pg.pg_class) == -1) { - mdb_warn("unable to read 'pg_class' at %p", pg.pg_class); - return (DCMD_ERR); - } - if (pg.pg_relation == PGR_PHYSICAL) { if (mdb_vread(&pghw, sizeof (struct pghw), addr) == -1) { mdb_warn("unable to read 'pghw' at %p", addr);
--- a/usr/src/uts/common/sys/cmt.h Wed Jun 17 11:50:08 2009 -0700 +++ b/usr/src/uts/common/sys/cmt.h Wed Jun 17 12:21:28 2009 -0700 @@ -61,7 +61,6 @@ pg_cmt_policy_t cmt_policy; /* Dispatcher policies to use */ uint32_t cmt_utilization; /* Group's utilization */ int cmt_nchildren; /* # of children CMT PGs */ - int cmt_hint; /* hint for balancing */ struct group cmt_cpus_actv; struct bitset cmt_cpus_actv_set; /* bitset of active CPUs */ } pg_cmt_t;