From nobody Sun Feb 8 19:02:47 2026 Delivered-To: importer@patchew.org Received-SPF: pass (zohomail.com: domain of redhat.com designates 63.128.21.124 as permitted sender) client-ip=63.128.21.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 63.128.21.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=1602691122; cv=none; d=zohomail.com; s=zohoarc; b=ascp63pKhrPp3EeVOlquV6UfPsOnrMl1ARgdrhsVlkadVYi65OK0q7pLN2btdH2GTEAsYHVyuGjdqGpGI5szpnYHAzmx/TRj+wbFPLJSxg3MnjF0yDwmpEo6UdByiIAtx+K0sHRIbLnlyCYpZjvJhMYLPCRpo2PXyz0ae/lpmMs= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1602691122; h=Content-Type:Content-Transfer-Encoding:Cc:Date:From:In-Reply-To:MIME-Version:Message-ID:References:Subject:To; bh=ghmcDakaPsk2ezFRlfrYLZqRji466VE/3yOqwiiBZsA=; b=K8f2MeCNAQaBucq7CblPa31ElsOAdIs3LT583IaARQ1qWCwa6H9O1ItVIw/JRsneCl95M9Axxk13Vi1VliNJylxrsH5ZTryshNVzvfOGFqSyJv2rqmiaXCH13mjWixOcZA9B8UmXs3I4cYw6yc4AaGu3I4fASMjtEgYEuciglcQ= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of redhat.com designates 63.128.21.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 [63.128.21.124]) by mx.zohomail.com with SMTPS id 1602691122113761.7925973298785; Wed, 14 Oct 2020 08:58:42 -0700 (PDT) Received: from mail-wr1-f69.google.com (mail-wr1-f69.google.com [209.85.221.69]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-52-0rneiQ2DNnGRVvQGzR_qVw-1; Wed, 14 Oct 2020 11:58:39 -0400 Received: by mail-wr1-f69.google.com with SMTP id j15so1542817wrd.16 for ; Wed, 14 Oct 2020 08:58:39 -0700 (PDT) Return-Path: Return-Path: Received: from x1w.redhat.com (106.red-83-59-162.dynamicip.rima-tde.net. [83.59.162.106]) by smtp.gmail.com with ESMTPSA id 88sm5869224wrl.76.2020.10.14.08.58.36 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 14 Oct 2020 08:58:37 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1602691121; 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=ghmcDakaPsk2ezFRlfrYLZqRji466VE/3yOqwiiBZsA=; b=gf8wNxsJHKHdCOwmDqbYW7d8Xss2ujUAgYfbKrOWPkMS78WfVK7lsulamsBsw3TjYn8PL+ 74xUUikxT9H/ayF3BTyB9VUK/JCoOPSLa4NZhFw1wjsC/efYoH/T6RE9uUVHi03Vh7qe14 xhXw8anjTscAgJUDxc3HnZm9upFNytw= X-MC-Unique: 0rneiQ2DNnGRVvQGzR_qVw-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=ghmcDakaPsk2ezFRlfrYLZqRji466VE/3yOqwiiBZsA=; b=j7N7TrsjqVND4sJ6Z9IfJ8iCawCo0rflDKjKP3F4gNafU7Nu2WK45odjch738ptWxw WtppumIBQB1DJISfQ3KSoXCJARbPnP6B9IBPyCbu66TYVdLzdCkVrEOaVy2Bu5YhmF35 ZLCKyaHEcNXFohqNNAhYDEQ4ouM8HEwKCtlyHw8BqEMpZvqn50oCI8WKjulJF23KBwPn lyVAtMdkuWtT0f8wu9sO1BqrN0ca926cE5E3dL0aG91NgENpirJyfp1lfW2iZ89lOBKk M7wo9s8AV65DZJyvjgkJ5Iod3DsNUsPWKAzVDAuB6ILpNKS1HDTyWk1FUScoFSjV1OKS L2pg== X-Gm-Message-State: AOAM531VimM7fxGBzXUL689IWOYo3cZgTuiTtjEz0b6nTx5qMfheRtw9 SZsTg2i6QU3iZ+XCg3wT2bV4qD3OYn90ZmRD02c/fjPm03GtusFhohlPqeD4ydYMRVIvczyei9i R+vclJNJ8dIeVkQ== X-Received: by 2002:adf:82f7:: with SMTP id 110mr6213036wrc.261.1602691118067; Wed, 14 Oct 2020 08:58:38 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwsoswR7KcyjOGRJR/+Nr8CZeH4vwy4J2qv5fpShJ2TYeI77QnSRCmu5EvZXnfuQBvWs164Kg== X-Received: by 2002:adf:82f7:: with SMTP id 110mr6213022wrc.261.1602691117854; Wed, 14 Oct 2020 08:58:37 -0700 (PDT) From: =?UTF-8?q?Philippe=20Mathieu-Daud=C3=A9?= To: qemu-devel@nongnu.org Cc: qemu-block@nongnu.org, Fam Zheng , Stefan Hajnoczi , Kevin Wolf , Max Reitz , =?UTF-8?q?Philippe=20Mathieu-Daud=C3=A9?= Subject: [PATCH 05/15] block/nvme: Trace queue pair creation/deletion Date: Wed, 14 Oct 2020 17:58:00 +0200 Message-Id: <20201014155810.102841-6-philmd@redhat.com> X-Mailer: git-send-email 2.26.2 In-Reply-To: <20201014155810.102841-1-philmd@redhat.com> References: <20201014155810.102841-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) 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 e9410f2e0eb..95f19e12cd6 100644 --- a/block/nvme.c +++ b/block/nvme.c @@ -175,6 +175,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); } @@ -210,6 +211,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 410789188cc..6694c23e1c1 100644 --- a/block/trace-events +++ b/block/trace-events @@ -153,6 +153,8 @@ nvme_dsm(void *s, uint64_t offset, uint64_t bytes) "s %= p offset %"PRId64" bytes nvme_dsm_done(void *s, uint64_t offset, uint64_t bytes, int ret) "s %p off= set %"PRId64" 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