From patchwork Tue Apr 26 23:17:47 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: SeongJae Park X-Patchwork-Id: 12828065 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 C2725C433EF for ; Tue, 26 Apr 2022 23:17:59 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id 1D3956B0074; Tue, 26 Apr 2022 19:17:59 -0400 (EDT) Received: by kanga.kvack.org (Postfix, from userid 40) id 1804D6B0075; Tue, 26 Apr 2022 19:17:59 -0400 (EDT) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 0702B6B0078; Tue, 26 Apr 2022 19:17:59 -0400 (EDT) X-Delivered-To: linux-mm@kvack.org Received: from relay.hostedemail.com (relay.a.hostedemail.com [64.99.140.24]) by kanga.kvack.org (Postfix) with ESMTP id EBB996B0074 for ; Tue, 26 Apr 2022 19:17:58 -0400 (EDT) Received: from smtpin29.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay09.hostedemail.com (Postfix) with ESMTP id 027F22788C for ; Tue, 26 Apr 2022 23:17:57 +0000 (UTC) X-FDA: 79400594994.29.35A295B Received: from dfw.source.kernel.org (dfw.source.kernel.org [139.178.84.217]) by imf15.hostedemail.com (Postfix) with ESMTP id 9E9A1A004B for ; Tue, 26 Apr 2022 23:17:52 +0000 (UTC) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id 61499619D9; Tue, 26 Apr 2022 23:17:56 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 51486C385A0; Tue, 26 Apr 2022 23:17:55 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1651015075; bh=GoGM/TLuTwqlGElUCHXXjQy9qTXe9jqD9Hgkx7Rtkm4=; h=From:To:Cc:Subject:Date:From; b=pGqTa1IF3rLvEOdd9OfU+9MF2cVAI8FVBQKbBOGL5lkLQHdl3j3ss3sA01ChtwEyZ s4Hujo+Y50P+Hmy4UTW2K2gvvnTkUaL7ByDTKHNseVvA7VfSUI0RVt7CcgcVS4zVH0 FIbiawg4Xi5uKnH3P43cn/ClJKIQdWOY/fHGGrQKKlBrNg5urzijtQ/eGjkXRoi2uU jXhslCxpxHh5crk9enoyU3lp9XyanfLpd8Y+vHqLM/sxhuFFtyKC5erX0gKB0/J/YR ZQTo0KlUpd/pzqonketMJKnVXSkAhphvSJIjrGSb6EGz2NeVZc1iyopYIo74RoFFuK L5MSqzSH+Qm4Q== From: sj@kernel.org To: akpm@linux-foundation.org Cc: linux-damon@amazon.com, linux-mm@kvack.org, linux-kernel@vger.kernel.org, SeongJae Park Subject: [PATCH 0/3] support fixed virtual address ranges monitoring Date: Tue, 26 Apr 2022 23:17:47 +0000 Message-Id: <20220426231750.48822-1-sj@kernel.org> X-Mailer: git-send-email 2.25.1 MIME-Version: 1.0 X-Stat-Signature: m7wzmx156p1y8994eq8odb88puiwcuxh X-Rspamd-Server: rspam07 X-Rspamd-Queue-Id: 9E9A1A004B X-Rspam-User: Authentication-Results: imf15.hostedemail.com; dkim=pass header.d=kernel.org header.s=k20201202 header.b=pGqTa1IF; dmarc=pass (policy=none) header.from=kernel.org; spf=pass (imf15.hostedemail.com: domain of sj@kernel.org designates 139.178.84.217 as permitted sender) smtp.mailfrom=sj@kernel.org X-HE-Tag: 1651015072-993272 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: From: SeongJae Park The monitoring operations set for virtual address spaces automatically updates the monitoring target regions to cover entire mappings of the virtual address spaces as much as possible. Some users could have more information about their programs than kernel and therefore have interest in not entire regions but only specific regions. For such cases, the automatic monitoring target regions updates are only unnecessary overhead or distractions. This patchset adds supports for the use case on DAMON's kernel API (DAMON_OPS_FVADDR) and sysfs interface ('fvaddr' keyword for 'operations' sysfs file). SeongJae Park (3): mm/damon/vaddr: register a damon_operations for fixed virtual address ranges monitoring mm/damon/sysfs: support fixed virtual address ranges monitoring Docs/{ABI,admin-guide}/damon: update for fixed virtual address ranges monitoring Documentation/ABI/testing/sysfs-kernel-mm-damon | 14 ++++++++------ Documentation/admin-guide/mm/damon/usage.rst | 14 +++++++++++--- include/linux/damon.h | 3 +++ mm/damon/sysfs.c | 4 +++- mm/damon/vaddr.c | 15 +++++++++++++-- 5 files changed, 38 insertions(+), 12 deletions(-)