Print this page
11689 ::refstr would be useful
Reviewed by: Jerry Jelinek <jerry.jelinek@joyent.com>
Reviewed by: Jason King <jason.king@joyent.com>
@@ -4080,10 +4080,12 @@
" -d report times in decimal\n"
" -l prints the number of clock ticks since system boot\n"
" -x report times in hexadecimal\n");
}
+extern int cmd_refstr(uintptr_t, uint_t, int, const mdb_arg_t *);
+
static const mdb_dcmd_t dcmds[] = {
/* from genunix.c */
{ "as2proc", ":", "convert as to proc_t address", as2proc },
{ "binding_hash_entry", ":", "print driver names hash table entry",
@@ -4110,10 +4112,11 @@
ps_help },
{ "pflags", NULL, "display various proc_t flags", pflags },
{ "pgrep", "[-x] [-n | -o] pattern",
"pattern match against all processes", pgrep },
{ "ptree", NULL, "print process tree", ptree },
+ { "refstr", NULL, "print string from a refstr_t", cmd_refstr, NULL },
{ "sysevent", "?[-sv]", "print sysevent pending or sent queue",
sysevent},
{ "sysevent_channel", "?", "print sysevent channel database",
sysevent_channel},
{ "sysevent_class_list", ":", "print sysevent class list",