{"id":807303,"url":"http://patchwork.ozlabs.org/api/1.0/covers/807303/?format=json","project":{"id":14,"url":"http://patchwork.ozlabs.org/api/1.0/projects/14/?format=json","name":"QEMU Development","link_name":"qemu-devel","list_id":"qemu-devel.nongnu.org","list_email":"qemu-devel@nongnu.org","web_url":"","scm_url":"","webscm_url":""},"msgid":"<20170829204934.9039-1-jsnow@redhat.com>","date":"2017-08-29T20:49:25","name":"[v2,0/9] IDE: replace printfs with tracing","submitter":{"id":64343,"url":"http://patchwork.ozlabs.org/api/1.0/people/64343/?format=json","name":"John Snow","email":"jsnow@redhat.com"},"series":[{"id":474,"url":"http://patchwork.ozlabs.org/api/1.0/series/474/?format=json","date":"2017-08-29T20:49:27","name":"IDE: replace printfs with tracing","version":2,"mbox":"http://patchwork.ozlabs.org/series/474/mbox/"}],"headers":{"Return-Path":"<qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org>","X-Original-To":"incoming@patchwork.ozlabs.org","Delivered-To":"patchwork-incoming@bilbo.ozlabs.org","Authentication-Results":["ozlabs.org;\n\tspf=pass (mailfrom) smtp.mailfrom=nongnu.org\n\t(client-ip=2001:4830:134:3::11; helo=lists.gnu.org;\n\tenvelope-from=qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org;\n\treceiver=<UNKNOWN>)","ext-mx05.extmail.prod.ext.phx2.redhat.com;\n\tdmarc=none (p=none dis=none) header.from=redhat.com","ext-mx05.extmail.prod.ext.phx2.redhat.com;\n\tspf=fail smtp.mailfrom=jsnow@redhat.com"],"Received":["from lists.gnu.org (lists.gnu.org [IPv6:2001:4830:134:3::11])\n\t(using TLSv1 with cipher AES256-SHA (256/256 bits))\n\t(No client certificate requested)\n\tby ozlabs.org (Postfix) with ESMTPS id 3xhgq9121Lz9sMN\n\tfor <incoming@patchwork.ozlabs.org>;\n\tWed, 30 Aug 2017 06:54:13 +1000 (AEST)","from localhost ([::1]:46916 helo=lists.gnu.org)\n\tby lists.gnu.org with esmtp (Exim 4.71) (envelope-from\n\t<qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org>)\n\tid 1dmnWV-00075B-0E\n\tfor incoming@patchwork.ozlabs.org; Tue, 29 Aug 2017 16:54:11 -0400","from eggs.gnu.org ([2001:4830:134:3::10]:50052)\n\tby lists.gnu.org with esmtp (Exim 4.71)\n\t(envelope-from <jsnow@redhat.com>) id 1dmnSF-0003av-GZ\n\tfor qemu-devel@nongnu.org; Tue, 29 Aug 2017 16:49:48 -0400","from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)\n\t(envelope-from <jsnow@redhat.com>) id 1dmnSE-0001uB-E7\n\tfor qemu-devel@nongnu.org; Tue, 29 Aug 2017 16:49:47 -0400","from mx1.redhat.com ([209.132.183.28]:34320)\n\tby eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32)\n\t(Exim 4.71) (envelope-from <jsnow@redhat.com>)\n\tid 1dmnS9-0001qn-N9; Tue, 29 Aug 2017 16:49:41 -0400","from smtp.corp.redhat.com\n\t(int-mx05.intmail.prod.int.phx2.redhat.com [10.5.11.15])\n\t(using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits))\n\t(No client certificate requested)\n\tby mx1.redhat.com (Postfix) with ESMTPS id ADB5AC9D37;\n\tTue, 29 Aug 2017 20:49:39 +0000 (UTC)","from probe.bos.redhat.com (dhcp-17-231.bos.redhat.com\n\t[10.18.17.231])\n\tby smtp.corp.redhat.com (Postfix) with ESMTP id 382F96F9C3;\n\tTue, 29 Aug 2017 20:49:35 +0000 (UTC)"],"DMARC-Filter":"OpenDMARC Filter v1.3.2 mx1.redhat.com ADB5AC9D37","From":"John Snow <jsnow@redhat.com>","To":"qemu-block@nongnu.org","Date":"Tue, 29 Aug 2017 16:49:25 -0400","Message-Id":"<20170829204934.9039-1-jsnow@redhat.com>","X-Scanned-By":"MIMEDefang 2.79 on 10.5.11.15","X-Greylist":"Sender IP whitelisted, not delayed by milter-greylist-4.5.16\n\t(mx1.redhat.com [10.5.110.29]);\n\tTue, 29 Aug 2017 20:49:39 +0000 (UTC)","X-detected-operating-system":"by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic]\n\t[fuzzy]","X-Received-From":"209.132.183.28","Subject":"[Qemu-devel] [PATCH v2 0/9] IDE: replace printfs with tracing","X-BeenThere":"qemu-devel@nongnu.org","X-Mailman-Version":"2.1.21","Precedence":"list","List-Id":"<qemu-devel.nongnu.org>","List-Unsubscribe":"<https://lists.nongnu.org/mailman/options/qemu-devel>,\n\t<mailto:qemu-devel-request@nongnu.org?subject=unsubscribe>","List-Archive":"<http://lists.nongnu.org/archive/html/qemu-devel/>","List-Post":"<mailto:qemu-devel@nongnu.org>","List-Help":"<mailto:qemu-devel-request@nongnu.org?subject=help>","List-Subscribe":"<https://lists.nongnu.org/mailman/listinfo/qemu-devel>,\n\t<mailto:qemu-devel-request@nongnu.org?subject=subscribe>","Cc":"John Snow <jsnow@redhat.com>, qemu-devel@nongnu.org, f4bug@amsat.org","Errors-To":"qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org","Sender":"\"Qemu-devel\"\n\t<qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org>"},"content":"Wherever possible, replace all printfs with proper tracing.\nIn most places I've tried to do a straight replacement, but\nforthcoming patches may calibrate the tracing to be a little nicer.\n\nFor now, it's nice to just remove the all-or-nothing tracing.\n\nFor V2, I opted to leave in the nearly redundant tracers for now\nwith their individual names so that they can be targeted individually.\n\nKey:\n[----] : patches are identical\n[####] : number of functional differences between upstream/downstream patch\n[down] : patch is downstream-only\nThe flags [FC] indicate (F)unctional and (C)ontextual differences, respectively\n\n001/9:[0020] [FC] 'IDE: replace DEBUG_IDE with tracing system'\n002/9:[0004] [FC] 'IDE: Add register hints to tracing'\n003/9:[0005] [FC] 'IDE: add tracing for data ports'\n004/9:[0004] [FC] 'ATAPI: Replace DEBUG_IDE_ATAPI with tracing events'\n005/9:[0013] [FC] 'IDE: replace DEBUG_AIO with trace events'\n006/9:[0007] [FC] 'AHCI: Replace DPRINTF with trace-events'\n007/9:[----] [--] 'AHCI: Rework IRQ constants'\n008/9:[0001] [FC] 'AHCI: pretty-print FIS to buffer instead of stderr'\n009/9:[----] [--] 'AHCI: remove DPRINTF macro'\n\n===\nv2:\n===\n\n01: Rehabilitate commit message.\n    Fix switch () statement spacing. (Eric)\n    Adjust spacing in ide-tracing file to maintain columns.\n    Change filename orderings in trace-events. (Eric)\n    Fixed newline issue in trace-events. (Eric)\n\n02: Context / Added R-B.\n\n03: Added trace-events items to appropriate patch (removed from 04) (Eric)\n    Added a verbose warning for data tracers (Eric)\n\n04: Shifted items to 03 (Eric)\n    Fixed newline issue (Eric)\n\n05: Changed __END to __COUNT (Philippe)\n    Removed __BEGIN enumerator (Philippe)\n\n06: Added more information to unknown write (Philippe)\n\n08: Context (Entropy)\n\nJohn Snow (9):\n  IDE: replace DEBUG_IDE with tracing system\n  IDE: Add register hints to tracing\n  IDE: add tracing for data ports\n  ATAPI: Replace DEBUG_IDE_ATAPI with tracing events\n  IDE: replace DEBUG_AIO with trace events\n  AHCI: Replace DPRINTF with trace-events\n  AHCI: Rework IRQ constants\n  AHCI: pretty-print FIS to buffer instead of stderr\n  AHCI: remove DPRINTF macro\n\n Makefile.objs             |   1 +\n hw/ide/ahci.c             | 269 ++++++++++++++++++++++++++--------------------\n hw/ide/ahci_internal.h    |  44 ++++++--\n hw/ide/atapi.c            |  69 +++++-------\n hw/ide/cmd646.c           |  10 +-\n hw/ide/core.c             | 178 +++++++++++++++++++-----------\n hw/ide/pci.c              |  17 +--\n hw/ide/piix.c             |  11 +-\n hw/ide/trace-events       | 111 +++++++++++++++++++\n hw/ide/via.c              |  10 +-\n include/hw/ide/internal.h |   8 +-\n 11 files changed, 456 insertions(+), 272 deletions(-)\n create mode 100644 hw/ide/trace-events"}