From patchwork Thu Aug 29 06:41:08 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Hongbo Li X-Patchwork-Id: 13782625 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 1757FC761AE for ; Thu, 29 Aug 2024 06:33:20 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id 7862D6B00AF; Thu, 29 Aug 2024 02:33:20 -0400 (EDT) Received: by kanga.kvack.org (Postfix, from userid 40) id 6E78A6B00B1; Thu, 29 Aug 2024 02:33:20 -0400 (EDT) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 45CA86B00B5; Thu, 29 Aug 2024 02:33:20 -0400 (EDT) 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 1C1BF6B00AF for ; Thu, 29 Aug 2024 02:33:20 -0400 (EDT) Received: from smtpin23.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay06.hostedemail.com (Postfix) with ESMTP id 7F1B8A9E74 for ; Thu, 29 Aug 2024 06:33:19 +0000 (UTC) X-FDA: 82504316118.23.AD96803 Received: from szxga02-in.huawei.com (szxga02-in.huawei.com [45.249.212.188]) by imf05.hostedemail.com (Postfix) with ESMTP id 70E29100008 for ; Thu, 29 Aug 2024 06:33:16 +0000 (UTC) Authentication-Results: imf05.hostedemail.com; dkim=none; spf=pass (imf05.hostedemail.com: domain of lihongbo22@huawei.com designates 45.249.212.188 as permitted sender) smtp.mailfrom=lihongbo22@huawei.com; dmarc=pass (policy=quarantine) header.from=huawei.com ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=hostedemail.com; s=arc-20220608; t=1724913108; 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-type: content-transfer-encoding:content-transfer-encoding:in-reply-to: references; bh=/z2C3Z+wgV/0MP78b+nJFkrhDK5/rBt/kfcuDZBPDsw=; b=AMahGaUIcVfbIrCf5CYwRvyS7jMp98QbZ8n+fYbNmyEVBeFjXs6mILBsaw/bF9872stRQ3 N70ipnNCuPOngRlR1f133oG62uMHZ0v114B9moRUZp2qsjJMnHcBD03XZPmdZwwLlkERxG 43oYE1JF8ezQk1sNDfc+HP3a7t2zQP0= ARC-Seal: i=1; s=arc-20220608; d=hostedemail.com; t=1724913108; a=rsa-sha256; cv=none; b=1BW99/XALYgnzxmp3pe+Zwg9dgeYC7lHmlw+V1AdddEZNAPCVt2JQUZxqiZa+P8GkZ9U3Q HiPvlpA2lo3ScOiz2ChzV3L4ebkYY2BYimF7QSjzThf+9q/9DlhvGniQ0iVIUdAZDA8ssi 1Yoz5vOux9wXLMaZEaTNthYdn5KVcNQ= ARC-Authentication-Results: i=1; imf05.hostedemail.com; dkim=none; spf=pass (imf05.hostedemail.com: domain of lihongbo22@huawei.com designates 45.249.212.188 as permitted sender) smtp.mailfrom=lihongbo22@huawei.com; dmarc=pass (policy=quarantine) header.from=huawei.com Received: from mail.maildlp.com (unknown [172.19.162.254]) by szxga02-in.huawei.com (SkyGuard) with ESMTP id 4WvWd74PxgzfbVg; Thu, 29 Aug 2024 14:31:07 +0800 (CST) Received: from dggpeml500022.china.huawei.com (unknown [7.185.36.66]) by mail.maildlp.com (Postfix) with ESMTPS id E38B5180105; Thu, 29 Aug 2024 14:33:11 +0800 (CST) Received: from huawei.com (10.90.53.73) by dggpeml500022.china.huawei.com (7.185.36.66) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.1.2507.39; Thu, 29 Aug 2024 14:33:11 +0800 From: Hongbo Li To: , , , , , CC: , , Subject: [PATCH RESEND v3 0/2] Introduce tracepoint for hugetlbfs Date: Thu, 29 Aug 2024 14:41:08 +0800 Message-ID: <20240829064110.67884-1-lihongbo22@huawei.com> X-Mailer: git-send-email 2.34.1 MIME-Version: 1.0 X-Originating-IP: [10.90.53.73] X-ClientProxiedBy: dggems701-chm.china.huawei.com (10.3.19.178) To dggpeml500022.china.huawei.com (7.185.36.66) X-Stat-Signature: tf9jx4cswrygk1twpkgpoep67m1wpro7 X-Rspamd-Queue-Id: 70E29100008 X-Rspam-User: X-Rspamd-Server: rspam08 X-HE-Tag: 1724913196-597078 X-HE-Meta: U2FsdGVkX1+AdA4QpfjgjfIW7/fP2jujgeCLpPT5thzf6SX6UD2xsfth64JLec5OhJZbLQQ3spJTmP0PN/aDppq5enHPdQzfkEYjSdty5HiB6yKFY3E5Ynh0OXOuidmcJ8tG/4t992GP5Rk3q77/+G2UCSkgpONwdC94L1ynLGmM8U2kL2m4ALLaYwGdJXpd/pBliS47aaPUlM1RWUykFXnPv1jN+5NJNPLHuUAmecsyGzoILjT+1Qt9CXMsld1HR9ZRAIfTzy2l3VyiOt5gOlZB6Ud7GkrfXcZhfu7Aaajk5FPuJo0rCWnH2sgoytqpVVngAv3aB4bBGEMXlLK625ls3rHDoA45kdjjd9ehzR+W9EEWk9xSzksV0FDytHFw/+HWgVi3wEelOvnkzo+LpWpCzGwdFFVEt2VmAOOxlsZDg5tKvAOfzq5ahNOsssk5Lx8G5fOgkOT1Ff1LP7pRqLDSStLVvHFRV0TjM4OoY3hnB7JvTdF4mdDi/K2L42vzV3R13JQMK4zoVtjJI1NWbNX/5+01jP+T0//V3DnAczGDyfmGDtJiXbNvM1wdbK8dCxW7Yg2N3VO/caDmdhTSKV5Zabb7Ha3/IkTQ0mrFHDLRojV5N7IJqDWhgDfRHjU22xG5PjBal5ePffc7aP4HPm0TNB3wdJpwIANwWMPO7LMQKI9JX+SRJTVyjp83xKpVm1ar2LocidAoFMkagXZAIUgMlrnY57OXGUqjZOEVsnWnTuOKkRC0HQ3zBZyxySvTsavnhi4eF+r1SxZSOv7zV15UfsY0i2PEge7/3B9ThpYiEPZSupto3PDEVpcTp3bRMUtL0MVOOrLRjP5hqhX85AtQ1MeOCkKAz7zayI1JjfgOPuGF0Q3G661HnPAzWTURClHrHxJ9cO3XgS0WwMOAaIkhN3521EtNcZ3rXQOZO6OoGZFga/MPD/BE/eMsqcbK+72vRVSrgWi4IsxCjcT SQWl9cgP 0vV3J2Kcec/orrdHyx4S7mzOZyp+WwUtoitxyNMBzRb90mTzoE6QKZuzzwh7oDLu1bDdE1gdyCVuLm0cKYwVudC7/uhwu7aQ4dTwDmzdO+R9TsMiOnD6hcZi5dUrZ1nQoj/BswS0tDYtNHzYQean7CdMcGJMJKuBy4lWtUPl7dW/K9vhaSWeN6w+cr3N17HfSrAsMOqOEQJ9uxG+b0qX5wGRwJQdNkBPlayNbOyWVNDrbhrALx1S7vaFnzA== X-Bogosity: Ham, tests=bogofilter, spamicity=0.000001, version=1.2.4 Sender: owner-linux-mm@kvack.org Precedence: bulk X-Loop: owner-majordomo@kvack.org List-ID: List-Subscribe: List-Unsubscribe: Here we add some basic tracepoints for debugging hugetlbfs: {alloc, free, evict}_inode, setattr and fallocate. v2 can be found at: https://lore.kernel.org/all/ZoYY-sfj5jvs8UpQ@casper.infradead.org/T/ Changes since v2: - Simplify the tracepoint output for setattr. - Make every token be space separated. v1 can be found at: https://lore.kernel.org/linux-mm/20240701194906.3a9b6765@gandalf.local.home/T/ Changes since v1: - Decrease the parameters for setattr tracer suggested by Steve and Mathieu. - Replace current_user_ns() with init_user_ns when translate uid/gid. Hongbo Li (2): hugetlbfs: support tracepoint hugetlbfs: use tracepoints in hugetlbfs functions. MAINTAINERS | 1 + fs/hugetlbfs/inode.c | 17 +++- include/trace/events/hugetlbfs.h | 156 +++++++++++++++++++++++++++++++ 3 files changed, 172 insertions(+), 2 deletions(-) create mode 100644 include/trace/events/hugetlbfs.h