qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
* [Qemu-devel] [PATCH 0/2] add malloc statistics infrastructure
@ 2011-05-02  7:59 Paolo Bonzini
  2011-05-02  7:59 ` [Qemu-devel] [PATCH 1/2] malloc: move memalign/vmalloc to qemu-malloc.c Paolo Bonzini
  2011-05-02  7:59 ` [Qemu-devel] [PATCH 2/2] malloc: add statistics infrastructure Paolo Bonzini
  0 siblings, 2 replies; 3+ messages in thread
From: Paolo Bonzini @ 2011-05-02  7:59 UTC (permalink / raw)
  To: qemu-devel

These patches add a --enable-malloc-stats configure options, which
will make qemu trace its memory allocations.  A new monitor command
dump-malloc-stats lets the user dump them to a file.

Using statistics with KVM depends on the patch I posted recently to
use qemu_free consistently.  However, there is no regression without
the configure flag.

Paolo Bonzini (2):
  malloc: move memalign/vmalloc to qemu-malloc.c
  malloc: add statistics infrastructure

 configure       |    9 ++
 hmp-commands.hx |   16 ++++
 monitor.c       |   12 +++
 osdep.h         |    5 +-
 oslib-posix.c   |   32 ++------
 oslib-win32.c   |   31 +-------
 qemu-common.h   |   46 +++++++++--
 qemu-malloc.c   |  244 +++++++++++++++++++++++++++++++++++++++++++++++++++----
 trace-events    |    1 -
 9 files changed, 316 insertions(+), 80 deletions(-)

-- 
1.7.4.4

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2011-05-02  7:59 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-05-02  7:59 [Qemu-devel] [PATCH 0/2] add malloc statistics infrastructure Paolo Bonzini
2011-05-02  7:59 ` [Qemu-devel] [PATCH 1/2] malloc: move memalign/vmalloc to qemu-malloc.c Paolo Bonzini
2011-05-02  7:59 ` [Qemu-devel] [PATCH 2/2] malloc: add statistics infrastructure Paolo Bonzini

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).