]> Git Repo - qemu.git/commitdiff
console: add some trace events
authorAlon Levy <[email protected]>
Sun, 11 Mar 2012 16:11:26 +0000 (18:11 +0200)
committerStefan Hajnoczi <[email protected]>
Mon, 12 Mar 2012 10:30:23 +0000 (10:30 +0000)
Signed-off-by: Alon Levy <[email protected]>
Signed-off-by: Stefan Hajnoczi <[email protected]>
console.h
trace-events

index a95b5812eb957384d0d01117d52d425ef43e153a..4334db5ca5f0be872cfacfc5c85800a0ab947217 100644 (file)
--- 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);
 }
 
index c5d0f0f5477d3f818aade2e5c639d9c99ffad88e..94c4a6fb5c014bfb5a1cae98ef6124436097c0d3 100644 (file)
@@ -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"
This page took 0.026917 seconds and 4 git commands to generate.