Received: by 2002:a25:824b:0:0:0:0:0 with SMTP id d11csp8458813ybn; Tue, 1 Oct 2019 08:23:47 -0700 (PDT) X-Google-Smtp-Source: APXvYqza95boACrGeaUZWQypN+kMRTqmbeikgCiMDjbLVFviMuia65JeZo0Glgyf8E7sGcuvlEuz X-Received: by 2002:a17:906:9703:: with SMTP id k3mr24115929ejx.159.1569943427087; Tue, 01 Oct 2019 08:23:47 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1569943427; cv=none; d=google.com; s=arc-20160816; b=ZUgv/ITpR5lRdPv/N+o5Kfy3nT758dZufl2eyY52KWLHQGgw9MlLPEHH6WjDqNxIyi kRuKfv8VppA6/r7zZO33Ah3j/rySCjznFtEYzssiDARoH1F0qMQA8HdVi6hUvzeRYa2J p6eoz3CmUvbfXogW7jcHun3VWxsQMvby/7GFloCQT727z9zDUTNiom6sHY2eooOYiZuo H7W39sVWqEWQHaSbH0k1rNic/IMCS0Oewl0CeOnRUbllkbfFywg4diMQGYJNPavBBsAR zDbqx7nqIbyjEmXgY3KNOJ559arT9mTpXGGuL2VPELOZjtN0Qs5JIH4RswqJUZcBAeK7 gizw== 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=nq/qMyR5R0UIZB3KGSfVH6iiKjhgomqigj3NnEULE0Q=; b=gXgBSqSWJ8tSiPQlbpqkW2eakC81GsrMGwfk7sKJGkG9fNXvMgwyphGgLk/PrA2TyP Nq4pnHW2yiJFn9eHftX6LPKWCFC72/bz/1j25oi8mODl1VqXSiTSwmh+W1OrO2t6R8ax 7tLIkJZXPfZHj9nCAS+3sJfkO9yGUlhZxe+RR5fuLENU4zwhzAwEPaGepW/vhuyNwTK6 3UyElLyxXAjC1P6d0kch/SOjYPFeVq+OBf/7dmAXM0gFj0D3bjvGH5zqqEVuMQLLZkNI 7bg+IQVP3jXsayqBI9hvNzPNt0VHWgI98lyRPX6MWeNsgHO3aOMOgoR8euibHwh++ruA XQjA== 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=redhat.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id s27si9557795edm.226.2019.10.01.08.23.22; Tue, 01 Oct 2019 08:23:47 -0700 (PDT) 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=redhat.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1731937AbfJAPXH (ORCPT + 99 others); Tue, 1 Oct 2019 11:23:07 -0400 Received: from mx1.redhat.com ([209.132.183.28]:39154 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727246AbfJAPXH (ORCPT ); Tue, 1 Oct 2019 11:23:07 -0400 Received: from smtp.corp.redhat.com (int-mx05.intmail.prod.int.phx2.redhat.com [10.5.11.15]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id D6261C05975D; Tue, 1 Oct 2019 15:23:06 +0000 (UTC) Received: from bfoster (dhcp-41-2.bos.redhat.com [10.18.41.2]) by smtp.corp.redhat.com (Postfix) with ESMTPS id 101935D6D0; Tue, 1 Oct 2019 15:23:05 +0000 (UTC) Date: Tue, 1 Oct 2019 11:23:04 -0400 From: Brian Foster To: Christoph Hellwig Cc: "Darrick J . Wong" , Damien Le Moal , Andreas Gruenbacher , linux-xfs@vger.kernel.org, linux-fsdevel@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH 01/11] iomap: add tracing for the readpage / readpages Message-ID: <20191001152304.GA62608@bfoster> References: <20191001071152.24403-1-hch@lst.de> <20191001071152.24403-2-hch@lst.de> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20191001071152.24403-2-hch@lst.de> User-Agent: Mutt/1.12.1 (2019-06-15) X-Scanned-By: MIMEDefang 2.79 on 10.5.11.15 X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.5.110.32]); Tue, 01 Oct 2019 15:23:06 +0000 (UTC) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Oct 01, 2019 at 09:11:42AM +0200, Christoph Hellwig wrote: > Lift the xfs code for tracing address space operations to the iomap > layer. > > Signed-off-by: Christoph Hellwig > --- > fs/iomap/buffered-io.c | 7 +++++++ > include/trace/events/iomap.h | 27 +++++++++++++++++++++++++++ > 2 files changed, 34 insertions(+) > create mode 100644 include/trace/events/iomap.h > ... > diff --git a/include/trace/events/iomap.h b/include/trace/events/iomap.h > new file mode 100644 > index 000000000000..7d2fe2c773f3 > --- /dev/null > +++ b/include/trace/events/iomap.h > @@ -0,0 +1,27 @@ > +// SPDX-License-Identifier: GPL-2.0 > +/* > + * Copyright (c) 2009-2019, Christoph Hellwig > + * All Rights Reserved. > + * > + * NOTE: none of these tracepoints shall be consider a stable kernel ABI > + * as they can change at any time. > + */ > +#undef TRACE_SYSTEM > +#define TRACE_SYSTEM iomap > + > +#if !defined(_TRACE_IOMAP_H) || defined(TRACE_HEADER_MULTI_READ) > +#define _TRACE_IOMAP_H > + > +#include > + > +#define DEFINE_READPAGE_EVENT(name) \ > +DEFINE_EVENT(iomap_readpage_class, name, \ > + TP_PROTO(struct inode *inode, int nr_pages), \ > + TP_ARGS(inode, nr_pages)) iomap_readpage_class isn't defined until the next patch. Commit mistake? Brian > +DEFINE_READPAGE_EVENT(iomap_readpage); > +DEFINE_READPAGE_EVENT(iomap_readpages); > + > +#endif /* _TRACE_IOMAP_H */ > + > +/* This part must be outside protection */ > +#include > -- > 2.20.1 >