eft_mdb.c revision 8a40a695ee676a322b094e9afe5375567bfb51e3
/*
* 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/mdb_modapi.h>
#include <lut.h>
#include <itree.h>
#define LUT_SIZE_INIT 300
#define LUT_SIZE_INCR 100
struct lut {
};
struct lut_cp {
};
struct lut_dump_desc {
int ld_arraysz;
int ld_nents;
};
static void
{
return;
}
}
static void
{
}
}
static void
{
}
static int
{
if (root) {
sizeof (struct lut)) {
return (WALK_ERR);
}
return (WALK_ERR);
return (WALK_ERR);
}
return (WALK_NEXT);
}
static int
{
return (WALK_ERR);
} else {
return (WALK_NEXT); /* caller must free dump array */
}
}
static int
{
mdb_warn("lut walker requires a lut table address\n");
return (WALK_ERR);
}
return (WALK_NEXT);
} else {
mdb_warn("failed to suck in full lut\n");
return (WALK_ERR);
}
}
static int
{
return (WALK_DONE);
++*ip;
wsp->walk_cbdata));
}
static void
{
}
static const mdb_walker_t walkers[] = {
lut_walk_fini, NULL },
};
const mdb_modinfo_t *
_mdb_init(void)
{
return (&modinfo);
}