From patchwork Tue Jan 10 19:03:53 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: SeongJae Park X-Patchwork-Id: 41591 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a5d:4e01:0:0:0:0:0 with SMTP id p1csp2919549wrt; Tue, 10 Jan 2023 11:04:58 -0800 (PST) X-Google-Smtp-Source: AMrXdXs6gh/BdHUrB5G6UD+En5rmseiF3lSHb8a9t5d0nwdRKC9X1iHo7ddejXjvKeSNkZry6HJA X-Received: by 2002:a17:902:7c89:b0:188:59e2:5f91 with SMTP id y9-20020a1709027c8900b0018859e25f91mr67348579pll.59.1673377497798; Tue, 10 Jan 2023 11:04:57 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1673377497; cv=none; d=google.com; s=arc-20160816; b=QyXNM0Fykrn8oBf4u4XcOkphRIvXnkTCcLB6OZFLyhHITgKGgKzGqAKSyDHCH7LR4M krd5wJaGuuFyGXOCJLNOmv1DrBC/u8L7evzi5JdvKPQepQqfcztf1DHQPtA13ns9JZJt Nd6pzf7s2U2y9d9BVTwly5CcC2kQgovGKGbsbIHPe0GNu+H6DnfLKt0l22r0VaMGdBio ZdAn49XpCVSCKWCxrLfh6u0drO5NvqFYJ8wTctPmKM7eLt8prhyASacatJHRUvr1iniU lAZI43beE7jrtyxOkEYgEZcP4h2A5UF1pRBoKag4ycYS++4KklqAI+2ivduXwVouFaQU EpVA== 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 :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=3DVEy/H+g5xxOxDaNlg5cWLZhq40eZdLgDfmf+UPHks=; b=eeMGhKBCuuG3Ep7hwrvLTVAp1/s015LR82wkAGQj0D9RfpNqVloynm8rNOE2yQjjkT NiuIMFiClyJw24SbCthO5kQUqqaU3mtH3Q2IE6lg0tSan0+zAGNRkYL92GeSPCQ2NN+I wOPExKe7EYsGeqt4RA6JwIk9GhtDlbjxlvoIKYVqYcccScNjws6dV/bwoIQWNliPlfqW 1f1c9jiwTZBr0VuqJFVVBmCd9u7exJcyxsU+E4HQzGXDk5+zmMeuMCaIYMnuWpIGDlIK JuMjPPJF55UfEma6luR3yaFRl0oLEF4tlfHEQW9EELWLGPfLrdAO1EnhoZpi3vWWgxhs RAXQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=fCl8S7Yi; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 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 out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id y1-20020a17090322c100b00192c9303df2si12716015plg.133.2023.01.10.11.04.45; Tue, 10 Jan 2023 11:04:57 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=fCl8S7Yi; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S239674AbjAJTEN (ORCPT + 99 others); Tue, 10 Jan 2023 14:04:13 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:47068 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S239485AbjAJTEI (ORCPT ); Tue, 10 Jan 2023 14:04:08 -0500 Received: from ams.source.kernel.org (ams.source.kernel.org [145.40.68.75]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id A90196418 for ; Tue, 10 Jan 2023 11:04:07 -0800 (PST) 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 5335CB8196F for ; Tue, 10 Jan 2023 19:04:06 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id AB108C433D2; Tue, 10 Jan 2023 19:04:04 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1673377445; bh=EpuEVUL614S47vXoslv07ySnDH61IdNVsBrU1EkLty8=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=fCl8S7YiAsYSjVYQ6JjpL33E5Zdyh0Drih0OrdQyMBev/agRdKUdaHNWOrGbsRJsk CUm9xv0Q1qyvDy/JbGUNQAH4T2SCwyC0lwrr3By+XE5/gPxPZUEJTGvN8p9MNiYoUH fJNRL+cOlBex8DtmAvlIcioI4YLkXREUsKisYvBQRXNjsHzh6JIaPkyi0DG+RCkTkY BEggkVrMC5MbN75tGE5AjEaBQqvdq+bYZEszEMZhwLR2sFFK/im+NdyEMMbLFCwESC lsHWX7EzszK4qUGrr0DNzX1R9gXbytMa+c88X9+QFYpxaCrUt9mwFUlVLDKC/1LoiL p5PeAAxRCMc9g== From: SeongJae Park To: Andrew Morton Cc: SeongJae Park , damon@lists.linux.dev, linux-mm@kvack.org, linux-kernel@vger.kernel.org Subject: [PATCH 1/8] mm/damon/core: update kernel-doc comments for DAMOS action supports of each DAMON operations set Date: Tue, 10 Jan 2023 19:03:53 +0000 Message-Id: <20230110190400.119388-2-sj@kernel.org> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20230110190400.119388-1-sj@kernel.org> References: <20230110190400.119388-1-sj@kernel.org> MIME-Version: 1.0 X-Spam-Status: No, score=-7.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_HI, SPF_HELO_NONE,SPF_PASS autolearn=ham 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 X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1754663483393671474?= X-GMAIL-MSGID: =?utf-8?q?1754663483393671474?= Supports of each DAMOS action are up to DAMON operations set implementation in use, but not well mentioned on the kernel-doc comments. Add the comment. Signed-off-by: SeongJae Park --- include/linux/damon.h | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/include/linux/damon.h b/include/linux/damon.h index 7907918ad2e0..3fa96d7c9fe4 100644 --- a/include/linux/damon.h +++ b/include/linux/damon.h @@ -91,6 +91,12 @@ struct damon_target { * @DAMOS_LRU_DEPRIO: Deprioritize the region on its LRU lists. * @DAMOS_STAT: Do nothing but count the stat. * @NR_DAMOS_ACTIONS: Total number of DAMOS actions + * + * The support of each action is up to running &struct damon_operations. + * &enum DAMON_OPS_VADDR and &enum DAMON_OPS_FVADDR supports all actions except + * &enum DAMOS_LRU_PRIO and &enum DAMOS_LRU_DEPRIO. &enum DAMON_OPS_PADDR + * supports only &enum DAMOS_PAGEOUT, &enum DAMOS_LRU_PRIO, &enum + * DAMOS_LRU_DEPRIO, and &DAMOS_STAT. */ enum damos_action { DAMOS_WILLNEED, From patchwork Tue Jan 10 19:03:54 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: SeongJae Park X-Patchwork-Id: 41595 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a5d:4e01:0:0:0:0:0 with SMTP id p1csp2919924wrt; Tue, 10 Jan 2023 11:05:37 -0800 (PST) X-Google-Smtp-Source: AMrXdXuP3/W58TYbtnWlmdznUiiklvas4gS2J+FSXeadi2/RwPWxx0+5rKjfqIhhfp6FrQkVcFvr X-Received: by 2002:aa7:cb94:0:b0:496:6a20:6b61 with SMTP id r20-20020aa7cb94000000b004966a206b61mr13285406edt.22.1673377537163; Tue, 10 Jan 2023 11:05:37 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1673377537; cv=none; d=google.com; s=arc-20160816; b=TIPPjQpyZCILGV1wMcM/L2GOFJb+asUgTWBCQBjXZsYQ0RHh1jSSehMJnb6AlsAgCQ mnymRjKv9Jtrbzi4+1XUW/qgjAr4kRDt97PA6pkzq5tQsJT15QodT9nP+AFfbV6yXiCw PEn16tSJ9C6E6T/O+EUCmNcVkmQmC8geUfR+i9pjELPFOoouBwM+y+ouJ8aYYwTsF/dG x5PDS60/GaU+tOnXW8te7zq31NyNHyMzISysqKNGFymCFQv7Z/qiV0OFcK1ksBpV2Tcl F5y7sRD76W9JC64PkK9vvlTQoAyAlWjs8UJUCrK1q24LpwQnvsS9vIIM8kG4HmKkthYf 7hpA== 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 :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=g9Lt5kjNSvwU+Zc822IYE+N2t4BmB87JsBjPGjRovaM=; b=aam/Kuf6CqqmD/IMLCTrdkfWdDlq2AqXJ7VKbWVGTcPUMYHTtricghCjgtyiL7Wtxr k7Pc7IIH/yeBs8U8B8U7/KJtSF+gm341AjMb1iwUBf5o4SaYR7W1DSzxn/eK/e6uVwgd rLXFaoNmZ1/jTY8DZEzxxUvKY0nv249BYrJmDxNmx754ni3SY8xKlumGZEXYYvLZtdYa V7JVPf9I4w+jfl0APsCNLAq2oSEsQvw2t2x+HXJVcX/0LQeQJywYyT6cEV9rGzCA+Dho D8s4mRPy3qwHxV3s59WGkQiEberRgenDFUXzTymg4EOzt7+bLX0jY0n45ErCICJKohM8 HnZw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=O12DgK0w; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 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 out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id ed9-20020a056402294900b0048c1bb5d23bsi11432293edb.67.2023.01.10.11.05.12; Tue, 10 Jan 2023 11:05:37 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=O12DgK0w; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S239703AbjAJTEu (ORCPT + 99 others); Tue, 10 Jan 2023 14:04:50 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:47088 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S239665AbjAJTEJ (ORCPT ); Tue, 10 Jan 2023 14:04:09 -0500 Received: from ams.source.kernel.org (ams.source.kernel.org [IPv6:2604:1380:4601:e00::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 5BF4348CF3 for ; Tue, 10 Jan 2023 11:04:08 -0800 (PST) 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 F16C6B81900 for ; Tue, 10 Jan 2023 19:04:06 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 44D7DC43396; Tue, 10 Jan 2023 19:04:05 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1673377445; bh=MkYe8RMWo9Dd/HnFB4VyNk02k3Wj59bPhrWvDe74iBs=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=O12DgK0wfvcNXMnpgdQ3CN5XcfJVRvnLXxTk9Tenc6J86A71PWN8smbh8QHn6allC cieg4aoxQAsihNa53VhtzdmoGyYNK7ii4b++GyYCC8+SEUK2nVroFTJtRhlifuN9B6 k3JKMOBKw01yt0WYX/k+NOVE96xHBDfQsvj+6enjh62D0MYD9tB1eUwbw8Iq0OAuld u/mImvwo0LKCKcEhdw4QdXUDR15Y6quvIqFKYFORAhOi1B3bSKg+EKLiG5QmPXIctj hwVD9ousWKgOREOvinbJ2UEgyklCRp9pAvqzYSGgiKGqkN7oKOpIprY5BWPWc2nXls /XCndbXdU9Cqg== From: SeongJae Park To: Andrew Morton Cc: SeongJae Park , damon@lists.linux.dev, linux-mm@kvack.org, linux-kernel@vger.kernel.org Subject: [PATCH 2/8] mm/damon/core: update kernel-doc comments for DAMOS filters supports of each DAMON operations set Date: Tue, 10 Jan 2023 19:03:54 +0000 Message-Id: <20230110190400.119388-3-sj@kernel.org> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20230110190400.119388-1-sj@kernel.org> References: <20230110190400.119388-1-sj@kernel.org> MIME-Version: 1.0 X-Spam-Status: No, score=-7.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_HI, SPF_HELO_NONE,SPF_PASS autolearn=ham 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 X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1754663524653438794?= X-GMAIL-MSGID: =?utf-8?q?1754663524653438794?= Supports of each DAMOS filter type are up to DAMON operations set implementation in use, but not well mentioned on the kernel-doc comments. Add the comment. Signed-off-by: SeongJae Park --- include/linux/damon.h | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/include/linux/damon.h b/include/linux/damon.h index 3fa96d7c9fe4..dfb245bb3053 100644 --- a/include/linux/damon.h +++ b/include/linux/damon.h @@ -227,6 +227,11 @@ struct damos_stat { * @DAMOS_FILTER_TYPE_ANON: Anonymous pages. * @DAMOS_FILTER_TYPE_MEMCG: Specific memcg's pages. * @NR_DAMOS_FILTER_TYPES: Number of filter types. + * + * The support of each filter type is up to running &struct damon_operations. + * &enum DAMON_OPS_PADDR is supporting all filter types, while + * &enum DAMON_OPS_VADDR and &enum DAMON_OPS_FVADDR are not supporting any + * filter types. */ enum damos_filter_type { DAMOS_FILTER_TYPE_ANON, From patchwork Tue Jan 10 19:03:55 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: SeongJae Park X-Patchwork-Id: 41599 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a5d:4e01:0:0:0:0:0 with SMTP id p1csp2920234wrt; Tue, 10 Jan 2023 11:06:04 -0800 (PST) X-Google-Smtp-Source: AMrXdXsMUD82PIz5V+oeE7GBnqwkJ2ic2g4bHkOtCF/wwsQmKVUWkv4jVpjdf6BPrtlq1+dNaIhx X-Received: by 2002:aa7:d752:0:b0:499:bcfc:f47b with SMTP id a18-20020aa7d752000000b00499bcfcf47bmr6096190eds.16.1673377564247; Tue, 10 Jan 2023 11:06:04 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1673377564; cv=none; d=google.com; s=arc-20160816; b=tP75h8ZfFyiu1u2IbvRaBRggiOCQb8PimBn1G8DSH3VP3l2wDCI8ajNl79rSgnt1fa oloCJP5L07bUtknEDXaTiXdq4z9gU6kSUMz8DNmuVcsC1WOsT4aq4s5f1YlNwT/CodBr 9OtPvllZk3Q9X4PpE4FnwHK7EmYoJ/jn9X6+uION8QSFw8tp//CPkxGvevGz4yFOgU2P AuPzxeNfD/oBElyAYAwR7uVIcLplNgvvBaITvcRoq+2EhOG9QpFg68o3l9UOKC2nkex8 TAK00E5xEB3qnbqlghWRjOXUB3uWYKmPtpL/8HjtTgrCjaPqdoiGQlI90DZO31GT3aql 6JFA== 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 :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=qXdlWze7CnbACRYQWKOixA/MEHOlYbiYaK/zXW25OQc=; b=fy9OPp6MKlmBiXaCFpWb06BrT7bRKTDB8LNIdhNbpuoSUlIXimUAMBq9auHeFqBq4F CDgFZNM6VmAeqNLd89LR6IVZljfxeczXFFKSgO1kbT3c6YuqIR7+xGiCJrbezmjGmzYv k01TnNEIYdoEDDEKvoVEEYRDG8Xv8G9hgGk9qNWNFkuHj2yQqO6ITRMvZCbHTu9ZTDvv ILfd+UpX1hkpGAIQugsGsONT3AeCk7ynGU4WBH7BqRl5dZBRegwPJSD4rOgmSZHgACD5 3cmAUjmv9WI5buPvvfOBLSxDPi2ghO80uZPLVhPwRqSgajJ/AsxxgOQHxuiIjuhCmibL XasA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=Gr+KJKuO; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 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 out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id f20-20020a0564021e9400b00484a42c8233si2592592edf.444.2023.01.10.11.05.40; Tue, 10 Jan 2023 11:06:04 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=Gr+KJKuO; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S239778AbjAJTE7 (ORCPT + 99 others); Tue, 10 Jan 2023 14:04:59 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:47088 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S239479AbjAJTEK (ORCPT ); Tue, 10 Jan 2023 14:04:10 -0500 Received: from ams.source.kernel.org (ams.source.kernel.org [IPv6:2604:1380:4601:e00::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 0537F640C; Tue, 10 Jan 2023 11:04:09 -0800 (PST) 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 B3337B81977; Tue, 10 Jan 2023 19:04:07 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id D3871C43398; Tue, 10 Jan 2023 19:04:05 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1673377446; bh=3/9jPsJGQOYl5LrCGMIIfDURssYf3Mb7HlJVYLs/nag=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=Gr+KJKuOm+aZo2aKeZ1tF+IL9mDXelWveS7Wxk+bEcvzreVPihAtB2EuuMgEG4Op+ bKsUP+zpKY5H5OKwlQ1yc0rztEYYZ8x1s0mC6r3gGnt5v4EHwJ3ZdU+seblcwUS9kJ JJRcXQkUBKSyGrsgIdCruJ94Gwan6MSt8zzoeUt8vJ7g0Q99TpzhfCz8DIwDVlC9eE gJ20GaqpN48kAhaG7aSW2eLbXd5U+5RPPD8klZYlhXRiw8ckt8WskQbS1YOuRi48x5 oRbPJPB+t0mhZ/CMMxTEZVxHRugcJwXgT99Ih/Y3waWx7CCb1xMDDlrpLe5Egv3gyc nOaZIpD2tfnvw== From: SeongJae Park To: Andrew Morton Cc: SeongJae Park , Jonathan Corbet , damon@lists.linux.dev, linux-mm@kvack.org, linux-doc@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH 3/8] Docs/mm/damon/index: mention DAMOS on the intro Date: Tue, 10 Jan 2023 19:03:55 +0000 Message-Id: <20230110190400.119388-4-sj@kernel.org> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20230110190400.119388-1-sj@kernel.org> References: <20230110190400.119388-1-sj@kernel.org> MIME-Version: 1.0 X-Spam-Status: No, score=-7.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_HI, SPF_HELO_NONE,SPF_PASS autolearn=ham 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 X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1754663552885784908?= X-GMAIL-MSGID: =?utf-8?q?1754663552885784908?= What DAMON aims to do is not only access monitoring but efficient and effective access-aware system operations. And DAMon-based Operation Schemes (DAMOS) is the important feature of DAMON for the goal. Make the intro of DAMON documentation to emphasize the goal and mention DAMOS. Signed-off-by: SeongJae Park --- Documentation/mm/damon/index.rst | 21 +++++++++++++-------- 1 file changed, 13 insertions(+), 8 deletions(-) diff --git a/Documentation/mm/damon/index.rst b/Documentation/mm/damon/index.rst index 48c0bbff98b2..2983699c12ea 100644 --- a/Documentation/mm/damon/index.rst +++ b/Documentation/mm/damon/index.rst @@ -4,8 +4,9 @@ DAMON: Data Access MONitor ========================== -DAMON is a data access monitoring framework subsystem for the Linux kernel. -The core mechanisms of DAMON (refer to :doc:`design` for the detail) make it +DAMON is a Linux kernel subsystem that provides a framework for data access +monitoring and the monitoring results based system operations. The core +monitoring mechanisms of DAMON (refer to :doc:`design` for the detail) make it - *accurate* (the monitoring output is useful enough for DRAM level memory management; It might not appropriate for CPU Cache levels, though), @@ -14,12 +15,16 @@ The core mechanisms of DAMON (refer to :doc:`design` for the detail) make it - *scalable* (the upper-bound of the overhead is in constant range regardless of the size of target workloads). -Using this framework, therefore, the kernel's memory management mechanisms can -make advanced decisions. Experimental memory management optimization works -that incurring high data accesses monitoring overhead could implemented again. -In user space, meanwhile, users who have some special workloads can write -personalized applications for better understanding and optimizations of their -workloads and systems. +Using this framework, therefore, the kernel can operate system in an +access-aware fashion. Because the features are also exposed to the user space, +users who have special information about their workloads can write personalized +applications for better understanding and optimizations of their workloads and +systems. + +For easier development of such systems, DAMON provides a feature called DAMOS +(DAMon-based Operation Schemes) in addition to the monitoring. Using the +feature, DAMON users in both kernel and user spaces can do access-aware system +operations with no code but simple configurations. .. toctree:: :maxdepth: 2 From patchwork Tue Jan 10 19:03:56 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: SeongJae Park X-Patchwork-Id: 41594 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a5d:4e01:0:0:0:0:0 with SMTP id p1csp2919923wrt; Tue, 10 Jan 2023 11:05:37 -0800 (PST) X-Google-Smtp-Source: AMrXdXtcvE/CxnpnR8c9+Ram8MiHJYgHWgc5bj3sK2ytkXgYM3dSWNzwF4IJ/6xiQddJogl+UVsU X-Received: by 2002:a17:907:9d0b:b0:78d:f455:30db with SMTP id kt11-20020a1709079d0b00b0078df45530dbmr62238054ejc.3.1673377537031; Tue, 10 Jan 2023 11:05:37 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1673377537; cv=none; d=google.com; s=arc-20160816; b=dicXdww4o0btUxOCnNLDuMMIvCQ9sm0Knrm5AfX0HKmDzb/XnbpSNmW1FG8uwu2z2a 3peaVv6fYZ9pb9bK6YYI3QfYU/WZ6P5tBB4/MVp4CD+M4QsOynbXsVF7992BeLso+6XK sBkEPd29YcPNa+USEmX3pBojmBY0M4iEGZDgNyv36b6s7FZ4fQhXBthODB3dZAcKQ0FZ j66ndT7qRPjifAk1q8Pux7KfQ1gH6o2v+bX1uFtB9vlR7cDgJbLV90Yzd6CLA6wK/C2+ SCnF6kVXcEWuOU39k+3IvTgF2ENbI5++5IN8SW/e7sVUzqzbyPyxj3S6aLfVkrI+s2hs YiRQ== 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 :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=2Wtf0lgjd5s4Awp32ikmUzlONvIaJWOB+WJ6B22GUOc=; b=mmJpRibschvMOyL8uHlwm87vnUAGym24PD036jaj0plIj23PIYZyPaB4Pd/evMjDm4 HMRKp3Kc0EjH6rC0Xa9bv1t0x/BE3jGSnHXkYixegjR5RB1HHhKWwenhkiTTOd4BDF0e c9fYau2J/VcTRLr8I2Tmf5p6Dec0q+2eFyZtIcA2OAKPKnka7jeWRe4b6P37HNBAC5uW mdONUYq0BZBfFRApeo/AC9eq8hoZ9+Q+DW8G/h4hRmIK7vOEhZt7RHiVawflp0+CQ0yg uePMI167nqaWeSPP4r+jLT10bd8ik1y8/F7XKgppXynVpXRiGlidDcR+1sz6eLDDIgXt VaSQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=RLd4J3G7; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 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 out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id di20-20020a170906731400b00780e89ce0b0si12988084ejc.600.2023.01.10.11.05.12; Tue, 10 Jan 2023 11:05:37 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=RLd4J3G7; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S239759AbjAJTE5 (ORCPT + 99 others); Tue, 10 Jan 2023 14:04:57 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:47100 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S239227AbjAJTEJ (ORCPT ); Tue, 10 Jan 2023 14:04:09 -0500 Received: from ams.source.kernel.org (ams.source.kernel.org [IPv6:2604:1380:4601:e00::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id C02ACC4D; Tue, 10 Jan 2023 11:04:08 -0800 (PST) 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 7ED63B8190F; Tue, 10 Jan 2023 19:04:07 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 9BFFFC433F0; Tue, 10 Jan 2023 19:04:06 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1673377447; bh=z4OiBFIdAY53y3j04vvpLGBRlRRZlDz1MLs91H9dWgM=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=RLd4J3G76wYwVxSsaSIQPTKHrZbFVa3HMM1Gckqux+XKZcOj5l6ii9Jr0d5ojGaYb OaFXjgnAYAadqc1LQMKbr/wchU1RcH/S5srEO9WUXaQJQPM+kREfCpLLSMiLMLYf3H gDzFMCliEdHfnyVRMgNQz+xK5d0pqnAsKfUIEaT+Oexsy/K2x/qwH49JiW/wPCMoxr 9g8XpPSA1eSKwJO0CRhxv0rQ6oyzoFAibgVTGMFfGM+PwtytiJ2AY9IwPuYNlmbuFX 2fNEHHLpNzidac6lxcf3Yjhk5+923fksLblXxOfMoVoZtpzL1pk4Nnk8j+L3HhS2GP J9X688D+f9i7Q== From: SeongJae Park To: Andrew Morton Cc: SeongJae Park , Jonathan Corbet , damon@lists.linux.dev, linux-mm@kvack.org, linux-doc@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH 4/8] Docs/admin-guide/mm/damon/usage: update DAMOS actions/filters supports of each DAMON operations set Date: Tue, 10 Jan 2023 19:03:56 +0000 Message-Id: <20230110190400.119388-5-sj@kernel.org> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20230110190400.119388-1-sj@kernel.org> References: <20230110190400.119388-1-sj@kernel.org> MIME-Version: 1.0 X-Spam-Status: No, score=-7.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_HI, SPF_HELO_NONE,SPF_PASS autolearn=ham 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 X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1754663523917654042?= X-GMAIL-MSGID: =?utf-8?q?1754663523917654042?= Supports of each DAMOS action and filters are up to DAMON operations set implementation, but it's not mentioned in detail on the documentation. Update the information on the usage document. Signed-off-by: SeongJae Park --- Documentation/admin-guide/mm/damon/usage.rst | 41 +++++++++++++------- 1 file changed, 28 insertions(+), 13 deletions(-) diff --git a/Documentation/admin-guide/mm/damon/usage.rst b/Documentation/admin-guide/mm/damon/usage.rst index 3d82ca6a17ff..9237d6a25897 100644 --- a/Documentation/admin-guide/mm/damon/usage.rst +++ b/Documentation/admin-guide/mm/damon/usage.rst @@ -279,14 +279,25 @@ The ``action`` file is for setting and getting what action you want to apply to memory regions having specific access pattern of the interest. The keywords that can be written to and read from the file and their meaning are as below. - - ``willneed``: Call ``madvise()`` for the region with ``MADV_WILLNEED`` - - ``cold``: Call ``madvise()`` for the region with ``MADV_COLD`` - - ``pageout``: Call ``madvise()`` for the region with ``MADV_PAGEOUT`` - - ``hugepage``: Call ``madvise()`` for the region with ``MADV_HUGEPAGE`` - - ``nohugepage``: Call ``madvise()`` for the region with ``MADV_NOHUGEPAGE`` +Note that support of each action depends on the running DAMON operations set +`implementation `. + + - ``willneed``: Call ``madvise()`` for the region with ``MADV_WILLNEED``. + Supported by ``vaddr`` and ``fvaddr`` operations set. + - ``cold``: Call ``madvise()`` for the region with ``MADV_COLD``. + Supported by ``vaddr`` and ``fvaddr`` operations set. + - ``pageout``: Call ``madvise()`` for the region with ``MADV_PAGEOUT``. + Supported by ``vaddr``, ``fvaddr`` and ``paddr`` operations set. + - ``hugepage``: Call ``madvise()`` for the region with ``MADV_HUGEPAGE``. + Supported by ``vaddr`` and ``fvaddr`` operations set. + - ``nohugepage``: Call ``madvise()`` for the region with ``MADV_NOHUGEPAGE``. + Supported by ``vaddr`` and ``fvaddr`` operations set. - ``lru_prio``: Prioritize the region on its LRU lists. + Supported by ``paddr`` operations set. - ``lru_deprio``: Deprioritize the region on its LRU lists. - - ``stat``: Do nothing but count the statistics + Supported by ``paddr`` operations set. + - ``stat``: Do nothing but count the statistics. + Supported by all operations sets. schemes//access_pattern/ --------------------------- @@ -388,8 +399,8 @@ pages of all memory cgroups except ``/having_care_already``.:: echo /having_care_already > 1/memcg_path echo N > 1/matching -Note that filters could be ignored depend on the running DAMON operations set -`implementation `. +Note that filters are currently supported only when ``paddr`` +`implementation ` is being used. .. _sysfs_schemes_stats: @@ -618,11 +629,15 @@ The ```` is a predefined integer for memory management actions, which DAMON will apply to the regions having the target access pattern. The supported numbers and their meanings are as below. - - 0: Call ``madvise()`` for the region with ``MADV_WILLNEED`` - - 1: Call ``madvise()`` for the region with ``MADV_COLD`` - - 2: Call ``madvise()`` for the region with ``MADV_PAGEOUT`` - - 3: Call ``madvise()`` for the region with ``MADV_HUGEPAGE`` - - 4: Call ``madvise()`` for the region with ``MADV_NOHUGEPAGE`` + - 0: Call ``madvise()`` for the region with ``MADV_WILLNEED``. Ignored if + ``target`` is ``paddr``. + - 1: Call ``madvise()`` for the region with ``MADV_COLD``. Ignored if + ``target`` is ``paddr``. + - 2: Call ``madvise()`` for the region with ``MADV_PAGEOUT``. + - 3: Call ``madvise()`` for the region with ``MADV_HUGEPAGE``. Ignored if + ``target`` is ``paddr``. + - 4: Call ``madvise()`` for the region with ``MADV_NOHUGEPAGE``. Ignored if + ``target`` is ``paddr``. - 5: Do nothing but count the statistics Quota From patchwork Tue Jan 10 19:03:57 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: SeongJae Park X-Patchwork-Id: 41597 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a5d:4e01:0:0:0:0:0 with SMTP id p1csp2920042wrt; Tue, 10 Jan 2023 11:05:48 -0800 (PST) X-Google-Smtp-Source: AMrXdXu13q7cQgpVpuca3cLqqTfFxF7/tsi+rVF+XQndvsM0JGMtQGuNTDgCjUPG7FIyM5jmFDBL X-Received: by 2002:aa7:d393:0:b0:490:47c3:3d7f with SMTP id x19-20020aa7d393000000b0049047c33d7fmr18235619edq.2.1673377548198; Tue, 10 Jan 2023 11:05:48 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1673377548; cv=none; d=google.com; s=arc-20160816; b=BoWemdkeJqVnywOpqU3Pd1JR6NBDOyHiw9ngGIJA4iD5IwJBGXOkXkQXhCry0hiRjX 2bDexX6aDQwH0XLjkNa+k/jh3NX2YluhErl4ObZ4CD07NMdvvowNAqJTsT800bsifsHw PyTqMlwwLifVRYKT9cAIIoxwida3tz90Di6fC72kIvuZzmZcJcEzJBsQk/s5Zwv1Vona /dp1p4oFTILj2EHccPYEWss6vv9f/arJRUIY74/asdEnGZvdQH71aQSPVTpXZ1O38qui Fr3pW7M/sCYLCF3xImJkPvEkSZx9CnZv5OtfBRJuGeu5gpzUJRaeHx9XxlHKggp9Z8Bu 3U4A== 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 :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=Oes83oTo8uGGWs8oUr6pZVq8AolZTWjuo6r0euGuOHQ=; b=q+zgB1SJ97KzLcLR8gBVyWa1yXUyf2KWKUt9GXsDeObJzx+VVnNWKtXXBCWUfiNo/P KaQfAVXjFJpkTcb2Tjoj22ZZZfXqvA+RCmxYGhj92nbdGomcqxdvfgDUxvE/A8nCtifg hmOQskx2EaIuOO7z4RPVu23SLl9BgKSiPSh+0MP+hD/ykG7OyN2qNNPoXDUijJ+jK/+V pZd0yAHdNNrAo+MI7O0cC4B0Y6DtRLwSfDlJVu0dIMu+byBILNz3ZgqVK4/JuEH5CRWs w5iheAEehvEdKAasksdiFVF7SNNZYWqKHFy21C38O7xHnv+GQbS8P3D5JbKrkTYWdzpA tZLw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=dWdbcT4V; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 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 out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id j18-20020a05640211d200b00463b0df4604si15298919edw.488.2023.01.10.11.05.22; Tue, 10 Jan 2023 11:05:48 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=dWdbcT4V; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S239796AbjAJTFD (ORCPT + 99 others); Tue, 10 Jan 2023 14:05:03 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:47126 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S239663AbjAJTEL (ORCPT ); Tue, 10 Jan 2023 14:04:11 -0500 Received: from ams.source.kernel.org (ams.source.kernel.org [IPv6:2604:1380:4601:e00::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 8EDCD48CF3; Tue, 10 Jan 2023 11:04:10 -0800 (PST) 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 44716B81978; Tue, 10 Jan 2023 19:04:09 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 65048C433EF; Tue, 10 Jan 2023 19:04:07 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1673377447; bh=/ftDYRYihjGl5PEz5Dv1FCnL2ESZwAkvBGHkxClfATA=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=dWdbcT4V6ti0Ll/sRjROvWkvtNQCTLv7+0IA+XG0QqOdhMMLgUnm9HgZ6MnDDqEOl dngadbkAJrq2Vcj6erIyqDlcg0E31UlwF/+Id7rxgO3NvcGdeYMCONmYVP+oAiH7x4 TO1md/05eBEiK10d48YhUKg5Gx6E2K0Y9B6FaQ2yhy4EBLYZVq1+ecmxQqpzpN3X/B AH9Ox0o/TVtIAvmzC8VLqBZ6zpmGCH3dWfk+S1l4i//UegMvXlBHbyTu5F5LbItnIS XrTV3fqkCIvSfQUTlspFp8isWnSa3kugYmoPy5NFx4NNsWlxZaI+EA28ngOGYVYwZ/ v7ZC9g9RiHveA== From: SeongJae Park To: Andrew Morton Cc: SeongJae Park , Jonathan Corbet , damon@lists.linux.dev, linux-mm@kvack.org, linux-doc@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH 5/8] Docs/mm/damon: add a maintainer-profile for DAMON Date: Tue, 10 Jan 2023 19:03:57 +0000 Message-Id: <20230110190400.119388-6-sj@kernel.org> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20230110190400.119388-1-sj@kernel.org> References: <20230110190400.119388-1-sj@kernel.org> MIME-Version: 1.0 X-Spam-Status: No, score=-7.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_HI, SPF_HELO_NONE,SPF_PASS autolearn=ham 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 X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1754663535638126414?= X-GMAIL-MSGID: =?utf-8?q?1754663535638126414?= Document the basic policies and expectations for DAMON development. Signed-off-by: SeongJae Park --- Documentation/mm/damon/index.rst | 1 + Documentation/mm/damon/maintainer-profile.rst | 62 +++++++++++++++++++ 2 files changed, 63 insertions(+) create mode 100644 Documentation/mm/damon/maintainer-profile.rst diff --git a/Documentation/mm/damon/index.rst b/Documentation/mm/damon/index.rst index 2983699c12ea..5e0a50583500 100644 --- a/Documentation/mm/damon/index.rst +++ b/Documentation/mm/damon/index.rst @@ -32,3 +32,4 @@ operations with no code but simple configurations. faq design api + maintainer-profile diff --git a/Documentation/mm/damon/maintainer-profile.rst b/Documentation/mm/damon/maintainer-profile.rst new file mode 100644 index 000000000000..24a202f03de8 --- /dev/null +++ b/Documentation/mm/damon/maintainer-profile.rst @@ -0,0 +1,62 @@ +.. SPDX-License-Identifier: GPL-2.0 + +DAMON Maintainer Entry Profile +============================== + +The DAMON subsystem covers the files that listed in 'DATA ACCESS MONITOR' +section of 'MAINTAINERS' file. + +The mailing lists for the subsystem are damon@lists.linux.dev and +linux-mm@kvack.org. Patches should be made against the mm-unstable tree [1]_ +whenever possible and posted to the mailing lists. + +SCM Trees +--------- + +There are multiple Linux trees for DAMON development. Patches under +development or testing are queued in damon/next [2]_ by the DAMON maintainer. +Suffieicntly reviewed patches will be queued in mm-unstable [1]_ by the memory +management subsystem maintainer. After more sufficient tests, the patches will +be queued in mm-stable [3]_ , and finally pull-requested to the mainline by the +memory management subsystem maintainer. + +Note again the patches for review should be made against the mm-unstable +tree[1] whenever possible. damon/next is only for preview of others' works in +progress. + +Submit checklist addendum +------------------------- + +When making DAMON changes, you should do below. + +- Build changes related outputs including kernel and documents. +- Ensure the builds introduce no new errors or warnings. +- Run and ensure no new failures for DAMON selftests [4]_ and kunittests [5]_ . + +Further doing below and putting the results will be helpful. + +- Run damon-tests/corr [6]_ for normal changes. +- Run damon-tests/perf [7]_ for performance changes. + +Key cycle dates +--------------- + +Patches can be sent anytime. Key cycle dates of the mm-unstable[1] and +mm-stable[3] trees depend on the memory management subsystem maintainer. + +Review cadence +-------------- + +The DAMON maintainer does the work on the usual work hour (09:00 to 17:00, +Mon-Fri) in PST. The response to patches will occasionally be slow. Do not +hesitate to send a ping if you have not heard back within a week of sending a +patch. + + +.. [1] https://git.kernel.org/akpm/mm/h/mm-unstable +.. [2] https://git.kernel.org/sj/h/damon/next +.. [3] https://git.kernel.org/akpm/mm/h/mm-stable +.. [4] https://github.com/awslabs/damon-tests/blob/master/corr/run.sh#L49 +.. [5] https://github.com/awslabs/damon-tests/blob/master/corr/tests/kunit.sh +.. [6] https://github.com/awslabs/damon-tests/tree/master/corr +.. [7] https://github.com/awslabs/damon-tests/tree/master/perf From patchwork Tue Jan 10 19:03:58 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: SeongJae Park X-Patchwork-Id: 41598 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a5d:4e01:0:0:0:0:0 with SMTP id p1csp2920064wrt; Tue, 10 Jan 2023 11:05:50 -0800 (PST) X-Google-Smtp-Source: AMrXdXuC04nLKU7s6AUIYhhl6fW2fkfObV8NJvvv4fQ+pSsn5a6FyO08QjpDNPQoYEXKLxF8dEf0 X-Received: by 2002:a17:907:8c81:b0:7c1:962e:cf28 with SMTP id td1-20020a1709078c8100b007c1962ecf28mr62661337ejc.23.1673377550383; Tue, 10 Jan 2023 11:05:50 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1673377550; cv=none; d=google.com; s=arc-20160816; b=WB/mN+R32fb0HVLJbH4FOABWnvGnOQ04p2/RNxPE8ZR8r8U8PzYyoVR3IJc05nUeUW XUsrj7hEO1VxLZ8DKDeH5AlLtTYofMrzOaPHH1S/+89lyPTGeo7FyJn1q2snTwoiGUqY J0LQ2ErhIJ4W1oJmPdsNlsL9jJr3yOQ9dXUQ87R6FFaVPGBJsFjBZHLSO6YVctMSXMlY LDdoqvMjGMna6dFpflTecFo+rxRDv7MIg0BB6At/v2dYwUODF9YFhnTuzW7pz6iCrDl/ fHOOA4+IZKJENvWHSkam+KHHi8pOy6YL0PgzvxjA8wX7n69166Py13CR1wcNmz+uWdQU MpeQ== 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 :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=n4YkbkmJYKXx+/xStZbwyd8HHtX+FJ4Ev8rp2gE/eHI=; b=Air8/o60sHZOQE8e0OgjMvTyok8YcB7o/IDiHcSyDZiQ4KN4IGSH7w4wjtUq7X5bfL TjIMSgc4q4WInQXlSjntAGTiSGwMgEfQejvydwH/2klPhtydAI5eiQIrm3CGhSfny5sD RlB0VlZCbtdmbwwxQS3na+/s3h1+xjrgno2fycg7Je6r/B6+LpmnDi4kTB+2uKAq5WPh wVjG8pqnIfq+6ukJ4YVVLnOIl+J38llbRGBaG4ryTmuwAwL63ey/NX8gp2folKNvQ4+a 2y22tMtNv3PpQYhF9ZHdhhE4MBI6AGpBLht/XWE5nPfSAUqxGPkdeXuD+6PRpP+U8NNd sEmQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=fw8T8JX5; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 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 out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id ga10-20020a1709070c0a00b0084d7c9a5e5esi5010165ejc.101.2023.01.10.11.05.25; Tue, 10 Jan 2023 11:05:50 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=fw8T8JX5; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S239827AbjAJTFJ (ORCPT + 99 others); Tue, 10 Jan 2023 14:05:09 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:47128 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S239669AbjAJTEL (ORCPT ); Tue, 10 Jan 2023 14:04:11 -0500 Received: from ams.source.kernel.org (ams.source.kernel.org [145.40.68.75]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 150F3C2C for ; Tue, 10 Jan 2023 11:04:11 -0800 (PST) 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 C47E3B8197A for ; Tue, 10 Jan 2023 19:04:09 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 235EAC433D2; Tue, 10 Jan 2023 19:04:08 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1673377448; bh=yhlx99wApZuf1+oxV+tS5tr85ZKJgTLb2t8Dhjj3q6I=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=fw8T8JX5qowhaM7imY0QxW2TLNYGjTeDjVNkpnJQmEbxf5CNLt8o+rYHK3k4Db4Ct JdhmGxrvKh46Iz1btrYZ2FRwg6N3qPm9NMLs8Ocpt7517+bN7F4lVHnKks+XUAqqsk f/2Tas3X/hU7xq+zQwB5Hj76Z6YB4voWxzE+Ql6Hbcytnpo4Qt6IWBimgn+D0cxp/4 ijA/gPb95yECvGpimIHZChLCYtAfHO59f1Hyh+cvixYJyYwUWlM/W4e2JX54hUXYL6 cWm5irf5P0+fa+F7BOltbdvyueoCHNnKyEtHSkMGWBFwM+4mMSf/F/L9Ln4J/tzmoP EYy2wqxHACKIA== From: SeongJae Park To: Andrew Morton Cc: SeongJae Park , damon@lists.linux.dev, linux-mm@kvack.org, linux-kernel@vger.kernel.org Subject: [PATCH 6/8] MAINTAINERS/DAMON: link maintainer profile, git trees, and website Date: Tue, 10 Jan 2023 19:03:58 +0000 Message-Id: <20230110190400.119388-7-sj@kernel.org> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20230110190400.119388-1-sj@kernel.org> References: <20230110190400.119388-1-sj@kernel.org> MIME-Version: 1.0 X-Spam-Status: No, score=-7.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_HI, SPF_HELO_NONE,SPF_PASS autolearn=ham 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 X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1754663538454723114?= X-GMAIL-MSGID: =?utf-8?q?1754663538454723114?= Add links to below DAMON development related resource to DAMON section in MAINTAINERS file. - The basic policies and expectations of DAMON development, - DAMON development trees, and - DAMON introduction website. Signed-off-by: SeongJae Park --- MAINTAINERS | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/MAINTAINERS b/MAINTAINERS index 9a0c3d3b9093..4b222f67663a 100644 --- a/MAINTAINERS +++ b/MAINTAINERS @@ -5790,6 +5790,11 @@ M: SeongJae Park L: damon@lists.linux.dev L: linux-mm@kvack.org S: Maintained +W: https://damonitor.github.io +P: Documentation/mm/damon/maintainer-profile.rst +T: git git://git.kernel.org/pub/scm/linux/kernel/git/akpm/mm +T: quilt git://git.kernel.org/pub/scm/linux/kernel/git/akpm/25-new +T: git git://git.kernel.org/pub/scm/linux/kernel/git/sj/linux.git damon/next F: Documentation/ABI/testing/sysfs-kernel-mm-damon F: Documentation/admin-guide/mm/damon/ F: Documentation/mm/damon/ From patchwork Tue Jan 10 19:03:59 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: SeongJae Park X-Patchwork-Id: 41596 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a5d:4e01:0:0:0:0:0 with SMTP id p1csp2919929wrt; Tue, 10 Jan 2023 11:05:37 -0800 (PST) X-Google-Smtp-Source: AMrXdXudJCOw4MxF5Sv4LINw4kaWnL3QHRgGB9mEK1xVtKLj1+z9me8kS8I/4LmbY6Z2WJHAvx7i X-Received: by 2002:a05:6402:34f:b0:475:b13b:7d78 with SMTP id r15-20020a056402034f00b00475b13b7d78mr60915314edw.39.1673377537629; Tue, 10 Jan 2023 11:05:37 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1673377537; cv=none; d=google.com; s=arc-20160816; b=yq45SJBQt//H4xVTEM5oCZq7PxazqUjDBvLCZMGLrMJcfEilGdy60t5Cor6oqPV9Bt l+2pATmp+E4vcuNXpPC6K9oaHcds7Iu83g4HQslA8flRIM8zuIsM8+jInIMGrgHcb5SN CDryMBzK0f0DYk9vta5bAa504d0qmptwGi3w6vWfz+a1enEaWbBoJMvmxS90czrFQbEG FoVOVhEV6FEoiSeuc7RXd9LZzKLMfSUlZNK5Z6+BySRLjlZgOVKcTzN4BIh29BC6ne+w zqUQf/StCKoW7xwH4Mp9T4bV6srAWjwVhS0+1jRN5sr/O+06BMTvgW5rEV+3lRu6VEL5 paHg== 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 :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=6fUSXwr/qwssl75csLQnQRRWYjXCuYvIVz3T6VfeWPQ=; b=YysYvWU5Tbl7vrMaCwBB496YI4czKSNIvrsu15/k1Ab0k8pZRn8VWysnaXLxmniWbB avmMEcBNckVF9V7/wj0se5GzbrmlFLmhI0UdK0UxGZ0G5RMXua7rcg6fBvP6qayX6Uf2 Bk+p3ELHDSFFI5xt5Q4mSjUzmerj9Qw4kM937vKNClA4oobyHhZepftEVwKRY1SfPkLp pj+mhPWsBEJF3iZmLTn4A7B12XJiOQNDsi7SikoN2biehlkern7ayICAM06fjsbqor44 zgrWoYDj8a8SLWR+nBHaXVi4TTW8J89w15ATigy6E3qe0xP3gCBwR/m2DjLwSIEQ3U80 jl7w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=CLZxihBA; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 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 out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id m23-20020aa7d357000000b0046bce131279si10966643edr.13.2023.01.10.11.05.13; Tue, 10 Jan 2023 11:05:37 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=CLZxihBA; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S239732AbjAJTEy (ORCPT + 99 others); Tue, 10 Jan 2023 14:04:54 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:47114 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S239667AbjAJTEK (ORCPT ); Tue, 10 Jan 2023 14:04:10 -0500 Received: from dfw.source.kernel.org (dfw.source.kernel.org [139.178.84.217]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 486C913E90; Tue, 10 Jan 2023 11:04:10 -0800 (PST) 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 C3A93618A8; Tue, 10 Jan 2023 19:04:09 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id B1CDBC43396; Tue, 10 Jan 2023 19:04:08 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1673377449; bh=y7EJfcMY/StD0BzUoTQruwXSI1p0oqW6ITb/hdOvcrQ=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=CLZxihBAiJLZVfs0Gql2wf2QPPpAjOoIvVTvC1iFyj15MBftu/CkfH34Vda0M8H6A LVdNE4VpqvAcjUx/zCJtqza160cp3d50h7xIVoxs60At+V3fa0aN6iunDJ7NIIJT0Y uLELoRXyzQpaM/X4QQJzBSrER3vmzj0DSOzyhP+cmAqIO2ldcW1K5BrRXmvprqlOio kWJAaRkw33Y7Qb2FfE3pAkEjdB919Knkdv2dqXm3aJMFHqS3pmTEWyFN8SzIhwt0tx J9xaMoKq9Ad7/6vJKGdeOLKcMhTsN2yzZvnJLAmfSx3F+TGIGrmbMuIwiZejTfiXQw gS7Fy5LrDtfzw== From: SeongJae Park To: Andrew Morton Cc: SeongJae Park , Shuah Khan , damon@lists.linux.dev, linux-mm@kvack.org, linux-kselftest@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH 7/8] selftests/damon/sysfs: hide expected write failures Date: Tue, 10 Jan 2023 19:03:59 +0000 Message-Id: <20230110190400.119388-8-sj@kernel.org> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20230110190400.119388-1-sj@kernel.org> References: <20230110190400.119388-1-sj@kernel.org> MIME-Version: 1.0 X-Spam-Status: No, score=-7.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_HI, SPF_HELO_NONE,SPF_PASS autolearn=ham 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 X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1754663525135264911?= X-GMAIL-MSGID: =?utf-8?q?1754663525135264911?= DAMON selftests for sysfs (sysfs.sh) tests if some writes to DAMON sysfs interface files fails as expected. It makes the test results noisy with the failure error message because it tests a number of such failures. Redirect the expected failure error messages to /dev/null to make the results clean. Signed-off-by: SeongJae Park --- tools/testing/selftests/damon/sysfs.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/testing/selftests/damon/sysfs.sh b/tools/testing/selftests/damon/sysfs.sh index a00336ffdcad..bcd4734ca094 100644 --- a/tools/testing/selftests/damon/sysfs.sh +++ b/tools/testing/selftests/damon/sysfs.sh @@ -24,7 +24,7 @@ ensure_write_fail() content=$2 reason=$3 - if echo "$content" > "$file" + if (echo "$content" > "$file") 2> /dev/null then echo "writing $content to $file succeed ($fail_reason)" echo "expected failure because $reason" From patchwork Tue Jan 10 19:04:00 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: SeongJae Park X-Patchwork-Id: 41601 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a5d:4e01:0:0:0:0:0 with SMTP id p1csp2920845wrt; Tue, 10 Jan 2023 11:07:11 -0800 (PST) X-Google-Smtp-Source: AMrXdXvE6IML4yJ7PRu35iv6pjWFkGrn/ViDVaqt3JF+53ILsXrFAahSAiTQ++P3xv3AYLdy1KVW X-Received: by 2002:aa7:c911:0:b0:48d:4504:32ed with SMTP id b17-20020aa7c911000000b0048d450432edmr28426658edt.37.1673377631732; Tue, 10 Jan 2023 11:07:11 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1673377631; cv=none; d=google.com; s=arc-20160816; b=ne9tlNw1EQeD9TsZ9UyIdZWG86R9aJAM1O1qDRzBMMDnHvBdPSMmGTZiFqhMv68+WG 6uI8B1O3o8ctTaojJIZMZqI3Mo+sbqogtB1aGr1QpOmSjpd34blH3FYRnGIcJeRWZxBw wvWCCRsFZDNg6bUiGY5QQokPzToGm6QWdcPRdvEiE2aoCeDPxBI1neYwG/iXLF2FmvqE MQFKFpQdt/HwXP3x7mpnXyZzplWl3zrmQ5RVEXOtx0P1YcTbMC6cDC1vLmjmDuigkUvY AJMHxUPSK3dllWrBaflnDZBm3Q1n4Xf0qqbn8cTJ7n/658wOZ0PVDZcnEeDlXKpF/EBW 93cw== 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 :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=ohcizMosvyz07ez5rD62w8hpDZjo4u+SDslTu1Zy6sg=; b=dlw00ZaR2FWwncJagNx492thx5rR8/Qaq2NlffCGHBb0tzudoRnaUxOt3tRJE8NO8A ujKNdnpXw8TSPEaoPrqY+NY+9xECTzM4iapXLL9Q7qiwOuDAcq7GRR8vmG9eqTQKlLji wv0tt1NSgF68CmnoKAEm/BHA6wOvncz9Z/d5x8JVtRBxmzyIQLKSHxDr+XkRL+dChWHq L/a8TwjgZWIxhDDGHVfsZ57VqrMFZouRypheLaFN2o4FANonPmEyihrfX0aRdqsybmfy bW2rko3iF4dowSRvUMmwyQ6/pSmAFmujiBew+prHed1/ONgX9qrV7gfBeyCL3B+IW/Fd 2bBQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=k9iw2rZ6; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 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 out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id l18-20020a056402255200b004683b475587si14945746edb.274.2023.01.10.11.06.47; Tue, 10 Jan 2023 11:07:11 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=k9iw2rZ6; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S239695AbjAJTFW (ORCPT + 99 others); Tue, 10 Jan 2023 14:05:22 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:47150 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S239679AbjAJTEO (ORCPT ); Tue, 10 Jan 2023 14:04:14 -0500 Received: from sin.source.kernel.org (sin.source.kernel.org [IPv6:2604:1380:40e1:4800::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 68AAAC2C; Tue, 10 Jan 2023 11:04:13 -0800 (PST) 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 sin.source.kernel.org (Postfix) with ESMTPS id B4C0BCE18D7; Tue, 10 Jan 2023 19:04:11 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 6BBFCC433F0; Tue, 10 Jan 2023 19:04:09 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1673377449; bh=CjhxKTgVu+lPp4HMYYUYnXVejaSmINVAMJdDe1Xu9yw=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=k9iw2rZ6IgCzqVQBdYfz7/bh7pKhBy1FK+wxTqUl4jmsut3RCJjFMQ1iXDcc3yG3g ubQRNrcDKuML+gAAHhG/o2oIDoU0TNhHHsHQytYLNAHxwWHfHNvbtBi9ytfESI4MnH jphspOWxy3DGuZw7GJ9uRW1Vge4F5VWvuzH2dw3zS4uPT/Qm6JaveOZol+/Qmximra z0bItMD2PlFtwfc92SGvmZTfoLuPUjMbiUV5pdVgi64g2QU+GBFxkDLhZH8tCZZn/u 55l2ZlUFIEAZtEMyfMhDiv4kJAus9+cQjzHXnbUXQoiiYsN4VQZjLPdrXhoaGy9nkw puw4xPVZ3JB6Q== From: SeongJae Park To: Andrew Morton Cc: SeongJae Park , Shuah Khan , damon@lists.linux.dev, linux-mm@kvack.org, linux-kselftest@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH 8/8] selftests/damon/debugfs_rm_non_contexts: hide expected write error messages Date: Tue, 10 Jan 2023 19:04:00 +0000 Message-Id: <20230110190400.119388-9-sj@kernel.org> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20230110190400.119388-1-sj@kernel.org> References: <20230110190400.119388-1-sj@kernel.org> MIME-Version: 1.0 X-Spam-Status: No, score=-7.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_HI, SPF_HELO_NONE,SPF_PASS autolearn=ham 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 X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1754663623560312743?= X-GMAIL-MSGID: =?utf-8?q?1754663623560312743?= A selftest case for DAMON debugfs interface has a test for expected failure. To make the test output clean, hide the expected failure error message. Signed-off-by: SeongJae Park --- tools/testing/selftests/damon/debugfs_rm_non_contexts.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/testing/selftests/damon/debugfs_rm_non_contexts.sh b/tools/testing/selftests/damon/debugfs_rm_non_contexts.sh index 48b7af6b022c..f3ffeb1343cf 100644 --- a/tools/testing/selftests/damon/debugfs_rm_non_contexts.sh +++ b/tools/testing/selftests/damon/debugfs_rm_non_contexts.sh @@ -10,7 +10,7 @@ dmesg -C for file in "$DBGFS/"* do - echo "$(basename "$f")" > "$DBGFS/rm_contexts" + (echo "$(basename "$f")" > "$DBGFS/rm_contexts") &> /dev/null if dmesg | grep -q BUG then dmesg