From patchwork Wed Sep 12 13:13:27 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Alon Levy X-Patchwork-Id: 183365 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 F0B4D2C0089 for ; Wed, 12 Sep 2012 23:14:29 +1000 (EST) Received: from localhost ([::1]:39476 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TBmlv-0006rj-RJ for incoming@patchwork.ozlabs.org; Wed, 12 Sep 2012 09:14:27 -0400 Received: from eggs.gnu.org ([208.118.235.92]:36075) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TBmlN-0005ca-6X for qemu-devel@nongnu.org; Wed, 12 Sep 2012 09:13:58 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1TBmlH-0008OZ-GS for qemu-devel@nongnu.org; Wed, 12 Sep 2012 09:13:53 -0400 Received: from mx1.redhat.com ([209.132.183.28]:55952) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TBmlH-0008OS-7t for qemu-devel@nongnu.org; Wed, 12 Sep 2012 09:13:47 -0400 Received: from int-mx12.intmail.prod.int.phx2.redhat.com (int-mx12.intmail.prod.int.phx2.redhat.com [10.5.11.25]) by mx1.redhat.com (8.14.4/8.14.4) with ESMTP id q8CDDkD5021091 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK); Wed, 12 Sep 2012 09:13:46 -0400 Received: from localhost.localdomain (vpn-8-99.rdu.redhat.com [10.11.8.99]) by int-mx12.intmail.prod.int.phx2.redhat.com (8.14.4/8.14.4) with ESMTP id q8CDDe00008777; Wed, 12 Sep 2012 09:13:44 -0400 From: Alon Levy To: spice-devel@freedesktop.org, kraxel@redhat.com, hdegoede@redhat.com, qemu-devel@nongnu.org Date: Wed, 12 Sep 2012 16:13:27 +0300 Message-Id: <1347455618-2465-3-git-send-email-alevy@redhat.com> In-Reply-To: <1347455618-2465-1-git-send-email-alevy@redhat.com> References: <1347455618-2465-1-git-send-email-alevy@redhat.com> X-Scanned-By: MIMEDefang 2.68 on 10.5.11.25 X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 209.132.183.28 Subject: [Qemu-devel] [PATCH 2/3] qxl: add trace-event for QXL_IO_LOG 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 Signed-off-by: Alon Levy --- hw/qxl.c | 1 + trace-events | 1 + 2 files changed, 2 insertions(+) diff --git a/hw/qxl.c b/hw/qxl.c index 94eb3c8..12dfc79 100644 --- a/hw/qxl.c +++ b/hw/qxl.c @@ -1503,6 +1503,7 @@ async_common: qxl_set_mode(d, val, 0); break; case QXL_IO_LOG: + trace_qxl_io_log(d->id, d->ram->log_buf); if (d->guestdebug) { fprintf(stderr, "qxl/guest-%d: %" PRId64 ": %s", d->id, qemu_get_clock_ns(vm_clock), d->ram->log_buf); diff --git a/trace-events b/trace-events index 83b332c..564b773 100644 --- a/trace-events +++ b/trace-events @@ -924,6 +924,7 @@ qxl_interface_update_area_complete_rest(int qid, uint32_t num_updated_rects) "%d qxl_interface_update_area_complete_overflow(int qid, int max) "%d max=%d" qxl_interface_update_area_complete_schedule_bh(int qid, uint32_t num_dirty) "%d #dirty=%d" qxl_io_destroy_primary_ignored(int qid, const char *mode) "%d %s" +qxl_io_log(int qid, const uint8_t *str) "%d %s" qxl_io_read_unexpected(int qid) "%d" qxl_io_unexpected_vga_mode(int qid, uint64_t addr, uint64_t val, const char *desc) "%d 0x%"PRIx64"=%"PRIu64" (%s)" qxl_io_write(int qid, const char *mode, uint64_t addr, uint64_t val, unsigned size, int async) "%d %s addr=%"PRIu64 " val=%"PRIu64" size=%u async=%d"