From patchwork Thu Dec 21 13:23:33 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: David Howells X-Patchwork-Id: 13501952 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 5348AC46CCD for ; Thu, 21 Dec 2023 13:26:49 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id 560826B00A2; Thu, 21 Dec 2023 08:26:42 -0500 (EST) Received: by kanga.kvack.org (Postfix, from userid 40) id 4E1698D002F; Thu, 21 Dec 2023 08:26:42 -0500 (EST) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 33B0F8D002C; Thu, 21 Dec 2023 08:26:42 -0500 (EST) X-Delivered-To: linux-mm@kvack.org Received: from relay.hostedemail.com (smtprelay0016.hostedemail.com [216.40.44.16]) by kanga.kvack.org (Postfix) with ESMTP id 1554C6B00A2 for ; Thu, 21 Dec 2023 08:26:42 -0500 (EST) Received: from smtpin25.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay02.hostedemail.com (Postfix) with ESMTP id E73CA120D77 for ; Thu, 21 Dec 2023 13:26:41 +0000 (UTC) X-FDA: 81590900202.25.1A2E19B Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.129.124]) by imf23.hostedemail.com (Postfix) with ESMTP id 488BF14001E for ; Thu, 21 Dec 2023 13:26:40 +0000 (UTC) Authentication-Results: imf23.hostedemail.com; dkim=pass header.d=redhat.com header.s=mimecast20190719 header.b=fzyiNyZr; spf=pass (imf23.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=1703165200; 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=Cgmint4U4io/DVGAE4w1KSEF3oUqI6P46d5eIrAz1MA=; b=g5d58INarl/PHF085XlV7tImUPe1rBh2kLJCff7RBDwx58dD4sxXtG5yv/wcoPsTwSzBVI sjKQJv/tAEuet9Q9r2DDyzhcsfLOdYQI+lwPO823e/DE5XzaAG8bKd6BbRA8PQxKpPz6pA nSNDKeBFkE7EGsH6Hk45q+SnB8yGBGM= ARC-Seal: i=1; s=arc-20220608; d=hostedemail.com; t=1703165200; a=rsa-sha256; cv=none; b=2oSuvZqUivccWQa9qYcw+qP8Jy2vIIIwX0mOnSk8DTWBjI1u6WuXaB+QKxQ5+JvF4wK0sv V8nCidVOAdiIMBkVq0OZyB3/aU3eQAR/XHTeA9heL/HkevBYyji2IgWaaRdiU5uS6XEo3H YppWRaCSYgHhM4VidiOK4Kqpa27HbDU= ARC-Authentication-Results: i=1; imf23.hostedemail.com; dkim=pass header.d=redhat.com header.s=mimecast20190719 header.b=fzyiNyZr; spf=pass (imf23.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=1703165199; 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=Cgmint4U4io/DVGAE4w1KSEF3oUqI6P46d5eIrAz1MA=; b=fzyiNyZrHh6LmcR2ufspN5E3APhiVh9GX7h+6XiLDoKTt5E7P+D1AgSHRBvMC/iiLYRL+g yUF1PRiNohOiHtVrv40Oyf14u84A2kV74N7F3UV2LUMts+KMSK+G4OTQj/t8lSZWcvTMas 1LGrFCv2eIowmco2SdhXP5KsYPTWKDI= 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-549-pqTftYibP0msZ8hPWGw4Ig-1; Thu, 21 Dec 2023 08:26:34 -0500 X-MC-Unique: pqTftYibP0msZ8hPWGw4Ig-1 Received: from smtp.corp.redhat.com (int-mx10.intmail.prod.int.rdu2.redhat.com [10.11.54.10]) (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 4E1E785A58A; Thu, 21 Dec 2023 13:26:33 +0000 (UTC) Received: from warthog.procyon.org.com (unknown [10.39.195.169]) by smtp.corp.redhat.com (Postfix) with ESMTP id 6A75A492BFA; Thu, 21 Dec 2023 13:26:30 +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 v5 38/40] netfs: Export the netfs_sreq tracepoint Date: Thu, 21 Dec 2023 13:23:33 +0000 Message-ID: <20231221132400.1601991-39-dhowells@redhat.com> In-Reply-To: <20231221132400.1601991-1-dhowells@redhat.com> References: <20231221132400.1601991-1-dhowells@redhat.com> MIME-Version: 1.0 X-Scanned-By: MIMEDefang 3.4.1 on 10.11.54.10 X-Rspamd-Queue-Id: 488BF14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DgTvUkr 6NBc3BqWVqrIg1QwWJDgcGi6WNUCXAPNRjXQGbtstLLAH6hBaON72UvL5G6FF3jqiZwl5/Hh7kUshClLb0jTBKh/ZfIcBsG1C4dGoXC1jfvRsITQ/GPHuVmSlA9evotqBb8UNHJG4RU44Ooe5rBj3o3ebyAEZuiZ6l1bNdsbEq5sIuIzUPwHe9qo6LVUsGSw2Y1OnN2n/7cqHnDqjjkHenmSeZTFLwebDOat4A1/gfF6dbN022XE/RQrUrBUIy3Id/NYm2+SIuU1ohtJrYXtvwWzd9Pzv7wryoXpU8UU7hk/0p7bR9zDwjzvd4CFoNjhyVE1ey2JQr6lR9FwgxhhES++9Uw== 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 the netfs_sreq tracepoint so that it can be called directly from client filesystems/cache backend modules. 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 | 2 ++ 1 file changed, 2 insertions(+) diff --git a/fs/netfs/main.c b/fs/netfs/main.c index 81a13071b258..5e77618a7940 100644 --- a/fs/netfs/main.c +++ b/fs/netfs/main.c @@ -17,6 +17,8 @@ MODULE_DESCRIPTION("Network fs support"); MODULE_AUTHOR("Red Hat, Inc."); MODULE_LICENSE("GPL"); +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");