vga: add trace event for ppm_save

Signed-off-by: Alon Levy <alevy@redhat.com>
Signed-off-by: Stefan Hajnoczi <stefanha@linux.vnet.ibm.com>
This commit is contained in:
Alon Levy 2012-03-11 18:11:27 +02:00 committed by Stefan Hajnoczi
parent cdbc19dd8d
commit 727500181a
2 changed files with 5 additions and 0 deletions

View File

@ -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;

View 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"