From patchwork Wed Dec 13 15:23:28 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: David Howells X-Patchwork-Id: 13491224 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from kanga.kvack.org (kanga.kvack.org [205.233.56.17]) by smtp.lore.kernel.org (Postfix) with ESMTP id EB988C4332F for ; Wed, 13 Dec 2023 15:25:25 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id 756508D002A; Wed, 13 Dec 2023 10:25:19 -0500 (EST) Received: by kanga.kvack.org (Postfix, from userid 40) id 5F75C8D0015; Wed, 13 Dec 2023 10:25:19 -0500 (EST) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 24AE78D002B; Wed, 13 Dec 2023 10:25:19 -0500 (EST) X-Delivered-To: linux-mm@kvack.org Received: from relay.hostedemail.com (smtprelay0012.hostedemail.com [216.40.44.12]) by kanga.kvack.org (Postfix) with ESMTP id F22A08D002A for ; Wed, 13 Dec 2023 10:25:18 -0500 (EST) Received: from smtpin28.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay03.hostedemail.com (Postfix) with ESMTP id CBB00A01C1 for ; Wed, 13 Dec 2023 15:25:18 +0000 (UTC) X-FDA: 81562168716.28.663C0A5 Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.129.124]) by imf27.hostedemail.com (Postfix) with ESMTP id 254194001F for ; Wed, 13 Dec 2023 15:25:16 +0000 (UTC) Authentication-Results: imf27.hostedemail.com; dkim=pass header.d=redhat.com header.s=mimecast20190719 header.b=XuGokl76; spf=pass (imf27.hostedemail.com: domain of dhowells@redhat.com designates 170.10.129.124 as permitted sender) smtp.mailfrom=dhowells@redhat.com; dmarc=pass (policy=none) header.from=redhat.com ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=hostedemail.com; s=arc-20220608; t=1702481117; h=from:from:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references:dkim-signature; bh=lvA6ro7QUMhtjJlsHPwIgzyPLJOZgWtkvO2st3qI+pQ=; b=ZnzefD2t8OOCH14iKwTXVwsTwXrDFdCjZu4h0EPwusLbVkpafJ1jtF8kxXJiLERB2DISEr BQavzUTjlEzx3uspThtae6QaGOTb1biMBh4rlUMiXIkBUApnJaTbAqT1gvs9qA2ZaTVCOR VqbVPk0e8heutReAmZtGsYLS0BPgCec= ARC-Seal: i=1; s=arc-20220608; d=hostedemail.com; t=1702481117; a=rsa-sha256; cv=none; b=DyMEYG1ilkhEaPP9tqNt1YQ7+FozrFD7+14XTUn5dBNpGI5LtuYgtWv6r1TzluZF4ymfcV KG7NKEg4rx1yyEdjuF7P23MOKqNAEw0Jo58domliuGmiRwLvU2lwlH2QKq6dOJwMyrUzn7 chjLhldDp2QNtoM0CSyB0jpUorh4PLk= ARC-Authentication-Results: i=1; imf27.hostedemail.com; dkim=pass header.d=redhat.com header.s=mimecast20190719 header.b=XuGokl76; spf=pass (imf27.hostedemail.com: domain of dhowells@redhat.com designates 170.10.129.124 as permitted sender) smtp.mailfrom=dhowells@redhat.com; dmarc=pass (policy=none) header.from=redhat.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1702481116; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=lvA6ro7QUMhtjJlsHPwIgzyPLJOZgWtkvO2st3qI+pQ=; b=XuGokl767gJGPoyK9vIuO2SxMNaI8WI2tu124l3IP2ovKf3g1P7CCQeRa8un5eHD5yPR+Z y0xbxJheYt+RVEoYfOmi+KMcoFxloPvxmDjcIgVbO50ehxuYGdVMLkqO0cOK2gGzfArG9w syzRpRK23ZaHvjs5cfwD6pgKkxwpVS8= Received: from mimecast-mx02.redhat.com (mimecast-mx02.redhat.com [66.187.233.88]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id us-mta-671-iyLSuWLZPsOdcU7o8BoPxg-1; Wed, 13 Dec 2023 10:25:13 -0500 X-MC-Unique: iyLSuWLZPsOdcU7o8BoPxg-1 Received: from smtp.corp.redhat.com (int-mx06.intmail.prod.int.rdu2.redhat.com [10.11.54.6]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by mimecast-mx02.redhat.com (Postfix) with ESMTPS id B2A0F88FA32; Wed, 13 Dec 2023 15:25:11 +0000 (UTC) Received: from warthog.procyon.org.com (unknown [10.42.28.2]) by smtp.corp.redhat.com (Postfix) with ESMTP id BDB4C2166B31; Wed, 13 Dec 2023 15:25:07 +0000 (UTC) From: David Howells To: Jeff Layton , Steve French Cc: David Howells , Matthew Wilcox , Marc Dionne , Paulo Alcantara , Shyam Prasad N , Tom Talpey , Dominique Martinet , Eric Van Hensbergen , Ilya Dryomov , Christian Brauner , linux-cachefs@redhat.com, linux-afs@lists.infradead.org, linux-cifs@vger.kernel.org, linux-nfs@vger.kernel.org, ceph-devel@vger.kernel.org, v9fs@lists.linux.dev, linux-fsdevel@vger.kernel.org, linux-mm@kvack.org, netdev@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH v4 18/39] netfs: Export netfs_put_subrequest() and some tracepoints Date: Wed, 13 Dec 2023 15:23:28 +0000 Message-ID: <20231213152350.431591-19-dhowells@redhat.com> In-Reply-To: <20231213152350.431591-1-dhowells@redhat.com> References: <20231213152350.431591-1-dhowells@redhat.com> MIME-Version: 1.0 X-Scanned-By: MIMEDefang 3.4.1 on 10.11.54.6 X-Stat-Signature: k336d4pyoebxtrgro7zc9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w5svPgitivnAtmHVJ+kXw0UMTQUya8Ix9kBN0osBH5sxPwzFMLzd3rtkGOliHGI6pkSv+Z/YfOMGmwtUwNSZV8WFipAVPqykMIaP0Dm8dwp4nwdnEHCvl0HUYWiMAxNctX7veHxUoZTk8RCCMMKd3RZGbQ9QKksL4u0c4CmZxyGkU1Dnidfc2vCtC8SK4RHwx8Udh6cLSz5k4UVEm0SlTgPF/E0OZu896GA1IyelHPMQKCL/Byi/taSOCCGxvBuaBPoIRhDfA6w2GTEEUguF1tMVgdjN9hX6uISrh75yUkuWbzTyXi+TnSzc5dm7p+BmzLAs04pq7WUa8kES6bsYmxj5cGQ== 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: List-Subscribe: List-Unsubscribe: Export netfs_put_subrequest() and the netfs_rreq and netfs_sreq tracepoints. Signed-off-by: David Howells cc: Jeff Layton cc: linux-cachefs@redhat.com cc: linux-fsdevel@vger.kernel.org cc: linux-mm@kvack.org --- fs/netfs/main.c | 3 +++ fs/netfs/objects.c | 1 + 2 files changed, 4 insertions(+) diff --git a/fs/netfs/main.c b/fs/netfs/main.c index 97ce1436615b..404e68e339bf 100644 --- a/fs/netfs/main.c +++ b/fs/netfs/main.c @@ -17,6 +17,9 @@ MODULE_DESCRIPTION("Network fs support"); MODULE_AUTHOR("Red Hat, Inc."); MODULE_LICENSE("GPL"); +EXPORT_TRACEPOINT_SYMBOL(netfs_rreq); +EXPORT_TRACEPOINT_SYMBOL(netfs_sreq); + unsigned netfs_debug; module_param_named(debug, netfs_debug, uint, S_IWUSR | S_IRUGO); MODULE_PARM_DESC(netfs_debug, "Netfs support debugging mask"); diff --git a/fs/netfs/objects.c b/fs/netfs/objects.c index 9f3f33c93317..a7947e82374a 100644 --- a/fs/netfs/objects.c +++ b/fs/netfs/objects.c @@ -178,3 +178,4 @@ void netfs_put_subrequest(struct netfs_io_subrequest *subreq, bool was_async, if (dead) netfs_free_subrequest(subreq, was_async); } +EXPORT_SYMBOL(netfs_put_subrequest);