diff options
author | Stefan Hajnoczi | 2010-05-22 19:09:25 +0200 |
---|---|---|
committer | Anthony Liguori | 2010-09-09 23:22:45 +0200 |
commit | cd245a19329edfcd968b00d05ad92de7a0e2daa1 (patch) | |
tree | a06ff5d63af8ce74d30d58083442b977165b1c71 /trace-events | |
parent | trace: Add user documentation (diff) | |
download | qemu-cd245a19329edfcd968b00d05ad92de7a0e2daa1.tar.gz qemu-cd245a19329edfcd968b00d05ad92de7a0e2daa1.tar.xz qemu-cd245a19329edfcd968b00d05ad92de7a0e2daa1.zip |
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" |