/*
* This file and its contents are supplied under the terms of the
* Common Development and Distribution License ("CDDL"), version 1.0.
* You may only use this file in accordance with the terms of version
* 1.0 of the CDDL.
*
* A full copy of the text of the CDDL should have accompanied this
* source. A copy of the CDDL is also available via the Internet at
*/
/*
* Copyright (c) 2015, Joyent, Inc. All rights reserved.
*/
#include <sys/mdb_modapi.h>
typedef struct kmemlog_walk {
int kmlw_nentries;
int kmlw_entry;
int kmlw_oldest;
static int
{
mdb_warn("couldn't find symbol 'mm_kmemlog'");
return (WALK_ERR);
}
return (WALK_ERR);
}
return (WALK_NEXT);
}
static int
{
kw->kmlw_entry = 0;
if (ent->mle_hrtime != 0) {
}
return (WALK_DONE);
return (rval);
}
static void
{
}
static int
{
if (!(flags & DCMD_ADDRSPEC)) {
mdb_warn("can't walk 'kmemlog'");
return (DCMD_ERR);
}
return (DCMD_OK);
}
if (DCMD_HDRSPEC(flags)) {
mdb_printf("%?s %-20s %?s %5s %s\n",
"ADDR", "TIME", "VADDR", "PID", "PSARGS");
}
return (DCMD_ERR);
}
mdb_printf("%?p %-20Y %?p %5d %s\n",
return (DCMD_OK);
}
{ NULL }
};
{ NULL }
};
};
const mdb_modinfo_t *
_mdb_init(void)
{
return (&modinfo);
}