diff options
author | Alon Levy | 2012-03-11 17:11:26 +0100 |
---|---|---|
committer | Stefan Hajnoczi | 2012-03-12 11:30:23 +0100 |
commit | cdbc19dd8d2fd32d9a96401aaaed0c19da7896ca (patch) | |
tree | 1b88ffd572401c594348d93124d4568b91e2ba5e | |
parent | maintainers: Add docs/tracing.txt to Tracing (diff) | |
download | qemu-cdbc19dd8d2fd32d9a96401aaaed0c19da7896ca.tar.gz qemu-cdbc19dd8d2fd32d9a96401aaaed0c19da7896ca.tar.xz qemu-cdbc19dd8d2fd32d9a96401aaaed0c19da7896ca.zip |
console: add some trace events
Signed-off-by: Alon Levy <alevy@redhat.com>
Signed-off-by: Stefan Hajnoczi <stefanha@linux.vnet.ibm.com>
-rw-r--r-- | console.h | 3 | ||||
-rw-r--r-- | trace-events | 4 |
2 files changed, 7 insertions, 0 deletions
@@ -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 c5d0f0f547..94c4a6fb5c 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" |