fm.c revision 9dd0f810214fdc8e1af881a9a5c4b6927629ff9e
/*
* 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 <sys/sysmacros.h>
#include <sys/nvpair_impl.h>
#include <sys/errorq_impl.h>
#include <ctype.h>
#include <mdb/mdb_modapi.h>
#include "nvpair.h"
int
{
mdb_warn("failed to read ereport_errorq");
return (WALK_ERR);
}
return (WALK_ERR);
}
return (WALK_ERR);
}
return (WALK_NEXT);
}
int
{
return (WALK_DONE);
return (WALK_ERR);
}
wsp->walk_cbdata));
}
int
{
mdb_warn("failed to read ereport_errorq");
return (WALK_ERR);
}
return (WALK_ERR);
}
return (WALK_ERR);
}
return (WALK_NEXT);
}
int
{
return (WALK_DONE);
return (WALK_ERR);
}
wsp->walk_cbdata));
}
/*ARGSUSED*/
int
{
int ret;
if (!(flags & DCMD_ADDRSPEC))
return (DCMD_USAGE);
return (DCMD_USAGE);
return (DCMD_ERR);
}
mdb_printf("ENA CLASS\n");
}
/*
* The following code attempts to pretty print the ereport class
* and ENA. The code uses project private macros from libnvpair
* that could change and break this functionality. If we are unable
* to get a valid class and ENA from the nvpair list, we revert to
* dumping the nvlist (same as opt_v).
*/
return (DCMD_ERR);
}
if (opt_v)
break;
return (DCMD_ERR);
}
if (size == 0) {
return (DCMD_OK);
}
/* read in the entire nvpair */
return (DCMD_ERR);
}
sizeof (uint64_t));
}
return (DCMD_OK);
}
}
/*
* Dump entire nvlist
*/
0, argv);
mdb_printf("\n");
return (ret);
}