提交 cdbc19dd 编写于 作者: A Alon Levy 提交者: Stefan Hajnoczi

console: add some trace events

Signed-off-by: NAlon Levy <alevy@redhat.com>
Signed-off-by: NStefan Hajnoczi <stefanha@linux.vnet.ibm.com>
上级 f922ea46
...@@ -5,6 +5,7 @@ ...@@ -5,6 +5,7 @@
#include "qdict.h" #include "qdict.h"
#include "notify.h" #include "notify.h"
#include "monitor.h" #include "monitor.h"
#include "trace.h"
/* keyboard/mouse support */ /* keyboard/mouse support */
...@@ -202,11 +203,13 @@ static inline DisplaySurface* qemu_create_displaysurface(DisplayState *ds, int w ...@@ -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) 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); return ds->allocator->resize_displaysurface(ds->surface, width, height);
} }
static inline void qemu_free_displaysurface(DisplayState *ds) static inline void qemu_free_displaysurface(DisplayState *ds)
{ {
trace_displaysurface_free(ds, ds->surface);
ds->allocator->free_displaysurface(ds->surface); ds->allocator->free_displaysurface(ds->surface);
} }
......
...@@ -658,3 +658,7 @@ dma_aio_cancel(void *dbs) "dbs=%p" ...@@ -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_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_bdrv_cb(void *dbs, int ret) "dbs=%p ret=%d"
dma_map_wait(void *dbs) "dbs=%p" 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"
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册