Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 1 May 2012 16:40:12 GMT
From:      dfilter@FreeBSD.ORG (dfilter service)
To:        freebsd-sparc64@FreeBSD.org
Subject:   Re: sparc64/165025: commit references a PR
Message-ID:  <201205011640.q41GeC5t051069@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help
The following reply was made to PR sparc64/165025; it has been noted by GNATS.

From: dfilter@FreeBSD.ORG (dfilter service)
To: bug-followup@FreeBSD.org
Cc:  
Subject: Re: sparc64/165025: commit references a PR
Date: Tue,  1 May 2012 16:38:50 +0000 (UTC)

 Author: marius
 Date: Tue May  1 16:38:33 2012
 New Revision: 234897
 URL: http://svn.freebsd.org/changeset/base/234897
 
 Log:
   Add a command for showing the heap usage.
   
   PR:		165025
   Submitted by:	Gavin Mu
   MFC after:	1 week
 
 Modified:
   head/sys/boot/sparc64/loader/main.c
 
 Modified: head/sys/boot/sparc64/loader/main.c
 ==============================================================================
 --- head/sys/boot/sparc64/loader/main.c	Tue May  1 16:18:38 2012	(r234896)
 +++ head/sys/boot/sparc64/loader/main.c	Tue May  1 16:38:33 2012	(r234897)
 @@ -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
 _______________________________________________
 svn-src-all@freebsd.org mailing list
 http://lists.freebsd.org/mailman/listinfo/svn-src-all
 To unsubscribe, send any mail to "svn-src-all-unsubscribe@freebsd.org"
 



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201205011640.q41GeC5t051069>