/*
* 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 2006 Sun Microsystems, Inc. All rights reserved.
* Use is subject to license terms.
*
* stats.c -- simple stats tracking table module
*
*/
#pragma ident "%Z%%M% %I% %E% SMI"
#include <strings.h>
#include "stats.h"
#include "alloc.h"
#include "out.h"
struct stats {
const char *name;
const char *desc;
enum stats_type {
} t;
union {
int counter;
struct {
} elapse;
const char *string;
} u;
};
/*
* stats_init -- initialize the stats module
*
*/
void
{
}
void
stats_fini(void)
{
}
static struct stats *
{
ret->t = t;
else
return (ret);
}
void
{
struct stats *p, *s;
return;
if (s == sp)
break;
if (s == NULL)
return;
if (p == NULL)
else
if (s == Laststats)
Laststats = p;
}
struct stats *
{
return (NULL); /* extended stats not enabled */
}
void
{
return;
}
void
{
return;
}
void
{
return;
}
int
{
return (0);
}
struct stats *
{
return (NULL); /* extended stats not enabled */
}
void
{
return;
}
void
{
return;
}
struct stats *
{
return (NULL); /* extended stats not enabled */
}
void
{
return;
}
/*
* stats_publish -- spew all stats
*
*/
void
stats_publish(void)
{
switch (sp->t) {
case STATS_COUNTER:
break;
case STATS_ELAPSE:
}
break;
case STATS_STRING:
break;
default:
}
}