Received: by 2002:a05:6359:c8b:b0:c7:702f:21d4 with SMTP id go11csp3181456rwb; Mon, 3 Oct 2022 10:50:12 -0700 (PDT) X-Google-Smtp-Source: AMsMyM68KpS+FCqpDPXOYlWwqmdwXcREibZTAlccNkTLnz/GoCoGEFM936hRBZTNN30YbzIvM1aJ X-Received: by 2002:a17:90b:4a12:b0:203:3482:d39e with SMTP id kk18-20020a17090b4a1200b002033482d39emr13480497pjb.145.1664819411907; Mon, 03 Oct 2022 10:50:11 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1664819411; cv=none; d=google.com; s=arc-20160816; b=T0sLpxTejnF9EOKhxZyC5f6GLQBUv6gw9QdwfQRmuUNXpA3qjKrzi7410I+3MvIf4k iQeFFuuBNYk6Ph8XBtT6uoVtjw9QWt9oaPiADHcteavPm8KgmTtZWwoiZJBC5P4DitQj w3ZvRPKvRKb+wQ8xrmlA7j/PIg7xfhLusVoxawXmmyyoBUaOXY/d4LEmBXYn5pSylfZ3 kjW1bwlXdOXgzoVDXdB/SrO7N81vK6bF9oOkt/Z8TsjPuzJxvErzoWdnjnq2vZAvQd1x 0TZylS2Wvkygkw3m5qhvl4zvE8LeBaV7wldu1ZDX5+GHwyvoEquWjpOTNwcvjKqzTt5h wJ7w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=RyXSQ9NGelaxcgLQgW/D67AZhVkLxNd4d8Yb/F6dMh8=; b=EMIL/AlsS3Awde2rHVblom86NGondlmtVqzOal4ezg5QFIyUCZrUmwdTJfCz6D8uve YL5TLcUyOHx3UVd51kq+WE7KIfMmrzGHwgvhpEFvCRvc//uYpzeMxZ44qDL+P4G0zV// LbvMR88qWq/7dWdmpivTBtn85SS/lsNrgGX8zuearZOZwfBnSeo7gubdOIUtIcPYafjV hvszid+sxXo4B3/38bJyjfSUH1Z71PWNHSk+YmGRaP0yfIJniBuTLx7PuZ8b02PN9lh4 qm6Msrl9XlSccOrrzNpBOHNtpHRaiLuS03dXHBgTe2RxhxSOjyOK3LCll2cJLDifjIlj jkfA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=J32B7Au6; spf=pass (google.com: domain of linux-nfs-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-nfs-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id m10-20020a170902f64a00b00176ab3bdffdsi10826103plg.536.2022.10.03.10.49.33; Mon, 03 Oct 2022 10:50:11 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-nfs-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=J32B7Au6; spf=pass (google.com: domain of linux-nfs-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-nfs-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229486AbiJCRor (ORCPT + 99 others); Mon, 3 Oct 2022 13:44:47 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:35178 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229705AbiJCRon (ORCPT ); Mon, 3 Oct 2022 13:44:43 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [IPv6:2604:1380:4641:c500::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 1FE5C339 for ; Mon, 3 Oct 2022 10:44:37 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id 8AC6161195 for ; Mon, 3 Oct 2022 17:44:36 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 9B544C4347C; Mon, 3 Oct 2022 17:44:35 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1664819076; bh=U/ajbWiZiy/3y7Ei2/ZUIip3krZuU+SEv1n69J+sxA4=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=J32B7Au6RG52nAvCPqpJptR4HoUmmXCm3nAZCGGc6l8WQEv6y7EGok9Go+bEiIP0s DPf1bYAMeBp5WZo/eWwXcRjN+uJk4DWvqasm227i+YfszrO2E8g7bEoz3Upr7NXvhi 2z3CKkRNCt1HbtueShUzgq/Ok1b0+fF81EFa5LQu9IogvqeWbx0CjH+i/p04IT2jAq sOWZD7yo7c1ntkS55U6KOqMhGZUh1iwODIk9aZbkrj8sUU6gqoNbFxvvd549oPYnjw wPcLLatu2WaOBzCrhpHAwvW1rgs8Jt3CotpYd3vlVHk/sxW2ptKanekGxbGh6ykpFF yxTZQTyYFicYw== From: Anna Schumaker To: linux-nfs@vger.kernel.org, trond.myklebust@hammerspace.com Cc: anna@kernel.org Subject: [PATCH 3/3] NFSv4.2: Add a tracepoint for listxattr Date: Mon, 3 Oct 2022 13:44:33 -0400 Message-Id: <20221003174433.476685-3-anna@kernel.org> X-Mailer: git-send-email 2.37.3 In-Reply-To: <20221003174433.476685-1-anna@kernel.org> References: <20221003174433.476685-1-anna@kernel.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-7.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_HI, SPF_HELO_NONE,SPF_PASS autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-nfs@vger.kernel.org From: Anna Schumaker This can be defined as simply an NFS4_INODE_EVENT() since we don't have the name of a specific xattr to list. This roughly matches readdir, which also uses an NFS4_INODE_EVENT() tracepoint. Signed-off-by: Anna Schumaker --- fs/nfs/nfs42proc.c | 1 + fs/nfs/nfs4trace.h | 2 ++ 2 files changed, 3 insertions(+) diff --git a/fs/nfs/nfs42proc.c b/fs/nfs/nfs42proc.c index c4791ca00df1..ced9170701b6 100644 --- a/fs/nfs/nfs42proc.c +++ b/fs/nfs/nfs42proc.c @@ -1320,6 +1320,7 @@ static ssize_t _nfs42_proc_listxattrs(struct inode *inode, void *buf, ret = nfs4_call_sync(server->client, server, &msg, &arg.seq_args, &res.seq_res, 0); + trace_nfs4_listxattr(inode, ret); if (ret >= 0) { ret = res.copied; diff --git a/fs/nfs/nfs4trace.h b/fs/nfs/nfs4trace.h index 650c9353826f..2cff5901c689 100644 --- a/fs/nfs/nfs4trace.h +++ b/fs/nfs/nfs4trace.h @@ -2542,6 +2542,8 @@ DECLARE_EVENT_CLASS(nfs4_xattr_event, DEFINE_NFS4_XATTR_EVENT(nfs4_getxattr); DEFINE_NFS4_XATTR_EVENT(nfs4_setxattr); DEFINE_NFS4_XATTR_EVENT(nfs4_removexattr); + +DEFINE_NFS4_INODE_EVENT(nfs4_listxattr); #endif /* CONFIG_NFS_V4_2 */ #endif /* CONFIG_NFS_V4_1 */ -- 2.37.3