Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp4561185rwd; Tue, 30 May 2023 07:06:56 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ5dno0d6GhwgPhPUSWhz8oGLC+vWEVx07Imwng5zVJJRSIhDa1/qK80BqPgBv5Fmk2NRRCp X-Received: by 2002:a17:90b:3109:b0:256:33ba:8f65 with SMTP id gc9-20020a17090b310900b0025633ba8f65mr2474188pjb.44.1685455615802; Tue, 30 May 2023 07:06:55 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1685455615; cv=none; d=google.com; s=arc-20160816; b=0LBp4XsaYGHc4w1Utk+xrHCKCunxW7yOX5rDy8l7T3hSzLlO9j5n7A4gAeg17CcAzH ljVWrJKb2d6n9ErlSx1EJbz7RpsKrvACyiFcXmQ4gM5nA5bZ5+Z8O64zPop/+mVfcNFo GQVCLY+e4JaHeVlxj9cTfwwljtsC6M9YwMcmH+VUVerFJx+mcqW6plvCXvi32dzdXOj9 lSZ3cAubOJMx0OVIs+Kfy0gOV/YAfKNwUC6J0T7vHYY+4mbJRO2qr7MadEf8Ux4VWdDr zYQYcL9GGHcevBQZePkdC0uGUSZ8BKovcNYoQitD1g/DKW8QeJ9lm2BbMJG7jlr4VLHv jVHQ== 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 :user-agent:references:in-reply-to:message-id:date:cc:to:from :subject:dkim-signature; bh=OFjRc9GKP30/QXFgsMJJqEDlZuwFyt4HJyfLaHh+o0Q=; b=a/D+l1r8YSh4AeEs2uN1pSdr6EwbYz1mTwN1BeDBAPEaqGATXcGQkzZFdNKk3XTG+v OJ4cELAojyArE3Y5Pc2rGQBzaPFZ5yW5L0VJB5VCHZX1hxWfauctvdw2aKgdlI7l3Fe8 hU8Q0+Ih9YBxWarE1cd6Z6tHRWo5zhUVX/v0l82eWrHrVpxF1qBZTrDLxmIqoITr4Y0G l5CjBixD3lfrGOx8VAIC8Oax4lzyEUREDos+NfxmrBuMiLL2pJn+pS3KFg6OSo9AH0cJ LAx9peAQEXA3eEur3DxC0Jpyaifx3xNVThHzWAA9ZLClTMkogUImhSTA3gfXIA5gfk/d xYfw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=SNIWdVia; 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 k130-20020a633d88000000b00528d0d8b7bbsi1364160pga.595.2023.05.30.07.06.40; Tue, 30 May 2023 07:06:55 -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=SNIWdVia; 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 S232729AbjE3OF5 (ORCPT + 99 others); Tue, 30 May 2023 10:05:57 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:50080 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232895AbjE3OFz (ORCPT ); Tue, 30 May 2023 10:05:55 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [139.178.84.217]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 535D510A for ; Tue, 30 May 2023 07:05:49 -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 D35C962461 for ; Tue, 30 May 2023 14:05:48 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id B97DBC433D2; Tue, 30 May 2023 14:05:47 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1685455548; bh=k0Q/ahGF0o430xNI/stJcQcOEnDzyH5ZV74UxoXnvOw=; h=Subject:From:To:Cc:Date:In-Reply-To:References:From; b=SNIWdVia1PguX26p7HlwDbCt+ngyd/MYrJeTgDAO+5PH+nrXYSO7jLdpuk+ae8oiv UhBe4HIT+UTp794O3BmI0gSlonaUpgjC5BUwHVldVALWbwjCLY1OwxcOnIoC7gDrQs AwFmOJc2PjRqwrhOBh6KeBS20dkmjEy3FbyXYmGOGZHUiTlwW+ulUzujIJFL1duChL 9NnGMxax2fJ9RgFoUbYy8nkXV5HwDU+TMudcqeP9LC1pXVSMf5jOWTqkW+nnsJY0av VdgViboKaoGBGb8VwPPu8DhOu8DRSey03+z5eipUtmuNu2M5DgpLk5YvUtGocHjhSy 4giZt3M/IcqCQ== Subject: [PATCH v3 01/11] NFS: Improvements for fs_context-related tracepoints From: Chuck Lever To: anna.schumaker@netapp.com, trondmy@hammerspace.com Cc: Chuck Lever , Jeff Layton , jlayton@redhat.com, linux-nfs@vger.kernel.org, kernel-tls-handshake@lists.linux.dev Date: Tue, 30 May 2023 10:05:36 -0400 Message-ID: <168545552661.1917.15372563404722059237.stgit@oracle-102.nfsv4bat.org> In-Reply-To: <168545533442.1917.10040716812361925735.stgit@oracle-102.nfsv4bat.org> References: <168545533442.1917.10040716812361925735.stgit@oracle-102.nfsv4bat.org> User-Agent: StGit/1.5 MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-7.3 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,T_SCC_BODY_TEXT_LINE 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: Chuck Lever Add some missing observability to the fs_context tracepoints added by commit 33ce83ef0bb0 ("NFS: Replace fs_context-related dprintk() call sites with tracepoints"). Signed-off-by: Chuck Lever Reviewed-by: Jeff Layton --- fs/nfs/fs_context.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/fs/nfs/fs_context.c b/fs/nfs/fs_context.c index 9bcd53d5c7d4..5626d358ee2e 100644 --- a/fs/nfs/fs_context.c +++ b/fs/nfs/fs_context.c @@ -791,16 +791,19 @@ static int nfs_fs_context_parse_param(struct fs_context *fc, ctx->mount_server.addrlen = len; break; case Opt_nconnect: + trace_nfs_mount_assign(param->key, param->string); if (result.uint_32 < 1 || result.uint_32 > NFS_MAX_CONNECTIONS) goto out_of_bounds; ctx->nfs_server.nconnect = result.uint_32; break; case Opt_max_connect: + trace_nfs_mount_assign(param->key, param->string); if (result.uint_32 < 1 || result.uint_32 > NFS_MAX_TRANSPORTS) goto out_of_bounds; ctx->nfs_server.max_connect = result.uint_32; break; case Opt_lookupcache: + trace_nfs_mount_assign(param->key, param->string); switch (result.uint_32) { case Opt_lookupcache_all: ctx->flags &= ~(NFS_MOUNT_LOOKUP_CACHE_NONEG|NFS_MOUNT_LOOKUP_CACHE_NONE); @@ -817,6 +820,7 @@ static int nfs_fs_context_parse_param(struct fs_context *fc, } break; case Opt_local_lock: + trace_nfs_mount_assign(param->key, param->string); switch (result.uint_32) { case Opt_local_lock_all: ctx->flags |= (NFS_MOUNT_LOCAL_FLOCK | @@ -837,6 +841,7 @@ static int nfs_fs_context_parse_param(struct fs_context *fc, } break; case Opt_write: + trace_nfs_mount_assign(param->key, param->string); switch (result.uint_32) { case Opt_write_lazy: ctx->flags &=