summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarius Strobl <marius@FreeBSD.org>2012-05-01 16:38:33 +0000
committerMarius Strobl <marius@FreeBSD.org>2012-05-01 16:38:33 +0000
commite2a35695f8cd16d72e5a457b80044c5dd402a5d5 (patch)
treedd58cd5788002004857bcfa04cb30f71e230bcb8
parent46684c91ec18d5893a07bdaf801e1900b5619b47 (diff)
Notes
-rw-r--r--sys/boot/sparc64/loader/main.c12
1 files changed, 12 insertions, 0 deletions
diff --git a/sys/boot/sparc64/loader/main.c b/sys/boot/sparc64/loader/main.c
index be0819f35258f..8eba04ab86ca2 100644
--- a/sys/boot/sparc64/loader/main.c
+++ b/sys/boot/sparc64/loader/main.c
@@ -800,6 +800,18 @@ main(int (*openfirm)(void *))
return (1);
}
+COMMAND_SET(heap, "heap", "show heap usage", command_heap);
+
+static int
+command_heap(int argc, char *argv[])
+{
+
+ mallocstats();
+ printf("heap base at %p, top at %p, upper limit at %p\n", heapva,
+ sbrk(0), heapva + HEAPSZ);
+ return(CMD_OK);
+}
+
COMMAND_SET(reboot, "reboot", "reboot the system", command_reboot);
static int