/*
* CDDL HEADER START
*
* The contents of this file are subject to the terms of the
* Common Development and Distribution License (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 2006 Sun Microsystems, Inc. All rights reserved.
* Use is subject to license terms.
*/
#pragma ident "%Z%%M% %I% %E% SMI"
#include "statcommon.h"
#include <string.h>
#include <errno.h>
/* max size of report change annotations */
static int
{
int changed = 0;
int i;
/* CPUs can change state but not re-order */
if (old)
changed = 1;
else {
/*
*/
changed = 1;
changed = 1;
}
}
return (changed);
}
static int
{
int i = 0;
int j = 0;
int changed = 0;
i++;
changed = 1;
j++;
changed = 1;
} else {
i++;
j++;
}
}
i++;
changed = 1;
}
while (j < new->s_nr_psets) {
j++;
changed = 1;
}
return (changed);
}
static int
{
int changed = 0;
changed = 1;
changed = 1;
} else {
}
}
while (d1) {
changed = 1;
}
while (d2) {
changed = 1;
}
return (changed);
}
int
{
int changed = 0;
switch (type) {
case SNAP_CPUS:
break;
case SNAP_PSETS:
break;
case SNAP_CONTROLLERS:
case SNAP_IODEVS:
case SNAP_IOPATHS_LI:
case SNAP_IOPATHS_LTI:
break;
default:
break;
}
return (changed);
}
static void
{
}
static void
{
(void) printf("<<processor %d moved from pset: %d to: %d>>\n",
}
return;
}
/*ARGSUSED*/
static void
{
return;
}
}
static void
{
while (pos) {
*tmp = '\0';
}
}
}
static void
{
case IODEV_IOPATH_LT:
case IODEV_IOPATH_LI:
case IODEV_IOPATH_LTI:
(void) printf("<<multi-path %s: %s>>\n",
break;
case IODEV_PARTITION:
(void) printf("<<partition %s: %s>>\n",
break;
case IODEV_NFS:
(void) printf("<<NFS %s: %s>>\n",
break;
case IODEV_TAPE:
(void) printf("<<device %s: %s>>\n",
break;
case IODEV_CONTROLLER:
case IODEV_DISK:
*tmp = '\0';
if (!*tmp) {
(void) printf(">>\n");
return;
}
tmp);
break;
};
}
static void
{
iodev_changed(d1, 0);
} else {
}
}
while (d1) {
iodev_changed(d1, 0);
}
while (d2) {
}
}
void
{
int pset;
return;
return;
cpus_removed[0] = '\0';
cpus_added[0] = '\0';
if (cpus_added[0]) {
(void) printf("<<processors added: %s>>\n",
}
if (cpus_removed[0]) {
(void) printf("<<processors removed: %s>>\n",
}
if (pset) {
pset_report, NULL);
}
}
/*ARGSUSED*/
static void
{
}
int
{
int ret = 0;
return (1);
return (EINVAL);
return (EINVAL);
return (ret);
}