[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Qemu-devel] [PATCH 7/7] vga: add trace event for ppm_save
From: |
Stefan Hajnoczi |
Subject: |
[Qemu-devel] [PATCH 7/7] vga: add trace event for ppm_save |
Date: |
Mon, 12 Mar 2012 12:38:02 +0000 |
From: Alon Levy <address@hidden>
Signed-off-by: Alon Levy <address@hidden>
Signed-off-by: Stefan Hajnoczi <address@hidden>
---
hw/vga.c | 2 ++
trace-events | 3 +++
2 files changed, 5 insertions(+), 0 deletions(-)
diff --git a/hw/vga.c b/hw/vga.c
index 5994f43..6dc98f6 100644
--- 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;
diff --git a/trace-events b/trace-events
index 94c4a6f..dfe28ed 100644
--- a/trace-events
+++ b/trace-events
@@ -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"
--
1.7.9.1
- [Qemu-devel] [PULL 0/7] Tracing patches, Stefan Hajnoczi, 2012/03/12
- [Qemu-devel] [PATCH 7/7] vga: add trace event for ppm_save,
Stefan Hajnoczi <=
- [Qemu-devel] [PATCH 3/7] trace: make trace_thread_create() use its function arg, Stefan Hajnoczi, 2012/03/12
- [Qemu-devel] [PATCH 2/7] tracetool: Omit useless QEMU_*_ENABLED() check, Stefan Hajnoczi, 2012/03/12
- [Qemu-devel] [PATCH 6/7] console: add some trace events, Stefan Hajnoczi, 2012/03/12
- [Qemu-devel] [PATCH 4/7] docs: correct ./configure line in tracing.txt, Stefan Hajnoczi, 2012/03/12
- [Qemu-devel] [PATCH 5/7] maintainers: Add docs/tracing.txt to Tracing, Stefan Hajnoczi, 2012/03/12
- [Qemu-devel] [PATCH 1/7] trace: Provide a per-event status define for conditional compilation, Stefan Hajnoczi, 2012/03/12
- Re: [Qemu-devel] [PULL 0/7] Tracing patches, Anthony Liguori, 2012/03/12