/*-
* See the file LICENSE for redistribution information.
*
* Copyright (c) 1996, 1997, 1998
* Sleepycat Software. All rights reserved.
*/
#include "config.h"
#ifndef lint
#endif /* not lint */
#ifndef NO_SYSTEM_INCLUDES
#include <errno.h>
#include <stdio.h>
#include <string.h>
#include <unistd.h>
#endif
#include "db_int.h"
#include "db_page.h"
#include "shqueue.h"
#include "db_shash.h"
#include "mp.h"
#include "db_auto.h"
#include "db_ext.h"
#include "common_ext.h"
/*
* memp_stat --
* Display MPOOL statistics.
*/
int
DB_MPOOL_FSTAT ***fspp;
{
int ret;
char *name;
/* Allocate space for the global statistics. */
return (ret);
/* Copy out the global statistics. */
(*gspp)->st_region_wait =
(*gspp)->st_region_nowait =
}
/* Count the MPOOLFILE structures. */
for (len = 0,
;
if (len == 0)
return (0);
/* Allocate space for the pointers. */
return (ret);
/* Build each individual entry. */
return (ret);
}
}
return (0);
}
/*
* __memp_fn --
* On errors we print whatever is available as the file name.
*
* PUBLIC: char * __memp_fn __P((DB_MPOOLFILE *));
*/
char *
{
}
/*
* __memp_fns --
* On errors we print whatever is available as the file name.
*
* PUBLIC: char * __memp_fns __P((DB_MPOOL *, MPOOLFILE *));
*
*/
char *
{
return ((char *)"temporary");
}
/*
* __memp_dump_region --
* Display MPOOL structures.
*
* PUBLIC: void __memp_dump_region __P((DB_MPOOL *, char *, FILE *));
*/
void
char *area;
{
int cnt;
/* Make it easy to call from the debugger. */
switch (*area) {
case 'A':
break;
case 'h':
break;
case 'l':
break;
case 'm':
break;
}
/* Display MPOOL structures. */
/* Display the MPOOLFILE structures. */
cnt = 0;
if (cnt < FMAP_ENTRIES)
}
if (cnt < FMAP_ENTRIES)
}
if (cnt < FMAP_ENTRIES)
else
/* Display the hash table list of BH's. */
if (LF_ISSET(MPOOL_DUMP_HASH)) {
"%s\nBH hash table (%lu hash slots)\npageno, file, ref, address\n",
}
}
/* Display the LRU list of BH's. */
if (LF_ISSET(MPOOL_DUMP_LRU)) {
}
if (LF_ISSET(MPOOL_DUMP_MEM))
/* Flush in case we're debugging. */
}
/*
* __memp_pbh --
* Display a BH structure.
*/
static void
{
{ BH_CALLPGIN, "callpgin" },
{ BH_DIRTY, "dirty" },
{ BH_DISCARD, "discard" },
{ BH_LOCKED, "locked" },
{ BH_TRASH, "trash" },
{ BH_WRITE, "write" },
{ 0 },
};
int i;
for (i = 0; i < FMAP_ENTRIES; ++i)
break;
else
}