Received: by 2002:a05:6602:2086:0:0:0:0 with SMTP id a6csp4414816ioa; Wed, 27 Apr 2022 03:25:24 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyEc0Rh0y1kMYr1XUUtDVOsCjvuYpiwb3ngLZK6BK+thIEGlLrZH9ParyNPjuCtXLouSa0p X-Received: by 2002:a05:6a00:10cc:b0:506:e0:d6c3 with SMTP id d12-20020a056a0010cc00b0050600e0d6c3mr29105605pfu.33.1651055123821; Wed, 27 Apr 2022 03:25:23 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1651055123; cv=none; d=google.com; s=arc-20160816; b=Na6UTwiKIfiTQBmoOxgk7BBNNW+rBe4v5KCbjS80ZwZ/PedKLHT1XO0nXgNblB9uKp o8MArnEcRlUpvf4D4Pwu7ZM+aqRzkFEjTMHRxemzo5rhGANOFRczc6T64/XVkbKSdJgm jJaFQvXughjtp1xDBjPBBETHjiqbuqowlOAn0ESk9nVl8/aXLUPvgZvJra4wLnHgRJaY rabON9I2Gz0rzf/YZW2pwwtQysoN5X8hTqMV1kDiM2tu4jND+qdj8/QHElaNL+JKCDA/ UXxvMcQIQJ3B8Wt+6BIgilG/YBWXl6nyCrqkXkufzP1ZCeVvmg6EvHaTaCW20iI/xF63 BL/Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from:dkim-signature; bh=PAXn/FwPXv/QVKDNtvY7I5xtSWKJh6AFo+Q0aUhc8cg=; b=PAJnYnw1e5ShluEUtTFd2t5hx+9vJ3/RFeF7gzmBvvl0ToZEoioTIHaoC1l/tOFbCy MWOawPkrGYmJfe4dAH+0vS7xG6S4hemZz3FFgaaJQEZA8hblKSvtWX6N/1moL3rPNNkE Exc5XkhL6jAFgGtQ3FyebISfW7FBxKvN9NG9DImDb7hR3LOkZr28Jrptoixjdf/GW0ff vYEKYildIe8etR8LM5F4XwApNrJ3GzTB680S85S5L+f6wMIoXv6FJafinvEjpmdX7xgz tOvqRuLkrZcXKUqNksZfbHEphRlzq0P9nCTUdYoSj1me8HCft5Wy9gD8g6U0vRaC/9aK myIg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=pGqTa1IF; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [2620:137:e000::1:18]) by mx.google.com with ESMTPS id h27-20020a63121b000000b003995aee3634si1120457pgl.175.2022.04.27.03.25.23 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 27 Apr 2022 03:25:23 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) client-ip=2620:137:e000::1:18; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=pGqTa1IF; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 43D013819B2; Wed, 27 Apr 2022 02:42:29 -0700 (PDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1356024AbiDZXVJ (ORCPT + 99 others); Tue, 26 Apr 2022 19:21:09 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:45378 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1353817AbiDZXVI (ORCPT ); Tue, 26 Apr 2022 19:21:08 -0400 Received: from ams.source.kernel.org (ams.source.kernel.org [145.40.68.75]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 65C551D0CC for ; Tue, 26 Apr 2022 16:17:58 -0700 (PDT) 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 ams.source.kernel.org (Postfix) with ESMTPS id 100E6B8239F for ; Tue, 26 Apr 2022 23:17:57 +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 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-2.9 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,MAILING_LIST_MULTI, RDNS_NONE,SPF_HELO_NONE autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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(-) -- 2.25.1