Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp243299pxb; Wed, 24 Feb 2021 00:26:06 -0800 (PST) X-Google-Smtp-Source: ABdhPJzji2b3CFymhMc+Z323p3fmx6d+1iopH1+3yaWmXwD2k9waEWK4Sop5jW6V/v65JLH8z0ec X-Received: by 2002:a17:906:6d04:: with SMTP id m4mr17717046ejr.262.1614155166284; Wed, 24 Feb 2021 00:26:06 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1614155166; cv=none; d=google.com; s=arc-20160816; b=aKsHmF5QQZF7p8LZjz4aad0gpmHEj52Ydl8Z0hB1DzNK0hae0N0Mq+85FmtUHqm3Mj OGkNtxh4VQOILaCD9KympgZJL2VA76+fPt8bMtHvky93BGXQ6P7ZgOcCmK5DNCuhwi4W jR7z5xhkkJ4KKM3oIGxRT8g8eWFAtAiP3fATdQdlPUKR0ztDa6AvYc+pDiDrEMol+Gwl eLTqVXvfYTxT1XuvR71Lt7bDFlJXgA7wda3Fx+n+EyaEDt43gg/yI1c8HR/R0jUAfiP5 ce7AiDSXTEIlJd3dT5yWihW++DdCdtn0Y23Kl+hi5ii4uPu/e1vwmkxiU58mB00YwZg0 pcEA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to :mime-version:message-id:date:subject:cc:to:from:dkim-signature; bh=DXdAXbodLJFLCACHgM3UuUQ3p+oQUqas3URxarIcAkE=; b=ne+QJ4hV4bblx4hThJ3s2bqJ8+g0NMRngqh6zhRyj/54KhiM7p9T8PibD/MIKf95R8 mVmBqZCR9I3HKa/MtTcRfzV6eTD+IBQ6q9XFloxpl6E7TJji/6Fg9s/nMLo76SfrvMEu kA8Lfa2jgXwtgtEdeJJVi0zTBplTc7/WswP+eHLuCyW9qcZDTuZG8jU6s43XxhKi/RP7 lXyKE8ZcO3FJ2y80/5TV3GZnoIiYZFWFFiGb6hmC71SyAiApNN13XjeI+8pwoft0HUYf 409NW9Uua4HMlYHzTwUEFMoboForKWrwKcB88WOeIKTYU3mwC7bOHXFsMmQmsNXp/Mw8 oBFQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@amazon.com header.s=amazon201209 header.b=mMNdKlxa; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=amazon.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id m29si757458edb.412.2021.02.24.00.25.40; Wed, 24 Feb 2021 00:26:06 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@amazon.com header.s=amazon201209 header.b=mMNdKlxa; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=amazon.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233743AbhBXHvo (ORCPT + 99 others); Wed, 24 Feb 2021 02:51:44 -0500 Received: from smtp-fw-4101.amazon.com ([72.21.198.25]:36562 "EHLO smtp-fw-4101.amazon.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233695AbhBXHva (ORCPT ); Wed, 24 Feb 2021 02:51:30 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=amazon.com; i=@amazon.com; q=dns/txt; s=amazon201209; t=1614153089; x=1645689089; h=from:to:cc:subject:date:message-id:mime-version: in-reply-to:content-transfer-encoding; bh=DXdAXbodLJFLCACHgM3UuUQ3p+oQUqas3URxarIcAkE=; b=mMNdKlxaExpMO2Ctz9N/56LPn07ocvRLGHt9HEAignd8c04/yX89lIHG DmWuQZcVvWyO3H7nVK+jlsT2L0X5d80wSGdcErxnEC85eifAkkt+Y6iwd RxzKjoqHemv4Mi1Ho/UAWTvHc0iuwQm52IXG6hDoMKm/KCFc4RZeHFHgW I=; X-IronPort-AV: E=Sophos;i="5.81,202,1610409600"; d="scan'208";a="87490840" Received: from iad12-co-svc-p1-lb1-vlan2.amazon.com (HELO email-inbound-relay-2b-81e76b79.us-west-2.amazon.com) ([10.43.8.2]) by smtp-border-fw-out-4101.iad4.amazon.com with ESMTP; 24 Feb 2021 07:50:35 +0000 Received: from EX13D31EUA001.ant.amazon.com (pdx1-ws-svc-p6-lb9-vlan3.pdx.amazon.com [10.236.137.198]) by email-inbound-relay-2b-81e76b79.us-west-2.amazon.com (Postfix) with ESMTPS id 8B170A1C18; Wed, 24 Feb 2021 07:50:32 +0000 (UTC) Received: from u3f2cd687b01c55.ant.amazon.com (10.43.162.228) by EX13D31EUA001.ant.amazon.com (10.43.165.15) with Microsoft SMTP Server (TLS) id 15.0.1497.2; Wed, 24 Feb 2021 07:50:14 +0000 From: SeongJae Park To: SeongJae Park CC: , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , Subject: Re: [PATCH v24 11/14] Documentation: Add documents for DAMON Date: Wed, 24 Feb 2021 08:49:55 +0100 Message-ID: <20210224074955.20173-1-sjpark@amazon.com> X-Mailer: git-send-email 2.17.1 MIME-Version: 1.0 In-Reply-To: <20210204153150.15948-12-sjpark@amazon.com> Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 8bit X-Originating-IP: [10.43.162.228] X-ClientProxiedBy: EX13D21UWA003.ant.amazon.com (10.43.160.184) To EX13D31EUA001.ant.amazon.com (10.43.165.15) Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, 4 Feb 2021 16:31:47 +0100 SeongJae Park wrote: > From: SeongJae Park > > This commit adds documents for DAMON under > `Documentation/admin-guide/mm/damon/` and `Documentation/vm/damon/`. > > Signed-off-by: SeongJae Park > --- > Documentation/admin-guide/mm/damon/guide.rst | 159 ++++++++++ > Documentation/admin-guide/mm/damon/index.rst | 15 + > Documentation/admin-guide/mm/damon/plans.rst | 29 ++ > Documentation/admin-guide/mm/damon/start.rst | 97 ++++++ > Documentation/admin-guide/mm/damon/usage.rst | 304 +++++++++++++++++++ > Documentation/admin-guide/mm/index.rst | 1 + > Documentation/vm/damon/api.rst | 20 ++ > Documentation/vm/damon/design.rst | 166 ++++++++++ > Documentation/vm/damon/eval.rst | 232 ++++++++++++++ > Documentation/vm/damon/faq.rst | 58 ++++ > Documentation/vm/damon/index.rst | 31 ++ > Documentation/vm/index.rst | 1 + > 12 files changed, 1113 insertions(+) > create mode 100644 Documentation/admin-guide/mm/damon/guide.rst > create mode 100644 Documentation/admin-guide/mm/damon/index.rst > create mode 100644 Documentation/admin-guide/mm/damon/plans.rst > create mode 100644 Documentation/admin-guide/mm/damon/start.rst > create mode 100644 Documentation/admin-guide/mm/damon/usage.rst > create mode 100644 Documentation/vm/damon/api.rst > create mode 100644 Documentation/vm/damon/design.rst > create mode 100644 Documentation/vm/damon/eval.rst > create mode 100644 Documentation/vm/damon/faq.rst > create mode 100644 Documentation/vm/damon/index.rst > [...] > diff --git a/Documentation/admin-guide/mm/damon/usage.rst b/Documentation/admin-guide/mm/damon/usage.rst > new file mode 100644 > index 000000000000..32436cf853c7 > --- /dev/null > +++ b/Documentation/admin-guide/mm/damon/usage.rst > @@ -0,0 +1,304 @@ > +.. SPDX-License-Identifier: GPL-2.0 > + > +=============== > +Detailed Usages > +=============== > + > +DAMON provides below three interfaces for different users. > + > +- *DAMON user space tool.* > + This is for privileged people such as system administrators who want a > + just-working human-friendly interface. Using this, users can use the DAMON’s > + major features in a human-friendly way. It may not be highly tuned for > + special cases, though. It supports only virtual address spaces monitoring. > +- *debugfs interface.* > + This is for privileged user space programmers who want more optimized use of > + DAMON. Using this, users can use DAMON’s major features by reading > + from and writing to special debugfs files. Therefore, you can write and use > + your personalized DAMON debugfs wrapper programs that reads/writes the > + debugfs files instead of you. The DAMON user space tool is also a reference > + implementation of such programs. It supports only virtual address spaces > + monitoring. > +- *Kernel Space Programming Interface.* > + This is for kernel space programmers. Using this, users can utilize every > + feature of DAMON most flexibly and efficiently by writing kernel space > + DAMON application programs for you. You can even extend DAMON for various > + address spaces. > + > +This document does not describe the kernel space programming interface in > +detail. For that, please refer to the :doc:`/vm/damon/api`. > + > + > +DAMON User Space Tool > +===================== This version of the patchset doesn't introduce the user space tool source code, so putting the detailed usage here might make no sense. I will remove this section in the next version. If you will review this patch, please skip this section. [...] > + > +debugfs Interface > +================= But, this section will not be removed. Please review. [...] Thanks, SeongJae Park