/*
* 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
*/
/*
*/
#include <gmem_state.h>
#include <gmem_mem.h>
#include <gmem_page.h>
#include <gmem_dimm.h>
#include <gmem.h>
#include <errno.h>
#include <string.h>
#include <unistd.h>
#include <strings.h>
typedef struct gmem_subscriber {
const char *subr_class;
const char *);
};
static void
{
int disp;
return;
}
}
class);
}
static void
{
/*
* Our active cases all have closers registered in case-specific data.
* Cases in the process of closing (for which we've freed all associated
* data, but which haven't had an fmd-initiated fmdo_close callback)
* have had their case-specific data nulled out.
*/
}
static void
{
}
{ "bad_mem_resource", FMD_TYPE_UINT64,
"memory resource missing or malformed" },
};
};
gmem_recv, /* fmdo_recv */
NULL,
gmem_close, /* fmdo_close */
NULL, /* fmdo_stats */
gmem_gc /* fmdo_gc */
};
};
static const struct gmem_evdisp_name {
const char *evn_name;
const char *evn_desc;
} gmem_evdisp_names[] = {
{ "%s", "ok %s ereports" }, /* GMEM_EVD_OK */
{ "bad_%s", "bad %s ereports" }, /* GMEM_EVD_BAD */
{ "unused_%s", "unused %s ereports" }, /* GMEM_EVD_UNUSED */
{ "redun_%s", "redundant %s ereports" }, /* GMEM_EVD_REDUN */
};
void
{
}
void
{
return; /* error in configuration file or fmd_info */
sizeof (gm_stats) / sizeof (fmd_stat_t),
(fmd_stat_t *)&gm_stats);
int i;
for (i = 0; i < sizeof (gmem_evdisp_names) /
sizeof (struct gmem_evdisp_name); i++) {
}
}
"max_retired_pages");
if (gmem_state_restore(hdl) < 0) {
}
}