Received: by 2002:ad5:4acb:0:0:0:0:0 with SMTP id n11csp2680647imw; Wed, 6 Jul 2022 09:56:58 -0700 (PDT) X-Google-Smtp-Source: AGRyM1t64bKl9hjPC3d5SrQNe8QUHfeIh0MxSc4u9dFzYWtD8iQVMlA3ZmL7eP30RhFECX1Y3bS3 X-Received: by 2002:a17:90b:4c48:b0:1ec:a20e:a9bf with SMTP id np8-20020a17090b4c4800b001eca20ea9bfmr50297622pjb.209.1657126617747; Wed, 06 Jul 2022 09:56:57 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1657126617; cv=none; d=google.com; s=arc-20160816; b=PwCtrGWHUS5i7bXeskYQ/Hk+m8nbN2H1suRIRKdu4opxxV2338HVRbLgKWF7flA3jg jHqlCYMj64w310fytfw6ll2QBqz0j4t1pqNwZD/UVr5XvNJ8YgKAFPLaQEqIU/6hnScz vkEW07v4LMzulBIV9qBWgvNDFTTDvbYodT6K9SMHliGJtvd+GciDWYgeI4CL/vqnNLln IbvL24ZgJ9F84PNacbddG6yc6qvDVQRQcVTOzdoTqA3p4SWsz9z0OHoO03utPncWldMi fO9dvcJ69w7kmWMD68+kSjFtjrzVa0q6cwNom6ZikkYEVxkkWsRz6SGvq2l1QYd2lVrB uBRw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:user-agent:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date; bh=d2HhyJ575AUCL8zwydlL/BRWmkuXOdQ4bmMIEsQcQQw=; b=DA+wyUH4XgPt5M712rv8W8k/PYquM/qmig9yg0QcUC5Y4hzij8B9tw4C/3LxSV1UJT R+zbt61qwJkKRNXUHYq+GYxkXxlmJu6NYMBcmrkb7yks2N8HvySKFGRJssubvAIdY7FI rfZCsLqnCNlBX/1feE7TTEgDKjDZY04tEDLQZZWyshMtuhII4HXRhWOA/eGKX6911bLO HecWVjM3W6jbZCKyHtTEz4a8O5q1eVUgztIHiArtdD4HGZQEQrlueyt1RaWL6M0L/Xt1 IM9VHBEuqq5Wg6x8QI0BK/krO5Y/ZAdGKE6OWQqBphYnam0OZWa1oc0/n7JAvcrNikjY ucVA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id q205-20020a632ad6000000b00411f660a8b0si18700406pgq.124.2022.07.06.09.56.45; Wed, 06 Jul 2022 09:56:57 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234626AbiGFQSj (ORCPT + 99 others); Wed, 6 Jul 2022 12:18:39 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:46272 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234053AbiGFQSb (ORCPT ); Wed, 6 Jul 2022 12:18:31 -0400 Received: from verein.lst.de (verein.lst.de [213.95.11.211]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id ADBD8DFE1 for ; Wed, 6 Jul 2022 09:18:29 -0700 (PDT) Received: by verein.lst.de (Postfix, from userid 2407) id 7E1AB68B05; Wed, 6 Jul 2022 18:18:25 +0200 (CEST) Date: Wed, 6 Jul 2022 18:18:25 +0200 From: Christoph Hellwig To: Keith Busch Cc: John Garry , axboe@fb.com, hch@lst.de, sagi@grimberg.me, linux-nvme@lists.infradead.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH] nvme: Fix nvme_setup_command metadata trace event for cdw10 Message-ID: <20220706161825.GA1962@lst.de> References: <1657095398-114310-1-git-send-email-john.garry@huawei.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.17 (2007-11-01) X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,SPF_HELO_NONE, SPF_NONE,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Jul 06, 2022 at 10:13:22AM -0600, Keith Busch wrote: > Did you test what the trace looks like afte this? We're losing valuable trace > data here. The field is supposed to get CDW's 10 - 15, so that's 24 bytes. I > don't know why it cares that the address of the field being read is only 4 > bytes; we want everything that comes after it too. Because accesses should not spawn boundaries of members in structs unless copying the entire struct. If we want to trace the various fields we need to individually assign them. Anyway, I'm dropping this patch from nvme-5.19 for now to let the discussion conclude.