Received: from eggs.gnu.org ([208.118.235.92]:50404) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1S74Wj-0006wj-Av for qemu-devel@nongnu.org; Mon, 12 Mar 2012 08:39:10 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1S74WW-0004EK-Mq for qemu-devel@nongnu.org; Mon, 12 Mar 2012 08:38:59 -0400 Received: from e06smtp12.uk.ibm.com ([195.75.94.108]:47010) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1S74WW-0004Bs-E0 for qemu-devel@nongnu.org; Mon, 12 Mar 2012 08:38:48 -0400 Received: from /spool/local by e06smtp12.uk.ibm.com with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted for from ; Mon, 12 Mar 2012 12:38:34 -0000 Received: from d06av10.portsmouth.uk.ibm.com (d06av10.portsmouth.uk.ibm.com [9.149.37.251]) by d06nrmr1707.portsmouth.uk.ibm.com (8.13.8/8.13.8/NCO v10.0) with ESMTP id q2CCcDv82531388 for ; Mon, 12 Mar 2012 12:38:13 GMT Received: from d06av10.portsmouth.uk.ibm.com (loopback [127.0.0.1]) by d06av10.portsmouth.uk.ibm.com (8.14.4/8.13.1/NCO v10.0 AVout) with ESMTP id q2BMT7d0017727 for ; Sun, 11 Mar 2012 18:29:07 -0400 From: Stefan Hajnoczi Date: Mon, 12 Mar 2012 12:38:01 +0000 Message-Id: <1331555882-31828-7-git-send-email-stefanha@linux.vnet.ibm.com> In-Reply-To: <1331555882-31828-1-git-send-email-stefanha@linux.vnet.ibm.com> References: <1331555882-31828-1-git-send-email-stefanha@linux.vnet.ibm.com> Subject: [Qemu-devel] [PATCH 6/7] console: add some trace events List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Cc: Blue Swirl , Anthony Liguori , Alon Levy , Stefan Hajnoczi From: Alon Levy Signed-off-by: Alon Levy Signed-off-by: Stefan Hajnoczi --- 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