From nobody Mon Feb 9 12:26:46 2026 Delivered-To: importer@patchew.org Received-SPF: pass (zohomail.com: domain of redhat.com designates 216.205.24.124 as permitted sender) client-ip=216.205.24.124; envelope-from=philmd@redhat.com; helo=us-smtp-delivery-124.mimecast.com; Authentication-Results: mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of redhat.com designates 216.205.24.124 as permitted sender) smtp.mailfrom=philmd@redhat.com; dmarc=pass(p=none dis=none) header.from=redhat.com ARC-Seal: i=1; a=rsa-sha256; t=1603964031; cv=none; d=zohomail.com; s=zohoarc; b=Ihr3swFJ2rzl/cwyRoktOpixx/2g7wH4eE3HFB7fNf926OHE6Ef3vH2TwMoggorD+r/1mHuioZzYI4JCMeFUy9kZ8rsqrlDZT4pz+hMzzJXOD7Xxj1LE1qRQC1mF3KZXrgaiQSzbxjmzSajWLGMoLF6URLHpJcs5IDXncuuqn1c= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1603964031; h=Content-Type:Content-Transfer-Encoding:Cc:Date:From:In-Reply-To:MIME-Version:Message-ID:References:Subject:To; bh=EBb5GrRIOVLLA2GDg9frMwfzobl3y/7Xq37zU2+GEk8=; b=hFlhcMjoM/oWGCzQJerCJ22T0EJnXudDwcR7sGDTmDfuq2OICK73ABHdGcL9izimJgJbm1cU+DPuWEnnwX8s2NA88tQ0EarkgpO7aJE0IqLkwY3YbBteY2g2Bst4BaQ9pPVOGZ78geJpusGvQpiAcLToyDbZbEIIHhbgipNidOU= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of redhat.com designates 216.205.24.124 as permitted sender) smtp.mailfrom=philmd@redhat.com; dmarc=pass header.from= (p=none dis=none) header.from= Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [216.205.24.124]) by mx.zohomail.com with SMTPS id 1603964031043737.3832321217565; Thu, 29 Oct 2020 02:33:51 -0700 (PDT) Received: from mail-ej1-f70.google.com (mail-ej1-f70.google.com [209.85.218.70]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-307-0yLjxToUPImDddy3Q_H0gA-1; Thu, 29 Oct 2020 05:33:48 -0400 Received: by mail-ej1-f70.google.com with SMTP id t1so923028ejb.21 for ; Thu, 29 Oct 2020 02:33:47 -0700 (PDT) Return-Path: Return-Path: Received: from x1w.redhat.com (234.red-83-42-66.dynamicip.rima-tde.net. [83.42.66.234]) by smtp.gmail.com with ESMTPSA id j20sm1184367edt.4.2020.10.29.02.33.45 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 29 Oct 2020 02:33:46 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1603964030; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=EBb5GrRIOVLLA2GDg9frMwfzobl3y/7Xq37zU2+GEk8=; b=fK6t4ldTLnsIUojM9BdKo85YWSRKbkkEqtS1Ub/OXA9wXkaF+RpRphGgXAwqbB+1Zpxwb/ m2mhiIOV+3dAHrRkFy4x2Gj5cgg9IqcLOO/ygbjMaeynF9e3cLnlzMIxktut8pKRtHwoVE 09pxQBzTDb6tqXC6IkvGMD/wrnEPyAc= X-MC-Unique: 0yLjxToUPImDddy3Q_H0gA-1 X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=EBb5GrRIOVLLA2GDg9frMwfzobl3y/7Xq37zU2+GEk8=; b=HxtuW5S6K6GlqzoRkhdTQPhpBgiDM713fa2bhn+5xz0EcI6KQRSw4aAW1QslTcuGpI NCeQGpVXcpkkCLEwB8lwCoa2WbXW5xJMpdPKL8FFqRJ4REXjxvHP4B2IWsIui/ZuhbzU TV0VF7gf6cAt0wmIcPJN5aTw0RF/zOYubsmFsvSWr7AjXnPBlMYlfgnIJL5oKKzGEXje 2wCzi1zXIEHDSiIfR3XHaSfE+pPyu+nLKTrdW8UcLckFObovrkKBOYDdVnAPRAowTZVD OeMYV5PaXNi+1UMPCZl9mfRYfXfICXQ9iDpSgi9qa3XviRSyOhsaVb57id5YAD7oeInq w33w== X-Gm-Message-State: AOAM533Kc5LvkIHf5hUXkf49XFiiWZEMzpfqmvo/VQeYFML/NQUV6oDl CdvzlQRrU7hRHjg1F95h1jliraml3QTAA93t4SOYV1FMG6bQERjL4l09+eeyARAWDIC8CXGwAtx VJg7IBWDH5vzSJg== X-Received: by 2002:a17:906:7210:: with SMTP id m16mr3319989ejk.490.1603964026928; Thu, 29 Oct 2020 02:33:46 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwimITMNtQ8O1OpBtiouA1FKrkJa7uHuXVtHe9G82z1AC8mSDLoBSF94Qk2MLwKAL7koIYlpw== X-Received: by 2002:a17:906:7210:: with SMTP id m16mr3319980ejk.490.1603964026799; Thu, 29 Oct 2020 02:33:46 -0700 (PDT) From: =?UTF-8?q?Philippe=20Mathieu-Daud=C3=A9?= To: qemu-devel@nongnu.org Cc: qemu-block@nongnu.org, Stefan Hajnoczi , Kevin Wolf , Klaus Jensen , Eric Auger , Max Reitz , Fam Zheng , Keith Busch , =?UTF-8?q?Philippe=20Mathieu-Daud=C3=A9?= Subject: [PATCH-for-5.2 v2 07/25] block/nvme: Trace queue pair creation/deletion Date: Thu, 29 Oct 2020 10:32:48 +0100 Message-Id: <20201029093306.1063879-8-philmd@redhat.com> X-Mailer: git-send-email 2.26.2 In-Reply-To: <20201029093306.1063879-1-philmd@redhat.com> References: <20201029093306.1063879-1-philmd@redhat.com> MIME-Version: 1.0 Authentication-Results: relay.mimecast.com; auth=pass smtp.auth=CUSA124A263 smtp.mailfrom=philmd@redhat.com X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: redhat.com Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable X-ZohoMail-DKIM: pass (identity @redhat.com) Reviewed-by: Eric Auger Reviewed-by: Stefan Hajnoczi Tested-by: Eric Auger Signed-off-by: Philippe Mathieu-Daud=C3=A9 --- block/nvme.c | 3 +++ block/trace-events | 2 ++ 2 files changed, 5 insertions(+) diff --git a/block/nvme.c b/block/nvme.c index 29d2541b911..e95d59d3126 100644 --- a/block/nvme.c +++ b/block/nvme.c @@ -181,6 +181,7 @@ static void nvme_init_queue(BDRVNVMeState *s, NVMeQueue= *q, =20 static void nvme_free_queue_pair(NVMeQueuePair *q) { + trace_nvme_free_queue_pair(q->index, q); if (q->completion_bh) { qemu_bh_delete(q->completion_bh); } @@ -216,6 +217,8 @@ static NVMeQueuePair *nvme_create_queue_pair(BDRVNVMeSt= ate *s, if (!q) { return NULL; } + trace_nvme_create_queue_pair(idx, q, size, aio_context, + event_notifier_get_fd(s->irq_notifier)); q->prp_list_pages =3D qemu_try_memalign(s->page_size, s->page_size * NVME_NUM_REQS); if (!q->prp_list_pages) { diff --git a/block/trace-events b/block/trace-events index cc5e2b55cb5..f6a0f99df1a 100644 --- a/block/trace-events +++ b/block/trace-events @@ -155,6 +155,8 @@ nvme_dsm(void *s, uint64_t offset, uint64_t bytes) "s %= p offset 0x%"PRIx64" byte nvme_dsm_done(void *s, uint64_t offset, uint64_t bytes, int ret) "s %p off= set 0x%"PRIx64" bytes %"PRId64" ret %d" nvme_dma_map_flush(void *s) "s %p" nvme_free_req_queue_wait(void *s, unsigned q_index) "s %p q #%u" +nvme_create_queue_pair(unsigned q_index, void *q, unsigned size, void *aio= _context, int fd) "index %u q %p size %u aioctx %p fd %d" +nvme_free_queue_pair(unsigned q_index, void *q) "index %u q %p" nvme_cmd_map_qiov(void *s, void *cmd, void *req, void *qiov, int entries) = "s %p cmd %p req %p qiov %p entries %d" nvme_cmd_map_qiov_pages(void *s, int i, uint64_t page) "s %p page[%d] 0x%"= PRIx64 nvme_cmd_map_qiov_iov(void *s, int i, void *page, int pages) "s %p iov[%d]= %p pages %d" --=20 2.26.2