diff options
author | Stefan Hajnoczi <stefanha@linux.vnet.ibm.com> | 2010-05-22 18:09:25 +0100 |
---|---|---|
committer | Anthony Liguori <aliguori@us.ibm.com> | 2010-09-09 16:22:45 -0500 |
commit | cd245a19329edfcd968b00d05ad92de7a0e2daa1 (patch) | |
tree | a06ff5d63af8ce74d30d58083442b977165b1c71 /trace-events | |
parent | 81a97d9d9786f54c613efaee9950f037a9229f1f (diff) |
trace: Trace qemu_malloc() and qemu_vmalloc()
It is often useful to instrument memory management functions in order to
find leaks or performance problems. This patch adds trace events for
the memory allocation primitives.
Signed-off-by: Stefan Hajnoczi <stefanha@linux.vnet.ibm.com>
Diffstat (limited to 'trace-events')
-rw-r--r-- | trace-events | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/trace-events b/trace-events index 2a986ecd29..d2f2bbc598 100644 --- a/trace-events +++ b/trace-events @@ -27,3 +27,13 @@ # system may not have the necessary headers included. # # The <format-string> should be a sprintf()-compatible format string. + +# qemu-malloc.c +disable qemu_malloc(size_t size, void *ptr) "size %zu ptr %p" +disable qemu_realloc(void *ptr, size_t size, void *newptr) "ptr %p size %zu newptr %p" +disable qemu_free(void *ptr) "ptr %p" + +# osdep.c +disable qemu_memalign(size_t alignment, size_t size, void *ptr) "alignment %zu size %zu ptr %p" +disable qemu_valloc(size_t size, void *ptr) "size %zu ptr %p" +disable qemu_vfree(void *ptr) "ptr %p" |