From nobody Mon Nov 17 11:48:19 2025 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=1603806966; cv=none; d=zohomail.com; s=zohoarc; b=fFTm9zKpj9DIC/vFkx9fn2JIkA42ZuAPFjlcwObc+4Fsgmtt/0WJoES1M1fFiW2giXvwGjM8g7UrmcKxu7mO6su5OJtq4dCbE0SbQfl9tZBsyuuthwNjCPKs6cVxkf/Wgxnt/H2atVDz3YqJU6yxPxsFJhYa1+jIhNcLX0phCP4= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1603806966; h=Content-Type:Content-Transfer-Encoding:Cc:Date:From:In-Reply-To:MIME-Version:Message-ID:References:Subject:To; bh=faAds+I3T/QXPAYkC+t4lGLvv4Dkjc5SBZjt6RcJJiw=; b=Z1OdWP+NfM40ABAj+J1OD1VrezsHyycrdzLcW3xOAWftTxKBCE3Fqvd+ISHpfi9BoYrKJsLMsHiLKwlSEkCiSOerOe9DXXH1K0ZHfj66Zk20tleLlDlLr4y0SbBjgfaL7csJvdKN9PVVlNLELycKy8OwxDOdMlJ4oLokk3/7kac= 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 1603806966038684.5416718296068; Tue, 27 Oct 2020 06:56:06 -0700 (PDT) Received: from mail-ej1-f72.google.com (mail-ej1-f72.google.com [209.85.218.72]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-566-ktIMi233NvS9Ur9ARMVtWQ-1; Tue, 27 Oct 2020 09:56:03 -0400 Received: by mail-ej1-f72.google.com with SMTP id z25so944620ejd.2 for ; Tue, 27 Oct 2020 06:56:02 -0700 (PDT) Return-Path: Return-Path: Received: from x1w.redhat.com (237.red-88-18-140.staticip.rima-tde.net. [88.18.140.237]) by smtp.gmail.com with ESMTPSA id hb6sm1109168ejb.65.2020.10.27.06.55.59 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 27 Oct 2020 06:56:00 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1603806965; 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=faAds+I3T/QXPAYkC+t4lGLvv4Dkjc5SBZjt6RcJJiw=; b=SJrfrFbOhfpljT/iRtvTsqaULUku9phZZVZu/hMvdhjEqtzYr+7mlTY2miOyX0Z3GRP00A ZPyOkXZmIgpA0J+N9JjRaNlWXZQqyM6jmj5gqTdaiXHndsWwdr1vFJeqVZ0v4IJiCInopq Cresi8ix86k04fTDqBYGkt4G/L2BZlY= X-MC-Unique: ktIMi233NvS9Ur9ARMVtWQ-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=faAds+I3T/QXPAYkC+t4lGLvv4Dkjc5SBZjt6RcJJiw=; b=ohi95h1w6Ld59wWtvw1+nk5smeQl31tbKNNxdlufb4vXWAZqOU6H+IZspGoPI4QcLX x2DUH81ObjbPZLn6Uck9Smv5FqPmrqLWXXiDXHSWDNVEEiiWx0mObLdp0ZYG71QSEz2u VqptHkHDxicx3MytvZTDgPiDQnL82+5ZYCPHz10mv+Bi9S7MvUCW1VEewkOhXVli22NI kjWPLjGTYJJYPLxnx23xVcAxzlPwYTCEvcxNainajIlWzGF044t0qxnmdN0gr3NSybTt CvO0+bMDrOpM1Es6pbcks1ZaWmTYYaRIkjsCvCXKCNvui+ANi/RglapZC3VWRHW3gyro twjA== X-Gm-Message-State: AOAM530/W5j1Bj4hxU0okKhJXzVD6kUOtZLGcQbbd2v6aA2LUIN1LTcZ J9JQHtGQN+xLXIHdVDro3I3TppOY45PM6JXLcHFnK/XdKn7+AiQxg/kainy7yJBvMDUxJaUEyUJ Q43D4x3jhLBo0Fw== X-Received: by 2002:aa7:c84b:: with SMTP id g11mr2282887edt.86.1603806961310; Tue, 27 Oct 2020 06:56:01 -0700 (PDT) X-Google-Smtp-Source: ABdhPJw0FF6H+9NW/CpsE27BDUdX+VEQ9qNYcDYjbD83uhjrsFxaVSQUtGW42sbTbKdvm6WVr5HfDA== X-Received: by 2002:aa7:c84b:: with SMTP id g11mr2282868edt.86.1603806961082; Tue, 27 Oct 2020 06:56:01 -0700 (PDT) From: =?UTF-8?q?Philippe=20Mathieu-Daud=C3=A9?= To: qemu-devel@nongnu.org Cc: Klaus Jensen , qemu-block@nongnu.org, Fam Zheng , Keith Busch , Eric Auger , Stefan Hajnoczi , Kevin Wolf , Max Reitz , =?UTF-8?q?Philippe=20Mathieu-Daud=C3=A9?= Subject: [PATCH 02/25] block/nvme: Use hex format to display offset in trace events Date: Tue, 27 Oct 2020 14:55:24 +0100 Message-Id: <20201027135547.374946-3-philmd@redhat.com> X-Mailer: git-send-email 2.26.2 In-Reply-To: <20201027135547.374946-1-philmd@redhat.com> References: <20201027135547.374946-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) Use the same format used for the hw/vfio/ trace events. Suggested-by: Eric Auger Signed-off-by: Philippe Mathieu-Daud=C3=A9 Reviewed-by: Eric Auger Reviewed-by: Stefan Hajnoczi --- block/trace-events | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/block/trace-events b/block/trace-events index 0e351c3fa3d..0955c85c783 100644 --- a/block/trace-events +++ b/block/trace-events @@ -144,13 +144,13 @@ nvme_submit_command(void *s, int index, int cid) "s %= p queue %d cid %d" nvme_submit_command_raw(int c0, int c1, int c2, int c3, int c4, int c5, in= t c6, int c7) "%02x %02x %02x %02x %02x %02x %02x %02x" nvme_handle_event(void *s) "s %p" nvme_poll_cb(void *s) "s %p" -nvme_prw_aligned(void *s, int is_write, uint64_t offset, uint64_t bytes, i= nt flags, int niov) "s %p is_write %d offset %"PRId64" bytes %"PRId64" flag= s %d niov %d" -nvme_write_zeroes(void *s, uint64_t offset, uint64_t bytes, int flags) "s = %p offset %"PRId64" bytes %"PRId64" flags %d" +nvme_prw_aligned(void *s, int is_write, uint64_t offset, uint64_t bytes, i= nt flags, int niov) "s %p is_write %d offset 0x%"PRIx64" bytes %"PRId64" fl= ags %d niov %d" +nvme_write_zeroes(void *s, uint64_t offset, uint64_t bytes, int flags) "s = %p offset 0x%"PRIx64" bytes %"PRId64" flags %d" nvme_qiov_unaligned(const void *qiov, int n, void *base, size_t size, int = align) "qiov %p n %d base %p size 0x%zx align 0x%x" -nvme_prw_buffered(void *s, uint64_t offset, uint64_t bytes, int niov, int = is_write) "s %p offset %"PRId64" bytes %"PRId64" niov %d is_write %d" -nvme_rw_done(void *s, int is_write, uint64_t offset, uint64_t bytes, int r= et) "s %p is_write %d offset %"PRId64" bytes %"PRId64" ret %d" -nvme_dsm(void *s, uint64_t offset, uint64_t bytes) "s %p offset %"PRId64" = bytes %"PRId64"" -nvme_dsm_done(void *s, uint64_t offset, uint64_t bytes, int ret) "s %p off= set %"PRId64" bytes %"PRId64" ret %d" +nvme_prw_buffered(void *s, uint64_t offset, uint64_t bytes, int niov, int = is_write) "s %p offset 0x%"PRIx64" bytes %"PRId64" niov %d is_write %d" +nvme_rw_done(void *s, int is_write, uint64_t offset, uint64_t bytes, int r= et) "s %p is_write %d offset 0x%"PRIx64" bytes %"PRId64" ret %d" +nvme_dsm(void *s, uint64_t offset, uint64_t bytes) "s %p offset 0x%"PRIx64= " bytes %"PRId64"" +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 *q) "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" --=20 2.26.2