Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp4095078imu; Tue, 18 Dec 2018 09:00:03 -0800 (PST) X-Google-Smtp-Source: AFSGD/WVO9v1+aBgDOwJ2faGbxf4cg+7EjT65x9qATig7j2IqdDLS9NDCDKVFqcMwJw6myAn+D0Y X-Received: by 2002:a17:902:e012:: with SMTP id ca18mr17110327plb.218.1545152403237; Tue, 18 Dec 2018 09:00:03 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1545152403; cv=none; d=google.com; s=arc-20160816; b=RJPRU2wfk43DnHAL67OqWaYHB/NygSgqOJ97p9+MEpjjzJ1b0VjZLygp2tOl0U+91Y vVOuyH1mYOwxBeA3n6TydIzEDA71Gb0Tzg+U9qwCbEe4tT8YzrbAo5uQIKFhYpuPVIfj /T8nrjK9mdNmyrrKHJFCnEkXm/S45hEc6++HXVgJJXZikfLF6DDsSTrJkQdOE6An38f8 jm2DWFuWVrJK+bwinzNmujedA02O1/S/aBH6MurUe7jRnEGxv0L9nyWLTLRMjpAuDgTu EsWP/a30A3IrLm6dELiFkOQb9Zdh4alcmnFD8rG131apt1DTbA2nfF5l5XcC83WuFCSC TcHw== 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; bh=33TAdwEVeFchanIO8NgUX0Cv8jQBvjMcY4SRnZPIBZk=; b=TLO466NzGLRlDf0kauSHQEK9sYsVv+2bm3szBM7X5RuYYAk5Y0Y+VIVsNTSjhsNqzc GQIVduGuPCzLQF3ZagHFMXFDqaoKTMpooP7VWM0IT+KVpVqvH1U7wvSRAClHwrZ2DMZN Aw7LCODP1tFh+xwtUodJSvTbbc17A3Ax57tAibS/VoQ5DqruaBgndP+fg0YNe7dIFzyb aCXHLBBJaBBEe2kYaGI8/4NpYUWqpjX0V6aMEh0V6DVkp2CnvCVT/IUVUXXCAsjWoFrG DjVGeYKC7JYZ6D4JdVPxlvpmjrql4jFVAcvoKcoLpTPfdT8tSU1GjtGfQB7hW9DnqT+P mNlg== 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 k25si14377351pfe.10.2018.12.18.08.59.33; Tue, 18 Dec 2018 09:00:03 -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 S1727029AbeLRQ6R (ORCPT + 99 others); Tue, 18 Dec 2018 11:58:17 -0500 Received: from verein.lst.de ([213.95.11.211]:41920 "EHLO newverein.lst.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726599AbeLRQ6Q (ORCPT ); Tue, 18 Dec 2018 11:58:16 -0500 Received: by newverein.lst.de (Postfix, from userid 2407) id F354E68D8D; Tue, 18 Dec 2018 17:58:14 +0100 (CET) Date: Tue, 18 Dec 2018 17:58:14 +0100 From: Christoph Hellwig To: yupeng Cc: linux-block@vger.kernel.org, linux-kernel@vger.kernel.org, linux-nvme@lists.infradead.org, keith.busch@intel.com, axboe@fb.com, hch@lst.de, sagi@grimberg.me, jthumshirn@suse.de Subject: Re: [PATCH v4 1/2] export trace.c helper functions to other modules Message-ID: <20181218165814.GA13449@lst.de> References: <20181218045138.4282-1-yupeng0921@gmail.com> <20181218165706.GA13271@lst.de> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20181218165706.GA13271@lst.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 Tue, Dec 18, 2018 at 05:57:06PM +0100, Christoph Hellwig wrote: > > > On Mon, Dec 17, 2018 at 08:51:37PM -0800, yupeng wrote: > > Export bellow three functions: > > nvme_trace_parse_admin_cmd > > nvme_trace_parse_nvm_cmd > > nvme_trace_disk_name > > Thus any other modules which depends on nvme-core could use the trace > > events in trace.h > > But we don't actually use these trace events anywhere outside of core.c, > even with your second patch, do we? Except for nvme_trace_disk_name, which is used via __print_disk_name.