From patchwork Mon Mar 12 12:38:02 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Stefan Hajnoczi X-Patchwork-Id: 146092 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from lists.gnu.org (lists.gnu.org [208.118.235.17]) (using TLSv1 with cipher AES256-SHA (256/256 bits)) (Client did not present a certificate) by ozlabs.org (Postfix) with ESMTPS id A2319B6FA8 for ; Mon, 12 Mar 2012 23:38:49 +1100 (EST) Received: from localhost ([::1]:55824 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1S74WV-0006Eh-Am for incoming@patchwork.ozlabs.org; Mon, 12 Mar 2012 08:38:47 -0400 Received: from eggs.gnu.org ([208.118.235.92]:50367) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1S74WK-0005wN-DK for qemu-devel@nongnu.org; Mon, 12 Mar 2012 08:38:42 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1S74WC-0004B8-Lz for qemu-devel@nongnu.org; Mon, 12 Mar 2012 08:38:35 -0400 Received: from e06smtp18.uk.ibm.com ([195.75.94.114]:59354) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1S74WC-0004AX-DU for qemu-devel@nongnu.org; Mon, 12 Mar 2012 08:38:28 -0400 Received: from /spool/local by e06smtp18.uk.ibm.com with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted for from ; Mon, 12 Mar 2012 12:38:24 -0000 Received: from d06nrmr1507.portsmouth.uk.ibm.com (9.149.38.233) by e06smtp18.uk.ibm.com (192.168.101.148) with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted; Mon, 12 Mar 2012 12:38:14 -0000 Received: from d06av11.portsmouth.uk.ibm.com (d06av11.portsmouth.uk.ibm.com [9.149.37.252]) by d06nrmr1507.portsmouth.uk.ibm.com (8.13.8/8.13.8/NCO v10.0) with ESMTP id q2CCcDCx1904668 for ; Mon, 12 Mar 2012 12:38:13 GMT Received: from d06av11.portsmouth.uk.ibm.com (loopback [127.0.0.1]) by d06av11.portsmouth.uk.ibm.com (8.14.4/8.13.1/NCO v10.0 AVout) with ESMTP id q2CCcCDY017457 for ; Mon, 12 Mar 2012 06:38:13 -0600 Received: from localhost (stefanha-thinkpad.manchester-maybrook.uk.ibm.com [9.174.219.44]) by d06av11.portsmouth.uk.ibm.com (8.14.4/8.13.1/NCO v10.0 AVin) with ESMTP id q2CCcCsq017454; Mon, 12 Mar 2012 06:38:12 -0600 From: Stefan Hajnoczi To: Date: Mon, 12 Mar 2012 12:38:02 +0000 Message-Id: <1331555882-31828-8-git-send-email-stefanha@linux.vnet.ibm.com> X-Mailer: git-send-email 1.7.9.1 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> x-cbid: 12031212-6892-0000-0000-00000144B5ED X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 195.75.94.114 Cc: Blue Swirl , Anthony Liguori , Alon Levy , Stefan Hajnoczi Subject: [Qemu-devel] [PATCH 7/7] vga: add trace event for ppm_save X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org Sender: qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org From: Alon Levy Signed-off-by: Alon Levy Signed-off-by: Stefan Hajnoczi --- hw/vga.c | 2 ++ trace-events | 3 +++ 2 files changed, 5 insertions(+), 0 deletions(-) diff --git a/hw/vga.c b/hw/vga.c index 5994f43..6dc98f6 100644 --- a/hw/vga.c +++ b/hw/vga.c @@ -30,6 +30,7 @@ #include "pixel_ops.h" #include "qemu-timer.h" #include "xen.h" +#include "trace.h" //#define DEBUG_VGA //#define DEBUG_VGA_MEM @@ -2372,6 +2373,7 @@ int ppm_save(const char *filename, struct DisplaySurface *ds) int ret; char *linebuf, *pbuf; + trace_ppm_save(filename, ds); f = fopen(filename, "wb"); if (!f) return -1; diff --git a/trace-events b/trace-events index 94c4a6f..dfe28ed 100644 --- a/trace-events +++ b/trace-events @@ -662,3 +662,6 @@ 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" + +# vga.c +ppm_save(const char *filename, void *display_surface) "%s surface=%p"