vga: add trace event for ppm_save
authorAlon Levy <alevy@redhat.com>
Sun, 11 Mar 2012 16:11:27 +0000 (18:11 +0200)
committerStefan Hajnoczi <stefanha@linux.vnet.ibm.com>
Mon, 12 Mar 2012 10:30:27 +0000 (10:30 +0000)
Signed-off-by: Alon Levy <alevy@redhat.com>
Signed-off-by: Stefan Hajnoczi <stefanha@linux.vnet.ibm.com>
hw/vga.c
trace-events

index 5994f43b757afccbddd6695d9208dc0f81e334ae..6dc98f6c2a6f934804c7ffe260fc1d405c6e2728 100644 (file)
--- a/hw/vga.c
+++ b/hw/vga.c
@@ -30,6 +30,7 @@
 #include "pixel_ops.h"
 #include "qemu-timer.h"
 #include "xen.h"
+#include "trace.h"
 
 //#define DEBUG_VGA
 //#define DEBUG_VGA_MEM
@@ -2372,6 +2373,7 @@ int ppm_save(const char *filename, struct DisplaySurface *ds)
     int ret;
     char *linebuf, *pbuf;
 
+    trace_ppm_save(filename, ds);
     f = fopen(filename, "wb");
     if (!f)
         return -1;
index 94c4a6fb5c014bfb5a1cae98ef6124436097c0d3..dfe28ed42bb879be14f964fee4d767c35f0e490d 100644 (file)
@@ -662,3 +662,6 @@ dma_map_wait(void *dbs) "dbs=%p"
 # console.h
 displaysurface_free(void *display_state, void *display_surface) "state=%p surface=%p"
 displaysurface_resize(void *display_state, void *display_surface, int width, int height) "state=%p surface=%p %dx%d"
+
+# vga.c
+ppm_save(const char *filename, void *display_surface) "%s surface=%p"