Received: by 10.223.148.5 with SMTP id 5csp7690326wrq; Thu, 18 Jan 2018 08:24:17 -0800 (PST) X-Google-Smtp-Source: ACJfBoum6aadudilwmrYZojwmgqz7RanCONuRIkBVqxK/M7KWZH0IkYoSC0U6ZgOddYq2OioH3ZS X-Received: by 10.101.64.139 with SMTP id t11mr3924662pgp.162.1516292657169; Thu, 18 Jan 2018 08:24:17 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1516292657; cv=none; d=google.com; s=arc-20160816; b=qIkWVaGhbxZEmTf7TxmA90pjVRUznl7MB6KPg7RyBb/uewrlyLtCd4OLgn7vPhjk6u 0HppKXDaYTutABwexKj1U0tRE4J3jOU0ag9/t4pYKeVPEwGDNsT8JpbsxF+JjdgPOX3J TcqScyY2xDvqT4LygqTUNdv8SKvnn/Rf/UvUtxB7ADSITLCR2crkMSIpQS4qXV/3XcRR gtd5949JWkn+RMcwVFKm78ETyz0zhUD9jQ4s7Mlaqwa+NYXJxwKb4GFpDSmFn/3/yxPw WzeBf/uZ3mtOaVob9mcQVU8em0sCYY/kOOxlLsr/NzSHxLYoVfYIWexIdr+uz6/yG/2k sb8g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-transfer-encoding:content-disposition:mime-version :references:message-id:subject:cc:to:from:date :arc-authentication-results; bh=jgmOJkNgRvsV8/Ge2pwRY3HCzVxNw6yLs7S685czt2c=; b=XBr0NMOvlUkkcc0jOVzR3Varmg+dVkUYgMBupBw4jeM6ZxwCsVvA1YylwCDzuchVt5 0cBkfzJz/m/3WoGiPDCaOeQEAniwsti5pV0GqJi/MGCB2IbV7LVxjsFeJUyCM8HsGw9b 91/QKtKxEL+cUkaD3CyaYFAhF8wfuh75Asag8OJ8UNg0NaQdE1C0tL2K4oxmyBECB81K 6b2A+5Lf8PtLY62reGPba5zusRQ4jlkIgd70mUfOExLrIqX/jNN/mNh8favpsfh1543d 97b/UOhD00TscvizP901hsPTfh71SSxT9qsdbJQelurFJ+dcP1igwjQ2E3MbH3tl6Ww8 9tQA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id d25si7262933pfl.211.2018.01.18.08.24.02; Thu, 18 Jan 2018 08:24:17 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755189AbeARPcJ (ORCPT + 99 others); Thu, 18 Jan 2018 10:32:09 -0500 Received: from mx2.suse.de ([195.135.220.15]:46299 "EHLO mx2.suse.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754513AbeARPcH (ORCPT ); Thu, 18 Jan 2018 10:32:07 -0500 X-Virus-Scanned: by amavisd-new at test-mx.suse.de Received: from relay1.suse.de (charybdis-ext.suse.de [195.135.220.254]) by mx2.suse.de (Postfix) with ESMTP id 22C42AE55; Thu, 18 Jan 2018 15:32:06 +0000 (UTC) Date: Thu, 18 Jan 2018 16:32:05 +0100 From: Johannes Thumshirn To: Christoph Hellwig Cc: Sagi Grimberg , Keith Busch , Linux Kernel Mailinglist , Hannes Reinecke , Linux NVMe Mailinglist Subject: Re: [PATCH v3 1/2] nvme: add tracepoint for nvme_setup_cmd Message-ID: <20180118153205.ipl6yzdfqqoohzbs@linux-x5ow.site> References: <20180117105336.8666-1-jthumshirn@suse.de> <20180117105336.8666-2-jthumshirn@suse.de> <20180118152134.GB24168@lst.de> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <20180118152134.GB24168@lst.de> User-Agent: NeoMutt/20170421 (1.8.2) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Jan 18, 2018 at 04:21:34PM +0100, Christoph Hellwig wrote: > On Wed, Jan 17, 2018 at 11:53:35AM +0100, Johannes Thumshirn wrote: > > +nvme-core-y := trace.o core.o > > trace.o should be conditional on CONFIG_TRACEPOINTS. Doesn't do too much of a difference for me if CONFIG_TRACEPOINTS=n but if you insist I can do it of cause. > > +TRACE_EVENT(nvme_setup_cmd, > > + TP_PROTO(struct nvme_command *cmd), > > + TP_ARGS(cmd), > > + TP_STRUCT__entry( > > + __field(__u8, opcode) > > + __field(__u8, flags) > > + __field(__u16, cid) > > + __field(__le32, nsid) > > + __field(__le64, metadata) > > + __field_struct( struct nvme_command, cmnd ) > > This still copies the whole SQE. I think that is way to much to > copy, especially given that you also copy many of the fields separately > as well. it's not that much, but ok. Will be sending out a v4 tomorrow. -- Johannes Thumshirn Storage jthumshirn@suse.de +49 911 74053 689 SUSE LINUX GmbH, Maxfeldstr. 5, 90409 N?rnberg GF: Felix Imend?rffer, Jane Smithard, Graham Norton HRB 21284 (AG N?rnberg) Key fingerprint = EC38 9CAB C2C4 F25D 8600 D0D0 0393 969D 2D76 0850