From patchwork Mon Sep 2 10:17:33 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Gerd Hoffmann X-Patchwork-Id: 271866 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from lists.gnu.org (lists.gnu.org [IPv6:2001:4830:134:3::11]) (using TLSv1 with cipher AES256-SHA (256/256 bits)) (Client did not present a certificate) by ozlabs.org (Postfix) with ESMTPS id 11A752C009C for ; Mon, 2 Sep 2013 20:23:33 +1000 (EST) Received: from localhost ([::1]:38501 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VGRIA-00073a-VU for incoming@patchwork.ozlabs.org; Mon, 02 Sep 2013 06:23:30 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:35921) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VGRCj-0006U4-54 for qemu-devel@nongnu.org; Mon, 02 Sep 2013 06:17:59 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1VGRCa-0007QQ-Ni for qemu-devel@nongnu.org; Mon, 02 Sep 2013 06:17:53 -0400 Received: from mx1.redhat.com ([209.132.183.28]:36504) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VGRCa-0007Pz-GY for qemu-devel@nongnu.org; Mon, 02 Sep 2013 06:17:44 -0400 Received: from int-mx02.intmail.prod.int.phx2.redhat.com (int-mx02.intmail.prod.int.phx2.redhat.com [10.5.11.12]) by mx1.redhat.com (8.14.4/8.14.4) with ESMTP id r82AHg99004198 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK) for ; Mon, 2 Sep 2013 06:17:43 -0400 Received: from nilsson.home.kraxel.org (vpn1-7-100.ams2.redhat.com [10.36.7.100]) by int-mx02.intmail.prod.int.phx2.redhat.com (8.13.8/8.13.8) with ESMTP id r82AHfvu006994; Mon, 2 Sep 2013 06:17:42 -0400 Received: by nilsson.home.kraxel.org (Postfix, from userid 500) id 1F052804A6; Mon, 2 Sep 2013 12:17:40 +0200 (CEST) From: Gerd Hoffmann To: qemu-devel@nongnu.org Date: Mon, 2 Sep 2013 12:17:33 +0200 Message-Id: <1378117055-29620-10-git-send-email-kraxel@redhat.com> In-Reply-To: <1378117055-29620-1-git-send-email-kraxel@redhat.com> References: <1378117055-29620-1-git-send-email-kraxel@redhat.com> X-Scanned-By: MIMEDefang 2.67 on 10.5.11.12 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x X-Received-From: 209.132.183.28 Cc: Gerd Hoffmann Subject: [Qemu-devel] [PATCH 09/11] usb-hub: add tracepoint for status reports 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: Gerd Hoffmann --- hw/usb/dev-hub.c | 1 + trace-events | 1 + 2 files changed, 2 insertions(+) diff --git a/hw/usb/dev-hub.c b/hw/usb/dev-hub.c index e865a98..54f63c0 100644 --- a/hw/usb/dev-hub.c +++ b/hw/usb/dev-hub.c @@ -475,6 +475,7 @@ static void usb_hub_handle_data(USBDevice *dev, USBPacket *p) port->wPortChange_reported = port->wPortChange; } if (status != 0) { + trace_usb_hub_status_report(s->dev.addr, status); for(i = 0; i < n; i++) { buf[i] = status >> (8 * i); } diff --git a/trace-events b/trace-events index f849807..754c28c 100644 --- a/trace-events +++ b/trace-events @@ -411,6 +411,7 @@ usb_hub_set_port_feature(int addr, int nr, const char *f) "dev %d, port %d, feat usb_hub_clear_port_feature(int addr, int nr, const char *f) "dev %d, port %d, feature %s" usb_hub_attach(int addr, int nr) "dev %d, port %d" usb_hub_detach(int addr, int nr) "dev %d, port %d" +usb_hub_status_report(int addr, int status) "dev %d, status 0x%x" # hw/usb/dev-uas.c usb_uas_reset(int addr) "dev %d"