/*
* CDDL HEADER START
*
* The contents of this file are subject to the terms of the
* Common Development and Distribution License, Version 1.0 only
* (the "License"). You may not use this file except in compliance
* with the License.
*
* You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
* See the License for the specific language governing permissions
* and limitations under the License.
*
* When distributing Covered Code, include this CDDL HEADER in each
* file and include the License file at usr/src/OPENSOLARIS.LICENSE.
* If applicable, add the following below this CDDL HEADER, with the
* fields enclosed by brackets "[]" replaced with your own identifying
* information: Portions Copyright [yyyy] [name of copyright owner]
*
* CDDL HEADER END
*/
/*
* Copyright 2005 Sun Microsystems, Inc. All rights reserved.
* Use is subject to license terms.
*/
#pragma ident "%Z%%M% %I% %E% SMI"
#include "mdinclude.h"
extern int active_sets;
/* IO array status: io_state */
{ NULL, 0, 0 }
};
void
set_io_help(void)
{
mdb_printf("::set_io [-s name] [-a num] [-m num]\n");
mdb_printf("-a num - print out num elements in the md_set_io array\n");
mdb_printf("-s name - print out the information for set named name\n");
mdb_printf("-m num - only print out element num\n");
}
/* ARGSUSED */
int
{
uint64_t i;
int setno = 0;
int argnum = 0;
mdb_printf("invalid arguments\n");
return (DCMD_USAGE);
}
mdb_printf("-s and -m cannot both be specified\n");
return (DCMD_USAGE);
}
snarf_sets();
if (opt_a == 0)
opt_a = active_sets;
/* find the array */
mdb_warn("SVM - no set io counts set\n");
return (DCMD_ERR);
}
if (md_verbose) {
mdb_printf("Base address for the md_set_io array: %p\n",
}
if (setno == -1) {
return (DCMD_ERR);
}
}
if (opt_m > 0) {
return (DCMD_OK);
}
if (opt_a == 0) {
mdb_warn("No active set!\n");
return (DCMD_ERR);
}
for (i = 0; i < opt_a; i++) {
mdb_warn("failed to read md_set_io_t at 0x%x\n",
}
if (md_verbose) {
mdb_printf(" - io_cnt: %p",
sizeof (kcondvar_t));
}
mdb_printf("\n");
offset += sizeof (md_set_io_t);
}
return (DCMD_OK);
}