From patchwork Thu Jul 4 03:07:02 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Hongbo Li X-Patchwork-Id: 13723149 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 4D6A8C2BD09 for ; Thu, 4 Jul 2024 03:03:35 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id B72006B008C; Wed, 3 Jul 2024 23:03:34 -0400 (EDT) Received: by kanga.kvack.org (Postfix, from userid 40) id B218C6B0093; Wed, 3 Jul 2024 23:03:34 -0400 (EDT) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 9E9276B0095; Wed, 3 Jul 2024 23:03:34 -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 8119B6B008C for ; Wed, 3 Jul 2024 23:03:34 -0400 (EDT) Received: from smtpin24.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay08.hostedemail.com (Postfix) with ESMTP id 1B020140849 for ; Thu, 4 Jul 2024 03:03:34 +0000 (UTC) X-FDA: 82300574748.24.37866FA Received: from szxga01-in.huawei.com (szxga01-in.huawei.com [45.249.212.187]) by imf17.hostedemail.com (Postfix) with ESMTP id 0D17E40011 for ; Thu, 4 Jul 2024 03:03:30 +0000 (UTC) Authentication-Results: imf17.hostedemail.com; dkim=none; spf=pass (imf17.hostedemail.com: domain of lihongbo22@huawei.com designates 45.249.212.187 as permitted sender) smtp.mailfrom=lihongbo22@huawei.com; dmarc=pass (policy=quarantine) header.from=huawei.com ARC-Seal: i=1; s=arc-20220608; d=hostedemail.com; t=1720062199; a=rsa-sha256; cv=none; b=sP83kmK7paiTpn1eHC4/lhwGppiwJKwmKDtadCNcG1DvbrI7VEcqrFka5T2Kk6kjQgCa0l oumEfncTa8Vw/8EK3aA/I9axErYHzBPUbUdbCWYTDdQNzJ0uZTQL8fbOR/LsZb5PVm/NkF qY+qQmpgXtQCoghL9CLKCcnyLr/N8Sg= ARC-Authentication-Results: i=1; imf17.hostedemail.com; dkim=none; spf=pass (imf17.hostedemail.com: domain of lihongbo22@huawei.com designates 45.249.212.187 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=1720062199; 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=wD5lRxbrCHIchkE0TE06hFWDzr+xyDvdhAlGmbFPXxU=; b=NDJf9PTJ52MYl53mu5kh72d/IT8sf4pNLpOSJWkwPFlCoXJQRC4jdcy9be5AFjWKWckUin BpRWZRwNGiocuXjgDxSr4YR8GOcrDGKF4Nk8bUeGapB5tiBOTQwAc8f8oYJuoVVZieYW3n zzP9dvW+hKx9d1F4oSlrQAnmLT5tUuY= Received: from mail.maildlp.com (unknown [172.19.163.252]) by szxga01-in.huawei.com (SkyGuard) with ESMTP id 4WF1ZB2hMHzxTF6; Thu, 4 Jul 2024 10:58:58 +0800 (CST) Received: from dggpeml500022.china.huawei.com (unknown [7.185.36.66]) by mail.maildlp.com (Postfix) with ESMTPS id 9F06F180A9C; Thu, 4 Jul 2024 11:03:26 +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, 4 Jul 2024 11:03:26 +0800 From: Hongbo Li To: , , , CC: , , , Subject: [PATCH v2 0/2] Introduce tracepoint for hugetlbfs Date: Thu, 4 Jul 2024 11:07:02 +0800 Message-ID: <20240704030704.2289667-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: dggems703-chm.china.huawei.com (10.3.19.180) To dggpeml500022.china.huawei.com (7.185.36.66) X-Stat-Signature: ykn33153wwzqtayh1poo3wjb4i9z31p5 X-Rspamd-Queue-Id: 0D17E40011 X-Rspam-User: X-Rspamd-Server: rspam10 X-HE-Tag: 1720062210-349997 X-HE-Meta: U2FsdGVkX19iyCi1MVXbzORc8VuwgXoRX+aiyyUitG/6WCxto8WkV02ASHSMuiMHODNYkkF2DWOSmEel1jdaVYyKT0PpRCRig7j/fV07zow8twhHv3wJUJzdIpU+v1NPXl1O8xtkYAisu9REsZhFBr8xvOjMyM7hHlgiF/h4UygEjw+MLkrEbvDpWrTg9GBb+ekeldf9XpWinElHcspYk62hAlCkDh4yWFGbu/6Y/syP7fO9BtPFWmbyMNdYJH5NF6ESO/1j7OlEStDPFfFEZsrmfOVMFdGKdEeyx/YNspIFdJKxVsTnmhj9JbZU1y8iJXAFgeJ3Mwjp7/dedBdjPt9diEsxZd8iZHhPxe+MhC5NjxVb/a0+J44heLvfuM1aojqbTLajiw2w9X8rQ/skCyJrW2aI85fZdiC3+FsHHuht/CJpUi6FI8L9dBAQSKEoRwu6tW/VqQnLMhFb6I6q0Ft5J/BDc+rpXtHU3P5RPCv8k1U2oNzpxZRcBfdkrE6h6J4sH8nMpRu+zw0h/1gFFdE04EXV2Zgs9jZ6nMy3gEtKtsJtQwJIBeiIPhiYHW2iSUC/7iHqTo+eYOyX5OU9ZtgiBVUEVa/Z7H5ylL4gScZUzaHHnJXTGaRI7Q52+ZgaYL8owpT/oPFK5tl/tAvmvMvSajmDabIbfNbsVZ4xjvNAb58V2xWW0DWSxgipiGBznDZNxbEKqVxsQ0CX9lSRANxm/cRGPLTyNo3uLTqC4zvYOBMYbRGTEcTjowyJHlVF8OmEbHJu9CD9kkg4ltbRPRMphgRC0ANko0Gv5GvXtzcOqTSoFWKQHzNUFypiGW9TIKaW8YL3/xUxwVtv4eUhikcY/FE+Lj6cFMwBlZ8F+cKzk5nspBoKQ/Ic0qDBcegUzcgZRnv2NiwMsRfRlLsB9EOmwDjA9lRodM5vnbt70CEy43aF33CeAsV8OmzaEBSHA9Oe5eK2+x64Z66cKL3 xEJUnDtP hzSWdfGpCtYqb+4ov+9OZNs1sokTeN8uj7IxFQGjIKt3F0f3K0+ZJVy4cLFGWnNrGvXYSkbGswltx+hAtQt+z86wfDcp5qPbggQUgtnw0205XtcfJi2KgN94vJsB91d2gjgJhfI0+sJDb4hQP4oFP49XpbdxxPg9e3gZMjBjDSaMGCxIVY/w0cJuh4RIivo+qYr6EjhztWxMeCxc= 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: Here we add some basic tracepoints for debugging hugetlbfs: {alloc, free, evict}_inode, setattr and fallocate. 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 | 160 +++++++++++++++++++++++++++++++ 3 files changed, 176 insertions(+), 2 deletions(-) create mode 100644 include/trace/events/hugetlbfs.h