[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Qemu-devel] [PATCH 6/7] console: add some trace events
From: |
Stefan Hajnoczi |
Subject: |
[Qemu-devel] [PATCH 6/7] console: add some trace events |
Date: |
Mon, 12 Mar 2012 12:38:01 +0000 |
From: Alon Levy <address@hidden>
Signed-off-by: Alon Levy <address@hidden>
Signed-off-by: Stefan Hajnoczi <address@hidden>
---
console.h | 3 +++
trace-events | 4 ++++
2 files changed, 7 insertions(+), 0 deletions(-)
diff --git a/console.h b/console.h
index a95b581..4334db5 100644
--- a/console.h
+++ b/console.h
@@ -5,6 +5,7 @@
#include "qdict.h"
#include "notify.h"
#include "monitor.h"
+#include "trace.h"
/* keyboard/mouse support */
@@ -202,11 +203,13 @@ static inline DisplaySurface*
qemu_create_displaysurface(DisplayState *ds, int w
static inline DisplaySurface* qemu_resize_displaysurface(DisplayState *ds, int
width, int height)
{
+ trace_displaysurface_resize(ds, ds->surface, width, height);
return ds->allocator->resize_displaysurface(ds->surface, width, height);
}
static inline void qemu_free_displaysurface(DisplayState *ds)
{
+ trace_displaysurface_free(ds, ds->surface);
ds->allocator->free_displaysurface(ds->surface);
}
diff --git a/trace-events b/trace-events
index c5d0f0f..94c4a6f 100644
--- a/trace-events
+++ b/trace-events
@@ -658,3 +658,7 @@ dma_aio_cancel(void *dbs) "dbs=%p"
dma_complete(void *dbs, int ret, void *cb) "dbs=%p ret=%d cb=%p"
dma_bdrv_cb(void *dbs, int ret) "dbs=%p ret=%d"
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"
--
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, 2012/03/12
- [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 <=
- [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