Message ID | 20181010150013.GP28243@magnolia (mailing list archive) |
---|---|
State | New, archived |
Headers | show
Return-Path: <owner-linux-mm@kvack.org> Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id D1F9915E2 for <patchwork-linux-mm@patchwork.kernel.org>; Wed, 10 Oct 2018 15:00:23 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 96F012A5C4 for <patchwork-linux-mm@patchwork.kernel.org>; Wed, 10 Oct 2018 15:00:21 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 9366F2A5D5; Wed, 10 Oct 2018 15:00:21 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-3.0 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,MAILING_LIST_MULTI,RCVD_IN_DNSWL_NONE, UNPARSEABLE_RELAY autolearn=ham version=3.3.1 Received: from kanga.kvack.org (kanga.kvack.org [205.233.56.17]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 2DE2B2A5AB for <patchwork-linux-mm@patchwork.kernel.org>; Wed, 10 Oct 2018 15:00:21 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id DC60B6B0003; Wed, 10 Oct 2018 11:00:19 -0400 (EDT) Delivered-To: linux-mm-outgoing@kvack.org Received: by kanga.kvack.org (Postfix, from userid 40) id D75AF6B0006; Wed, 10 Oct 2018 11:00:19 -0400 (EDT) X-Original-To: int-list-linux-mm@kvack.org X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id C65A46B0007; Wed, 10 Oct 2018 11:00:19 -0400 (EDT) X-Original-To: linux-mm@kvack.org X-Delivered-To: linux-mm@kvack.org Received: from mail-pl1-f200.google.com (mail-pl1-f200.google.com [209.85.214.200]) by kanga.kvack.org (Postfix) with ESMTP id 880576B0003 for <linux-mm@kvack.org>; Wed, 10 Oct 2018 11:00:19 -0400 (EDT) Received: by mail-pl1-f200.google.com with SMTP id f59-v6so3891216plb.5 for <linux-mm@kvack.org>; Wed, 10 Oct 2018 08:00:19 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:dkim-signature:date:from:to:cc:subject :message-id:references:mime-version:content-disposition:in-reply-to :user-agent; bh=ipV9NF1XrLxUP1tG3SvuGYon/cVLDKZ2hQxeZuen2Ys=; b=PYwRfAMXHPARE/s1Niuwk2Pe3DAaEOuBykpi6AET8F6gkA4Nc/AE/ERdPQbJrNGYNW j1jHsUS3hsJC6AVQJ4udhSiEgr+tSU/g9EE0E8bP2cVQKT2kTxYRGQB743yHMJRtRC9j Rwv2/DsOTHiNLGDYjpPm1XXi1qy55ddvkPK28+tLkK7Tidjd6wHdlfdQYf7aEsxR4Xs/ BWlsDmnqN2RhmgRdzxfNVNaNCsAxDG3VVDLlwjp0Esu01M8EXWvXr7vrnbBGYeM887Ej 1BxDCJGG4hW9fLWF1/JAkmYIFOlKIifd831V240YoPNqh1fw/4NW1J1ZLUrppLyxSIYD dwkg== X-Gm-Message-State: ABuFfojJTwFEr2sVGAcjPsbS+TGRpEkqvr0o21SJd+ICZXYUXjhW7bsl Z6t+XSHk4V3SLrnZlA1NacF0S2dYYLVbUADYlH0w+ZSZbteAJKLXFdE6JmzdJGdrpAlcr19DMq6 Bg0FWZ7iADlWRjc0hVA5BTQ9KqOzHJEU1rLhKDwm3srfFbxo9to9WImEe0mu7CMQPcw== X-Received: by 2002:a63:124b:: with SMTP id 11-v6mr29842956pgs.299.1539183619124; Wed, 10 Oct 2018 08:00:19 -0700 (PDT) X-Google-Smtp-Source: ACcGV60YtafqdpmWF+sreFLjj42MFC4cQMHGKALpWjyCTJJlHMfTyR8w7raMQhFMqIFdnYXYUA85 X-Received: by 2002:a63:124b:: with SMTP id 11-v6mr29842913pgs.299.1539183618263; Wed, 10 Oct 2018 08:00:18 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1539183618; cv=none; d=google.com; s=arc-20160816; b=Vmh6BCFcL9lB6TQV0wrhXvWGTsLlurBokLBv01mGsyKlTcvnPt6TvmsnKu7X1IfJ/R 9Qm0Cg3DpNJjHWEdXylHYpIfZV/pWPMyNOKiIQt9b1jCVscFAq3Dg6nq0OkJuU7LklH9 nRa78hHEOpebVAgB54fpoYvLW1J5/CjhcLHQqz82Dw63Ed3fwrYhTNuzX20pIBuTIqVs RKLT3F3xS+0qiSA3s2SiZiPpnxkuhWioC14wm4inHkmF4VwxAF4uFd09Ino2nmDL4IUE 0v50Vh6nsQfWaRKp2hU+2qelgVPMkSDJ5fe1/0zcONfDoEetQq8W/WSY9lIhwRLeZG7/ Iy7Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=user-agent:in-reply-to:content-disposition:mime-version:references :message-id:subject:cc:to:from:date:dkim-signature; bh=ipV9NF1XrLxUP1tG3SvuGYon/cVLDKZ2hQxeZuen2Ys=; b=UrMmWgh1CzDyzKCpRgqh+5vK23hUDTYd8+uBLCEX9w7Y0sga2QmYGgSW5vzds41wlZ 5SdgPl9LSCpO6rCHeUoa1A0/3+wU/JnwiLgCyjPAn3tDnd53KUNaqC4AI3QUMA4O+j0a UzuhDPDOEK3mPCQthvXRp2hUjVzQRVQy8cYOtxNx4fqKppTwJhmwgwrJDxIJnDyS/Th5 XRFfz8FEdZdHY8WosWe8a/DtksbvI2EaoA/adFxXAFZ34s+iDOVUoxjrhGACykQgCHfi EANU+zVxYMAP6E9tJJFAq3lAVzrjfnMI4eZ0UVdJyVwV++qrCn2GDgbZmnUYtGXA9m6D xUEA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@oracle.com header.s=corp-2018-07-02 header.b=dr96YeB5; spf=pass (google.com: domain of darrick.wong@oracle.com designates 156.151.31.86 as permitted sender) smtp.mailfrom=darrick.wong@oracle.com; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=oracle.com Received: from userp2130.oracle.com (userp2130.oracle.com. [156.151.31.86]) by mx.google.com with ESMTPS id e3-v6si24557598pga.369.2018.10.10.08.00.17 for <linux-mm@kvack.org> (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 10 Oct 2018 08:00:18 -0700 (PDT) Received-SPF: pass (google.com: domain of darrick.wong@oracle.com designates 156.151.31.86 as permitted sender) client-ip=156.151.31.86; Authentication-Results: mx.google.com; dkim=pass header.i=@oracle.com header.s=corp-2018-07-02 header.b=dr96YeB5; spf=pass (google.com: domain of darrick.wong@oracle.com designates 156.151.31.86 as permitted sender) smtp.mailfrom=darrick.wong@oracle.com; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=oracle.com Received: from pps.filterd (userp2130.oracle.com [127.0.0.1]) by userp2130.oracle.com (8.16.0.22/8.16.0.22) with SMTP id w9AEwxZn061417; Wed, 10 Oct 2018 15:00:16 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oracle.com; h=date : from : to : cc : subject : message-id : references : mime-version : content-type : in-reply-to; s=corp-2018-07-02; bh=ipV9NF1XrLxUP1tG3SvuGYon/cVLDKZ2hQxeZuen2Ys=; b=dr96YeB5sXXFD1RiU19fn42P94FpWSrvZh4nFQx70uMViD255RhIiw4RFXHtJmoWHNY2 nUGq/6oCjL1uyvOB4nya5aRGZxdgGGDz6H3XvgTsxC5DX8ndr5zR2D3cqTAuLsEd4cxz VA2PhtkzFGoVenhVse3J4i3hOXz8VeBZsnb8yVd1ILXIdMiRdynfvr7EWjlvJntznCUp 11wrCH57hpFvCIczeBBr3OyUHHmEgyx9zibuplKbdMqgt9ufvHfmOJoe6XBnwCTFQ+FA SwAlq6S37fOlAiB/O1VMQ7MVktk+BIXMvW/pEzdLiOaVBld3RxNo8NiLoIwmsnCKyf3B yw== Received: from aserv0022.oracle.com (aserv0022.oracle.com [141.146.126.234]) by userp2130.oracle.com with ESMTP id 2mxmftvr1x-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Wed, 10 Oct 2018 15:00:16 +0000 Received: from aserv0121.oracle.com (aserv0121.oracle.com [141.146.126.235]) by aserv0022.oracle.com (8.14.4/8.14.4) with ESMTP id w9AF0FjZ007174 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Wed, 10 Oct 2018 15:00:15 GMT Received: from abhmp0019.oracle.com (abhmp0019.oracle.com [141.146.116.25]) by aserv0121.oracle.com (8.14.4/8.13.8) with ESMTP id w9AF0F68005461; Wed, 10 Oct 2018 15:00:15 GMT Received: from localhost (/67.169.218.210) by default (Oracle Beehive Gateway v4.0) with ESMTP ; Wed, 10 Oct 2018 15:00:14 +0000 Date: Wed, 10 Oct 2018 08:00:13 -0700 From: "Darrick J. Wong" <darrick.wong@oracle.com> To: david@fromorbit.com Cc: sandeen@redhat.com, linux-nfs@vger.kernel.org, linux-cifs@vger.kernel.org, linux-unionfs@vger.kernel.org, linux-xfs@vger.kernel.org, linux-mm@kvack.org, linux-btrfs@vger.kernel.org, linux-fsdevel@vger.kernel.org, ocfs2-devel@oss.oracle.com Subject: [PATCH v2 01/25] xfs: add a per-xfs trace_printk macro Message-ID: <20181010150013.GP28243@magnolia> References: <153913023835.32295.13962696655740190941.stgit@magnolia> <153913024554.32295.8692450593333636905.stgit@magnolia> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <153913024554.32295.8692450593333636905.stgit@magnolia> User-Agent: Mutt/1.9.4 (2018-02-28) X-Proofpoint-Virus-Version: vendor=nai engine=5900 definitions=9041 signatures=668706 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 suspectscore=1 malwarescore=0 phishscore=0 bulkscore=0 spamscore=0 mlxscore=0 mlxlogscore=999 adultscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.0.1-1807170000 definitions=main-1810100149 X-Bogosity: Ham, tests=bogofilter, spamicity=0.000000, version=1.2.4 Sender: owner-linux-mm@kvack.org Precedence: bulk X-Loop: owner-majordomo@kvack.org List-ID: <linux-mm.kvack.org> X-Virus-Scanned: ClamAV using ClamSMTP |
Series |
[v2,01/25] xfs: add a per-xfs trace_printk macro
|
expand
|
diff --git a/fs/xfs/xfs_error.h b/fs/xfs/xfs_error.h index 246d3e989c6c..5caa8bdf6c38 100644 --- a/fs/xfs/xfs_error.h +++ b/fs/xfs/xfs_error.h @@ -76,6 +76,11 @@ extern int xfs_errortag_set(struct xfs_mount *mp, unsigned int error_tag, unsigned int tag_value); extern int xfs_errortag_add(struct xfs_mount *mp, unsigned int error_tag); extern int xfs_errortag_clearall(struct xfs_mount *mp); + +/* trace printk version of xfs_err and friends */ +#define xfs_tprintk(mp, fmt, args...) \ + trace_printk("dev %d:%d " fmt, MAJOR((mp)->m_super->s_dev), \ + MINOR((mp)->m_super->s_dev), ##args) #else #define xfs_errortag_init(mp) (0) #define xfs_errortag_del(mp) @@ -83,6 +88,7 @@ extern int xfs_errortag_clearall(struct xfs_mount *mp); #define xfs_errortag_set(mp, tag, val) (ENOSYS) #define xfs_errortag_add(mp, tag) (ENOSYS) #define xfs_errortag_clearall(mp) (ENOSYS) +#define xfs_tprintk(mp, fmt, args...) do { } while (0) #endif /* DEBUG */ /*