From nobody Tue Feb 10 20:14:31 2026 Delivered-To: importer@patchew.org Received-SPF: pass (zoho.com: domain of gnu.org designates 208.118.235.17 as permitted sender) client-ip=208.118.235.17; envelope-from=qemu-devel-bounces+importer=patchew.org@nongnu.org; helo=lists.gnu.org; Authentication-Results: mx.zohomail.com; dkim=fail; spf=pass (zoho.com: domain of gnu.org designates 208.118.235.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org Return-Path: Received: from lists.gnu.org (lists.gnu.org [208.118.235.17]) by mx.zohomail.com with SMTPS id 1529601407673963.3396751578997; Thu, 21 Jun 2018 10:16:47 -0700 (PDT) Received: from localhost ([::1]:56798 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fW3CQ-0007Aa-TF for importer@patchew.org; Thu, 21 Jun 2018 13:16:46 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:50453) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fW39N-0004zp-Fl for qemu-devel@nongnu.org; Thu, 21 Jun 2018 13:13:38 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1fW39M-0002FH-JE for qemu-devel@nongnu.org; Thu, 21 Jun 2018 13:13:37 -0400 Received: from mail-qk0-x236.google.com ([2607:f8b0:400d:c09::236]:38581) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1fW39M-0002Ef-DG; Thu, 21 Jun 2018 13:13:36 -0400 Received: by mail-qk0-x236.google.com with SMTP id y4-v6so2171231qka.5; Thu, 21 Jun 2018 10:13:36 -0700 (PDT) Received: from x1.local ([138.117.48.222]) by smtp.gmail.com with ESMTPSA id t14-v6sm3166159qtp.65.2018.06.21.10.13.32 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 21 Jun 2018 10:13:35 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=sender:from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=/frgxobt9nSy6nD3uYgdNdqiXXOrz9xz5e63ZrBsHRw=; b=aD8Z85rdQ1Ux0qSyvzfZS1I2wvta8NRj0QBpLODYQZ+zA+45FhUGbvlTZe2O/w+VBw tlU07NUnLa9rlYR+QlVM1vQP/AXfqaRL7M3ZHsg9rSv19V8Ju5KVpxoD15JvHnwS1X9w TGobr5vjdldrdtUPC//WHWUyGkBn8HNFFjFqA0QmMexbWlnOKUS2amoLYjghT0OOKUtD xAHrbxktQ9dYIFoVFfiwrJRTGdJeCw/bs+B0uGMaQlTOre61DozT2uvNn+E8koTxQMHI qHuZqR9Mybdd4EnI9RIHvwrBqu6zCur6oT27NL2TjR7mxYRhopcSGtXq5yFo+AoH7xZ/ voEQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:sender:from:to:cc:subject:date:message-id :in-reply-to:references:mime-version:content-transfer-encoding; bh=/frgxobt9nSy6nD3uYgdNdqiXXOrz9xz5e63ZrBsHRw=; b=gHlWwUKtdfbUPi6DrmOfEYkFmXFU5nsiYHO6Mu4PpL9lprkx8qUpHePGM/3MPggfvY O6+/W5dMqkG8DNkzM0x9Z5EYR5gkSOfgEsAHoxaqLdwHKVl5DboWxyomwkE8PdczJvoT 3g9eKjVw3jYoBDPGphRbBr2cWXa/EEjFWOfgVp+Jpxms13XvbGdm95sENc/68Z5NkL3w R/ZlRX6IOymTn/XxEGAvUZv/1HWI/b8nbogXixXqMF/BXYY3ErHKIsm0zIj6O8kuGANa fE3gSJzfZ0DgM9m5+e6Vez6Ph/kEexeXBJ0X9R7k1XCjTF6K/Hqfc1PpvUR07fN5hxvo v6hg== X-Gm-Message-State: APt69E2I5KiXHdVTXDmY+N2h1zpBJvhH14kZlD1z9obhmZbTP3f3tfWn I9MuyRj/ZxR1P5bpS3iHtC0= X-Google-Smtp-Source: ADUXVKKT6dJzUBcTMVMtAWcC6zdNrruZuOrR1bRxVQFVIOThybJbz9iXH2tXTecAYSek/adRkCEivw== X-Received: by 2002:a37:350a:: with SMTP id c10-v6mr21748877qka.388.1529601215582; Thu, 21 Jun 2018 10:13:35 -0700 (PDT) From: =?UTF-8?q?Philippe=20Mathieu-Daud=C3=A9?= To: Stefan Hajnoczi Date: Thu, 21 Jun 2018 14:12:56 -0300 Message-Id: <20180621171257.14897-11-f4bug@amsat.org> X-Mailer: git-send-email 2.18.0.rc2 In-Reply-To: <20180621171257.14897-1-f4bug@amsat.org> References: <20180621171257.14897-1-f4bug@amsat.org> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 2607:f8b0:400d:c09::236 Subject: [Qemu-devel] [PATCH 10/11] hw/block/fdc: Convert from FLOPPY_DPRINTF() macro to trace events X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Kevin Wolf , qemu-devel@nongnu.org, "open list:Floppy" , qemu-trivial@nongnu.org, =?UTF-8?q?Philippe=20Mathieu-Daud=C3=A9?= , Max Reitz , John Snow Errors-To: qemu-devel-bounces+importer=patchew.org@nongnu.org Sender: "Qemu-devel" X-ZohoMail-DKIM: fail (Header signature does not verify) X-ZohoMail: RDKM_2 RSF_0 Z_629925259 SPT_0 Signed-off-by: Philippe Mathieu-Daud=C3=A9 Reviewed-by: John Snow --- hw/block/fdc.c | 6 +++--- hw/block/trace-events | 4 ++++ 2 files changed, 7 insertions(+), 3 deletions(-) diff --git a/hw/block/fdc.c b/hw/block/fdc.c index cd29e27d8f..c7b4fe9b3e 100644 --- a/hw/block/fdc.c +++ b/hw/block/fdc.c @@ -40,6 +40,7 @@ #include "sysemu/blockdev.h" #include "sysemu/sysemu.h" #include "qemu/log.h" +#include "trace.h" =20 /********************************************************/ /* debug Floppy devices */ @@ -934,7 +935,7 @@ static uint32_t fdctrl_read (void *opaque, uint32_t reg) retval =3D (uint32_t)(-1); break; } - FLOPPY_DPRINTF("read reg%d: 0x%02x\n", reg & 7, retval); + trace_fdc_ioport_read(reg, retval); =20 return retval; } @@ -943,9 +944,8 @@ static void fdctrl_write (void *opaque, uint32_t reg, u= int32_t value) { FDCtrl *fdctrl =3D opaque; =20 - FLOPPY_DPRINTF("write reg%d: 0x%02x\n", reg & 7, value); - reg &=3D 7; + trace_fdc_ioport_write(reg, value); switch (reg) { case FD_REG_DOR: fdctrl_write_dor(fdctrl, value); diff --git a/hw/block/trace-events b/hw/block/trace-events index 6b9e733412..d842c45409 100644 --- a/hw/block/trace-events +++ b/hw/block/trace-events @@ -1,5 +1,9 @@ # See docs/devel/tracing.txt for syntax documentation. =20 +# hw/block/fdc.c +fdc_ioport_read(uint8_t reg, uint8_t value) "read reg 0x%02x val 0x%02x" +fdc_ioport_write(uint8_t reg, uint8_t value) "write reg 0x%02x val 0x%02x" + # hw/block/virtio-blk.c virtio_blk_req_complete(void *vdev, void *req, int status) "vdev %p req %p= status %d" virtio_blk_rw_complete(void *vdev, void *req, int ret) "vdev %p req %p ret= %d" --=20 2.18.0.rc2