From patchwork Thu Feb 14 10:47:13 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Laurent Vivier X-Patchwork-Id: 10812429 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 876A113B4 for ; Thu, 14 Feb 2019 10:48:23 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 743AE2D6AD for ; Thu, 14 Feb 2019 10:48:23 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 684482D6B1; Thu, 14 Feb 2019 10:48:23 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-7.9 required=2.0 tests=BAYES_00,MAILING_LIST_MULTI, RCVD_IN_DNSWL_HI autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 0DFE32D6AD for ; Thu, 14 Feb 2019 10:48:23 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2406740AbfBNKsW (ORCPT ); Thu, 14 Feb 2019 05:48:22 -0500 Received: from mout.kundenserver.de ([212.227.126.135]:48939 "EHLO mout.kundenserver.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2395372AbfBNKsC (ORCPT ); Thu, 14 Feb 2019 05:48:02 -0500 Received: from localhost.localdomain ([78.238.229.36]) by mrelayeu.kundenserver.de (mreue010 [212.227.15.167]) with ESMTPSA (Nemesis) id 1Macf4-1hWKGR1PXm-00cAA8; Thu, 14 Feb 2019 11:47:45 +0100 From: Laurent Vivier To: qemu-devel@nongnu.org Cc: Laurent Vivier , Paolo Bonzini , kvm@vger.kernel.org, libvir-list@redhat.com, "Michael S. Tsirkin" , Eric Blake , Markus Armbruster , Michael Tokarev , "Dr. David Alan Gilbert" , qemu-trivial@nongnu.org, Gerd Hoffmann , Artyom Tarasenko , Kamil Rytarowski , Mark Cave-Ayland , =?utf-8?q?Philippe_Mathie?= =?utf-8?q?u-Daud=C3=A9?= , Cornelia Huck Subject: [PULL 10/14] kvm: Add kvm_set_ioeventfd* traces Date: Thu, 14 Feb 2019 11:47:13 +0100 Message-Id: <20190214104717.3543-11-laurent@vivier.eu> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20190214104717.3543-1-laurent@vivier.eu> References: <20190214104717.3543-1-laurent@vivier.eu> MIME-Version: 1.0 X-Provags-ID: V03:K1:bn7cnTR+eiZqq/aJtEMxDtq3cvIV45cRfkXMqTtT6HyPuRIMM/0 doczfiGvxhpwHIp0S+DIT2g3QKjdm7mLVRW84orkdkUp1kc/imDBIvSNmFo92maXOCULrWt u/obgNZgjiIweAKgG9QimHwG4JUVJ1PomhAfg/vSTRSvupOdTRpBt+oKGw1vtocB3S5HpAs 7fSXE9WrNkVfjsf57p9/Q== X-UI-Out-Filterresults: notjunk:1;V03:K0:LzwBIm6mYS4=:G9glWamBRQMrNFzjY0Mozv 6MTLf8x01VKCKhk8OGu7r0ROQfe1s0xOjUx4XIj8qG0gS4mAqEvyIZw+DlSn/pAAQ27bQQVfA 7W0nn/h6OdaHOiDUcmAb7e3j5khkwqFALQ166DCdfG3vlz6a0Aq38sbLSHEAvdPCOKFPgf88k xjXMjwY+ucexOVmccU6wT/43aBp2Bi6mJ2vXX9RkLtqi08aLkaWUDSc6/yUiwL+/LOZONr4W/ UI+bw9ERLfW9NmIAa0ZGIIRY9mQaVcOzNPdRjN9Kb0Xzn20IMqyF3muXsunwiCKCdOCUm3TXV bfuy2WSyb17LapseAk9UeFY6rhI4AZiZjUo/oHZEsoWPlpHbksH7DZR5CoEvajdYTCMuec/ew 9rA3zEKhSYth/hjrwGF8Xypb/d4wI+GXvVMISstVDfUukh/XNQANwlkJscwGshBSGLxvtFJtB GwVikWbbBrMk+CLFln3ajA67ksFvQriHLb0uK/8str4BrmHYGDgAw+LNFLzoDWISq9KN1Eupa Uji6L5eJDYJ5BEheTycErwz+pItzVIE9LHxXGzixPxozIz2P6luycrFzz48VjGMOp1fL4FykR YTbxrOSwkSOSBIj4nU5x77yMCBhmhjsYZGWYMTq5qUgRcTk5g14jH6hFJxyEr7uAFy6hy5ZEn FX9D+qx9k8zcBlRHPSYSZjxErLW7ff4TApubGNA961MqWLttynS9HaaEk79VmL21egPlybmTD jPRm4SUV8Pm7QKYbYBB6hK51+anfNBGF5ztDH7iMEBWyf09usVcDBgpzOzA= Sender: kvm-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: kvm@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP From: "Dr. David Alan Gilbert" Add a couple of traces around the kvm_set_ioeventfd* calls. Signed-off-by: Dr. David Alan Gilbert Reviewed-by: Philippe Mathieu-Daudé Reviewed-by: Cornelia Huck Reviewed-by: Michael S. Tsirkin Message-Id: <20190212134758.10514-4-dgilbert@redhat.com> Signed-off-by: Laurent Vivier --- accel/kvm/kvm-all.c | 3 +++ accel/kvm/trace-events | 2 ++ 2 files changed, 5 insertions(+) diff --git a/accel/kvm/kvm-all.c b/accel/kvm/kvm-all.c index 4e1de942ce55..fd92b6f37547 100644 --- a/accel/kvm/kvm-all.c +++ b/accel/kvm/kvm-all.c @@ -657,6 +657,8 @@ static int kvm_set_ioeventfd_mmio(int fd, hwaddr addr, uint32_t val, .fd = fd, }; + trace_kvm_set_ioeventfd_mmio(fd, (uint64_t)addr, val, assign, size, + datamatch); if (!kvm_enabled()) { return -ENOSYS; } @@ -688,6 +690,7 @@ static int kvm_set_ioeventfd_pio(int fd, uint16_t addr, uint16_t val, .fd = fd, }; int r; + trace_kvm_set_ioeventfd_pio(fd, addr, val, assign, size, datamatch); if (!kvm_enabled()) { return -ENOSYS; } diff --git a/accel/kvm/trace-events b/accel/kvm/trace-events index 58e98efe5dea..8841025d6895 100644 --- a/accel/kvm/trace-events +++ b/accel/kvm/trace-events @@ -12,5 +12,7 @@ kvm_irqchip_commit_routes(void) "" kvm_irqchip_add_msi_route(char *name, int vector, int virq) "dev %s vector %d virq %d" kvm_irqchip_update_msi_route(int virq) "Updating MSI route virq=%d" kvm_irqchip_release_virq(int virq) "virq %d" +kvm_set_ioeventfd_mmio(int fd, uint64_t addr, uint32_t val, bool assign, uint32_t size, bool datamatch) "fd: %d @0x%" PRIx64 " val=0x%x assign: %d size: %d match: %d" +kvm_set_ioeventfd_pio(int fd, uint16_t addr, uint32_t val, bool assign, uint32_t size, bool datamatch) "fd: %d @0x%x val=0x%x assign: %d size: %d match: %d" kvm_set_user_memory(uint32_t slot, uint32_t flags, uint64_t guest_phys_addr, uint64_t memory_size, uint64_t userspace_addr, int ret) "Slot#%d flags=0x%x gpa=0x%"PRIx64 " size=0x%"PRIx64 " ua=0x%"PRIx64 " ret=%d"