Message ID | 20240130013549.89538-8-sj@kernel.org |
---|---|
State | New |
Headers |
Return-Path: <linux-kernel+bounces-43727-ouuuleilei=gmail.com@vger.kernel.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:a05:7301:2087:b0:106:209c:c626 with SMTP id gs7csp940375dyb; Mon, 29 Jan 2024 17:38:11 -0800 (PST) X-Google-Smtp-Source: AGHT+IF8Y0Sz54zfGpDf8SAAyAgOjuhqf7l6JLLaTe+Yb3iQcW4ompqcoSrLthI9PsueoXkAmhRD X-Received: by 2002:a17:902:e752:b0:1d7:3962:4ce5 with SMTP id p18-20020a170902e75200b001d739624ce5mr8643788plf.67.1706578691261; Mon, 29 Jan 2024 17:38:11 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1706578691; cv=pass; d=google.com; s=arc-20160816; b=jtUWfqQQkcx+G77t6Sr9nyexd1pmh/i6fVHHX63zJ1GBvHNdzm2TPiqlBRsNTloLSW ScVbZLS1ohekr4n2GKpCzM942QbxLW7Q6GJ5IUtObHXWR4/Of8mA4+Qa0HHE/PwQmMlE p3yD3GxddBy2VtLukMRWjSISYg47WqhE7GPSV736545SXDW4tyO6y+NoKjlMBwbZ8X0M 6xf/ZKBeE6Qu/24EAzFB0scpOsZTsaYX8xCuRv5CNyWzXQtgQ3Msc6kjNPPC1Uosh0q1 45ZkAZBm6U3fMjEomf/Dj2UDSu5XfD+6BwqHK4y9W8aN4JVyN3zlTEWelTnYcR2ppVx5 wtlA== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:in-reply-to:message-id :date:subject:cc:to:from:dkim-signature; bh=JZ9nRYmUd2LKEQFqpzPE3bK5iXZnlL1JMbCz7lLmhrk=; fh=BzdeVYqZhG5iuwuKJRNLP969rvCput73lx0iwx2zu7A=; b=qY7USUHL4sNw9IjlM9A45J1pHKRfL2RmjK8cdtiMHCg60Fr1nOEA0YksJCZCWvvZXM 2JcIzUslRqFwHh1+c3EzvmxfJW3R29896gwCNTaWMGoDKkWgtnBK7iQxgnnU4oy/Bh6A /vJYfJEP6Y0qWZOplWFOFvsZwhU3gxUKJ1/wrMrDvL4HEskyaV/21mF38PEraRszMnnU jq0AYSrEhn7prmYvpyDUliLRM2NMFqXMbonJAMZrBTmhaKs2a1cZEBI2c48nSUCCnCit 9ghMAgFhcgtOFEYTilof14DgRdJnphEKUrnUfn/gVthlhHekbSPtIhrex2ucKtWPue9V cSsg== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=U70W3FmG; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-43727-ouuuleilei=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-43727-ouuuleilei=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [2604:1380:45e3:2400::1]) by mx.google.com with ESMTPS id r4-20020a1709028bc400b001d7105e7ff9si6383772plo.546.2024.01.29.17.38.11 for <ouuuleilei@gmail.com> (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 29 Jan 2024 17:38:11 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-43727-ouuuleilei=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) client-ip=2604:1380:45e3:2400::1; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=U70W3FmG; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-43727-ouuuleilei=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-43727-ouuuleilei=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sv.mirrors.kernel.org (Postfix) with ESMTPS id 0E135281046 for <ouuuleilei@gmail.com>; Tue, 30 Jan 2024 01:38:11 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 8CCAD383B0; Tue, 30 Jan 2024 01:36:04 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="U70W3FmG" Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id BF051374FF; Tue, 30 Jan 2024 01:36:01 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1706578561; cv=none; b=EmYALy3meMOxobZX3Ug4xpaNttlvyZB7iDP7DiKVmcsrJfJ0Xvp7PHDEXIB6gU/w3UOJMl2TQitGqwOjtYI5+dO8M5JACgOj7vQYt2ztgp9IrsTA2uOBPJvXHJQaOX0JvpvjF1W15h1CLlUWtUKA4OQ7CQpALIHp/eTgn7Oqo/Y= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1706578561; c=relaxed/simple; bh=6XVXKH5SHkCRbfNXw+ACfRyxafwIyett+q0yka+zTjo=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References: MIME-Version; b=TNP3Vt5X6BdyQ9X7WsuJ60DCT/YFNjayliCy5ITb5mQZfPr0f7pquWnix7Ag6AwOnYrnCT+1yzsV/+l8mQMwwD+aKXY1y2zCqpRoi9EKDQUBLLl/xgE0cjdGD11UPvtZ3Ha8fO2svkq994DSgc5rvSmTHFp99wtXSyQ+kfZ93GE= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=U70W3FmG; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id 088C5C43143; Tue, 30 Jan 2024 01:36:00 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1706578561; bh=6XVXKH5SHkCRbfNXw+ACfRyxafwIyett+q0yka+zTjo=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=U70W3FmGU7i5j5k+6FsO/9Kid8M057PLCj+ZqfqXtFpo2kZarzQkd/flxN8967gcy BO5hanenOLhNlpphcmPg8RgJSHXXVq4VWja4IuUlW+BfXiZO8Xw/WxMr9JoENbpPnY 41z+vRNmkYfoWWXOrYWap8yCizoBFjDT0UEhuTvvvUfOzE0NI2B8VzBW/kKzsi2CkP 8lT/oGQKMqaNivBOVAl1nQ5gOPaEUS0+qJTmd8BKagGH9QJVjSVX25MZ3Fwj8OTm1Q KPMztpTPLxUeHrinN56K11jl8ae4cYwPXuSh0FywWB0wpLls7aEzSo8bx51ThXDANj +WE+4TPfYD/WA== From: SeongJae Park <sj@kernel.org> To: Andrew Morton <akpm@linux-foundation.org> Cc: SeongJae Park <sj@kernel.org>, damon@lists.linux.dev, linux-mm@kvack.org, linux-kernel@vger.kernel.org Subject: [PATCH 7/9] mm/damon/dbgfs: rename monitor_on file to monitor_on_DEPRECATED Date: Mon, 29 Jan 2024 17:35:46 -0800 Message-Id: <20240130013549.89538-8-sj@kernel.org> X-Mailer: git-send-email 2.39.2 In-Reply-To: <20240130013549.89538-1-sj@kernel.org> References: <20240130013549.89538-1-sj@kernel.org> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: <linux-kernel.vger.kernel.org> List-Subscribe: <mailto:linux-kernel+subscribe@vger.kernel.org> List-Unsubscribe: <mailto:linux-kernel+unsubscribe@vger.kernel.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1789477457705257820 X-GMAIL-MSGID: 1789477457705257820 |
Series |
mm/damon: make DAMON debugfs interface deprecation unignorable
|
|
Commit Message
SeongJae Park
Jan. 30, 2024, 1:35 a.m. UTC
Kernel builders could silently enable CONFIG_DAMON_DBGFS_DEPRECATED.
Users who manually check the files under the DAMON debugfs directory
could notice the deprecation owing to the 'DEPRECATED' DAMON debugfs
file, but there could be users who doesn't manually check the files.
Make the deprecation cannot be ignored in the case by renaming
'monitor_on' file, which is essential for real use of DAMON on runtime,
to 'monitor_on_DEPRECATED'. Still users who control DAMON via only
user-space tool could ignore the deprecation, but that's what the tool
developers should take care of. DAMON user-space tool, damo, has also
made a change[1] for the purpose.
[1] commit 935dae76f2aee ("_damon_args: Rename --damon_interface to
--damon_interface_DEPRECATED") of https://github.com/awslabs/damo
Signed-off-by: SeongJae Park <sj@kernel.org>
---
mm/damon/dbgfs.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/mm/damon/dbgfs.c b/mm/damon/dbgfs.c index fbc0cd63f34c..f7abbc0633aa 100644 --- a/mm/damon/dbgfs.c +++ b/mm/damon/dbgfs.c @@ -1091,7 +1091,7 @@ static int __init __damon_dbgfs_init(void) { struct dentry *dbgfs_root; const char * const file_names[] = {"mk_contexts", "rm_contexts", - "monitor_on", "DEPRECATED"}; + "monitor_on_DEPRECATED", "DEPRECATED"}; const struct file_operations *fops[] = {&mk_contexts_fops, &rm_contexts_fops, &monitor_on_fops, &deprecated_fops}; int i;