Received: by 10.223.148.5 with SMTP id 5csp7602810wrq; Thu, 18 Jan 2018 07:22:17 -0800 (PST) X-Google-Smtp-Source: ACJfBousVcXVXJg1FkVL+SQRed4gOTYHw4zWC080vvlxarqIC5PWy1Hu0q4o14D1WPGa4cMPyuE3 X-Received: by 10.98.79.12 with SMTP id d12mr35783199pfb.186.1516288936974; Thu, 18 Jan 2018 07:22:16 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1516288936; cv=none; d=google.com; s=arc-20160816; b=ub3lqu0gu844vQr763MZiHJ2H+zLDolGj/9+Y9bc4fs8CfeEjO606QKB9+O4BOSRSm jvi1POUmTHaesfC8NKANO/B+Wub8O8tNYfA7r5xzv3C865vaaawsotoPwOrK2HvRyUjz 1/GbpFFZ6i6LS4O3aUilhSRfq2RK+aRuVJty3T9CWheKNnnslvzIcOOcuwkuYiaPK8rQ 0P2k8VU4kiwIRBIAo5JSCTm2utKBg9GkCcnYuIZuiumJ3evDzqwjTe8Oinf4H7oxZNgw r+R4VYQofKCZodUrxFEovcXIDMFGymcnAxYluAhDYrUZAUaw78K99dBR0xGwymTWo7pC u9Ug== 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-disposition:mime-version:references:message-id:subject:cc :to:from:date:arc-authentication-results; bh=dvXmeVp8ZeErbL7wd1yxDQvoLlG4XMmpdX1jwwNcLyE=; b=O5h50/n5DSwe0UH79Tqs+2CpGKMXiq6Tyx6+lcWFjypa7FCVwxas5SMiUACI3Uuv4e 9xN48aLLi70o0yOguHcBDbsitSUmS8v29DkrBPo6oCSQ/K7zFbhWm0K7q17CGzQYtggY gE5hfvl/1ycJvbcEdMPvQ3d4Q5jCY4gBLW5EOUmwqpVLNtUISM4DKk9SFuyQkHnJf5Se hkKA1lUEXI7dCNTzLXhZ7BJp2er0xvZwS6ohTYhSjBEnH1WaZs3kPBm3GBZu2MpIZPDe HmCdg3/dUAcpk3Sd1cKDYl/74D2+UfwLlxCo4UEPMbhBicQDMF88xmBCz75vc/6RCGUY +i+Q== 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 w8si6128938pgr.795.2018.01.18.07.22.02; Thu, 18 Jan 2018 07:22:16 -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 S932423AbeARPVg (ORCPT + 99 others); Thu, 18 Jan 2018 10:21:36 -0500 Received: from verein.lst.de ([213.95.11.211]:34556 "EHLO newverein.lst.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932124AbeARPVg (ORCPT ); Thu, 18 Jan 2018 10:21:36 -0500 Received: by newverein.lst.de (Postfix, from userid 2407) id CF78B68DB6; Thu, 18 Jan 2018 16:21:34 +0100 (CET) Date: Thu, 18 Jan 2018 16:21:34 +0100 From: Christoph Hellwig To: Johannes Thumshirn Cc: Christoph Hellwig , 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: <20180118152134.GB24168@lst.de> References: <20180117105336.8666-1-jthumshirn@suse.de> <20180117105336.8666-2-jthumshirn@suse.de> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20180117105336.8666-2-jthumshirn@suse.de> User-Agent: Mutt/1.5.17 (2007-11-01) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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. > +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.