From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-18.8 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, INCLUDES_CR_TRAILER,INCLUDES_PATCH,MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS, URIBL_BLOCKED,USER_AGENT_GIT autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 0092BC433DB for ; Wed, 23 Dec 2020 18:38:14 +0000 (UTC) Received: from kanga.kvack.org (kanga.kvack.org [205.233.56.17]) by mail.kernel.org (Postfix) with ESMTP id 8549A22262 for ; Wed, 23 Dec 2020 18:38:13 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 8549A22262 Authentication-Results: mail.kernel.org; dmarc=fail (p=quarantine dis=none) header.from=amazon.com Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=owner-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix) id 8FE4C8D0040; Wed, 23 Dec 2020 13:38:12 -0500 (EST) Received: by kanga.kvack.org (Postfix, from userid 40) id 8AFC98D0026; Wed, 23 Dec 2020 13:38:12 -0500 (EST) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 7C6098D0040; Wed, 23 Dec 2020 13:38:12 -0500 (EST) X-Delivered-To: linux-mm@kvack.org Received: from forelay.hostedemail.com (smtprelay0158.hostedemail.com [216.40.44.158]) by kanga.kvack.org (Postfix) with ESMTP id 68C3D8D0026 for ; Wed, 23 Dec 2020 13:38:12 -0500 (EST) Received: from smtpin07.hostedemail.com (10.5.19.251.rfc1918.com [10.5.19.251]) by forelay01.hostedemail.com (Postfix) with ESMTP id 2515B180AD820 for ; Wed, 23 Dec 2020 18:38:12 +0000 (UTC) X-FDA: 77625406824.07.unit45_47074fd2746a Received: from filter.hostedemail.com (10.5.16.251.rfc1918.com [10.5.16.251]) by smtpin07.hostedemail.com (Postfix) with ESMTP id 0D95E18045E87 for ; Wed, 23 Dec 2020 18:38:12 +0000 (UTC) X-HE-Tag: unit45_47074fd2746a X-Filterd-Recvd-Size: 4837 Received: from smtp-fw-6002.amazon.com (smtp-fw-6002.amazon.com [52.95.49.90]) by imf24.hostedemail.com (Postfix) with ESMTP for ; Wed, 23 Dec 2020 18:38:11 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=amazon.com; i=@amazon.com; q=dns/txt; s=amazon201209; t=1608748692; x=1640284692; h=from:to:cc:subject:date:message-id:in-reply-to: mime-version; bh=PMQG4qz/czIhu/3Vb66DfarbU9VPAw72RQIGHA4B6zU=; b=fhwD/BzEwauNt3V0+fS2UA9zcPEfqHN7w8jSJkwqbQILl+MfnZfc0QOn fT3aYxretWKUm6Z8PfyKn6a6e0GXfYTPD7YSXQhVZfFHpBf2wkVqr4N0l LmjBOqbh/HQIB+ZTU6+zU5EbmiaFjDpDgkqGFkBDUSD6K5JObXWpLUouE Y=; X-IronPort-AV: E=Sophos;i="5.78,442,1599523200"; d="scan'208";a="73319603" Received: from iad12-co-svc-p1-lb1-vlan2.amazon.com (HELO email-inbound-relay-1e-303d0b0e.us-east-1.amazon.com) ([10.43.8.2]) by smtp-border-fw-out-6002.iad6.amazon.com with ESMTP; 23 Dec 2020 18:38:04 +0000 Received: from EX13D31EUA001.ant.amazon.com (iad12-ws-svc-p26-lb9-vlan3.iad.amazon.com [10.40.163.38]) by email-inbound-relay-1e-303d0b0e.us-east-1.amazon.com (Postfix) with ESMTPS id 81C9BA1F19; Wed, 23 Dec 2020 18:37:52 +0000 (UTC) Received: from u3f2cd687b01c55.ant.amazon.com (10.43.160.66) by EX13D31EUA001.ant.amazon.com (10.43.165.15) with Microsoft SMTP Server (TLS) id 15.0.1497.2; Wed, 23 Dec 2020 18:37:35 +0000 From: SeongJae Park To: SeongJae Park CC: , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , Subject: Re: [PATCH v23 11/15] tools: Introduce a minimal user-space tool for DAMON Date: Wed, 23 Dec 2020 19:37:21 +0100 Message-ID: <20201223183721.8898-1-sjpark@amazon.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20201215115448.25633-12-sjpark@amazon.com> MIME-Version: 1.0 Content-Type: text/plain X-Originating-IP: [10.43.160.66] X-ClientProxiedBy: EX13D35UWB003.ant.amazon.com (10.43.161.65) To EX13D31EUA001.ant.amazon.com (10.43.165.15) 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: On Tue, 15 Dec 2020 12:54:44 +0100 SeongJae Park wrote: > From: SeongJae Park > > 'damon-dbgfs' provides simple user space interface for DAMON, but using > the interface for complex usages could require annoying repetitive > works. Writing a user space data access monitoring applications on top > of the debugfs interface and using the application would be better for > such complex cases. > > This commit introduces a reference implementation of such user space > application built on top of the debugfs interface, namely 'DAMon > Operator' (DAMO). It contains a shallow wrapper python script of the > debugfs interface and various visualization of the monitoring results > convenient user interface. > > Note that it is initially aimed to be used for minimal reference of the > 'damon-dbgfs' interface and for debugging of the DAMON itself. > > Signed-off-by: SeongJae Park > --- > tools/damon/.gitignore | 1 + > tools/damon/_damon.py | 130 ++++++++++++++ > tools/damon/_dist.py | 35 ++++ > tools/damon/_recfile.py | 23 +++ > tools/damon/bin2txt.py | 67 +++++++ > tools/damon/damo | 37 ++++ > tools/damon/heats.py | 362 ++++++++++++++++++++++++++++++++++++++ > tools/damon/nr_regions.py | 91 ++++++++++ > tools/damon/record.py | 135 ++++++++++++++ > tools/damon/report.py | 45 +++++ > tools/damon/wss.py | 100 +++++++++++ > 11 files changed, 1026 insertions(+) I will drop this patch from the next version of this patchset, because this is not the essential part but could only make the code review time consuming. I will post another DAMON RFC patchset for convenient user space usages including this and the perf integration.