From nobody Tue Feb 10 11:15:35 2026 Delivered-To: importer@patchew.org Received-SPF: pass (zoho.com: domain of gnu.org designates 209.51.188.17 as permitted sender) client-ip=209.51.188.17; envelope-from=qemu-devel-bounces+importer=patchew.org@nongnu.org; helo=lists.gnu.org; Authentication-Results: mx.zohomail.com; spf=pass (zoho.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org ARC-Seal: i=1; a=rsa-sha256; t=1561916329; cv=none; d=zoho.com; s=zohoarc; b=M1QMBZRcQwMdPeO/2iL2/DgspWeQzNo6rONBrts6Ag7zpHVnwrbUIm5rrPIbsWTgQG93MVE9ms7RR9awVfHivFXYnQBbEYSGEKARtIxNHFzWCG4WaX5+s+QbsWjtiJwXEzHL0XOu0y4ErWgjq5n+x5xHE8Q8na+HlaV/Hbw+kQo= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zoho.com; s=zohoarc; t=1561916329; h=Date:From:In-Reply-To:List-Subscribe:List-Post:List-Id:List-Archive:List-Help:List-Unsubscribe:Message-ID:References:Sender:Subject:To:ARC-Authentication-Results; bh=qbz7HjpGO5OHQwtVdJAVnfbjEqL2G8F0It+Y5GJ3zQg=; b=R6RArOVhOMPTVpHPQbEWVRxx78GOQKoIr/Y0NaEPgNABrMpfrf7Q45CfiC18TtXZJBWqG71oFWoCr9Fj+2y53g0w9AMtQAVJSU4oqUguCEA5baKZKKCr8x+Cjkc+9g9VAgMxXKoMBDGFq3EYHp3CZPSSFSSfwGsieN39fdjijZ8= ARC-Authentication-Results: i=1; mx.zoho.com; spf=pass (zoho.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org Return-Path: Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mx.zohomail.com with SMTPS id 156191632909968.73083531869725; Sun, 30 Jun 2019 10:38:49 -0700 (PDT) Received: from localhost ([::1]:45824 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.86_2) (envelope-from ) id 1hhdmo-0004QU-1O for importer@patchew.org; Sun, 30 Jun 2019 13:38:46 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:58347) by lists.gnu.org with esmtp (Exim 4.86_2) (envelope-from ) id 1hhdjY-0000R7-Cx for qemu-devel@nongnu.org; Sun, 30 Jun 2019 13:35:25 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1hhdjX-0000YT-9b for qemu-devel@nongnu.org; Sun, 30 Jun 2019 13:35:24 -0400 Received: from mail.ilande.co.uk ([46.43.2.167]:40198 helo=mail.default.ilande.uk0.bigv.io) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1hhdjX-000826-3v for qemu-devel@nongnu.org; Sun, 30 Jun 2019 13:35:23 -0400 Received: from host109-146-132-17.range109-146.btcentralplus.com ([109.146.132.17] helo=kentang.home) by mail.default.ilande.uk0.bigv.io with esmtpsa (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.89) (envelope-from ) id 1hhdfr-0001xd-5d for qemu-devel@nongnu.org; Sun, 30 Jun 2019 18:31:35 +0100 From: Mark Cave-Ayland To: qemu-devel@nongnu.org Date: Sun, 30 Jun 2019 18:31:59 +0100 Message-Id: <20190630173203.9620-2-mark.cave-ayland@ilande.co.uk> X-Mailer: git-send-email 2.11.0 In-Reply-To: <20190630173203.9620-1-mark.cave-ayland@ilande.co.uk> References: <20190630173203.9620-1-mark.cave-ayland@ilande.co.uk> X-SA-Exim-Connect-IP: 109.146.132.17 X-SA-Exim-Mail-From: mark.cave-ayland@ilande.co.uk X-SA-Exim-Version: 4.2.1 (built Tue, 02 Aug 2016 21:08:31 +0000) X-SA-Exim-Scanned: Yes (on mail.default.ilande.uk0.bigv.io) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 46.43.2.167 Subject: [Qemu-devel] [PATCH 1/5] sunhme: add trace event for logging PCI IRQ X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: qemu-devel-bounces+importer=patchew.org@nongnu.org Sender: "Qemu-devel" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Signed-off-by: Mark Cave-Ayland --- hw/net/sunhme.c | 2 ++ hw/net/trace-events | 1 + 2 files changed, 3 insertions(+) diff --git a/hw/net/sunhme.c b/hw/net/sunhme.c index 1ebaee3c82..6d660a8238 100644 --- a/hw/net/sunhme.c +++ b/hw/net/sunhme.c @@ -209,6 +209,8 @@ static void sunhme_update_irq(SunHMEState *s) } =20 level =3D (seb ? 1 : 0); + trace_sunhme_update_irq(mifmask, mif, sebmask, seb, level); + pci_set_irq(d, level); } =20 diff --git a/hw/net/trace-events b/hw/net/trace-events index 3cd9e122df..d16273c579 100644 --- a/hw/net/trace-events +++ b/hw/net/trace-events @@ -359,6 +359,7 @@ sunhme_rx_filter_reject(void) "rejecting incoming frame" sunhme_rx_filter_accept(void) "accepting incoming frame" sunhme_rx_desc(uint32_t addr, int offset, uint32_t status, int len, int cr= , int nr) "addr 0x%"PRIx32"(+0x%x) status 0x%"PRIx32 " len %d (ring %d/%d)" sunhme_rx_xsum_calc(uint16_t xsum) "calculated incoming xsum as 0x%x" +sunhme_update_irq(uint32_t mifmask, uint32_t mif, uint32_t sebmask, uint32= _t seb, int level) "mifmask: 0x%x mif: 0x%x sebmask: 0x%x seb: 0x%x lev= el: %d" =20 # virtio-net.c virtio_net_announce_notify(void) "" --=20 2.11.0