Received: by 2002:a05:6a10:f347:0:0:0:0 with SMTP id d7csp6004484pxu; Wed, 23 Dec 2020 10:42:49 -0800 (PST) X-Google-Smtp-Source: ABdhPJy1PUdD3xvaSTxZxRUjyAnGbib4vUaNYuziADp2SxrNDq2r0N6h9dq6KLLKH82hH4a1hMgW X-Received: by 2002:a17:906:94cf:: with SMTP id d15mr24454687ejy.271.1608748969123; Wed, 23 Dec 2020 10:42:49 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1608748969; cv=none; d=google.com; s=arc-20160816; b=XsXXBVU9fPc2rSG1i3T85lG/zMGaDYirQ3VkmD33vHnRBJPs1w5q8JYc137Msq5dIR X+ukWsFEvMRyP7HUvxnFjhInGndoy7j1uneQ9Tho/Wq7FiGjulv+qIlBNvJE1tFgjr7d WUxnLjTopV1YHr0x0qCvHumR6JkNHZd3oxe4hKsyTNOBbXWt/2aK5QsNGUAEhf0SRWb3 jre258GHV6JrMREzcMF5pRtFk0FF1Chw1QuzC5Nx/3ZeyTeXM0Us+EUGo+gtbgMduX6h 63LScyxILU71t4CE/4SmR37YaRbo2Q24/XDKafcc/BtVbI4kZgLKKUfPVRwwgnnv7w1k g8DA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:in-reply-to:message-id:date:subject :cc:to:from:dkim-signature; bh=PMQG4qz/czIhu/3Vb66DfarbU9VPAw72RQIGHA4B6zU=; b=A3ZgZ9J1U+PeB25ieFMbiUifwOII2RITbU5C1wxP0Zaw6qBV1igfmksZzsONo+o+Ji GUyXRiBj952151hfC1lOaInd/5YDmCciAkKhAqztEIi3CgQuy+8RtSl7/Wds2xHX7SIo te0vDFn61+7xHC6v+yjV5y06HiryghLsBuAQnWzP0Hj+S/JaeWUiU7ZQJZhQLWtkDMWB yLoo3Wv9CQuyB9Y4He15MC2mRdy2lq6KlDzaEATVz8QeRwRyMcnboSAXOkC1163uTm/Y G9HoGrB6zKc5rznAFdywVNGfHuWc+q0UF4MaqI5fsKvVDt/gnbqTTUdNnsriUXny40ZN fKGA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@amazon.com header.s=amazon201209 header.b=fCYdRZh9; 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 fy24si12307295ejb.348.2020.12.23.10.42.26; Wed, 23 Dec 2020 10:42:49 -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=fCYdRZh9; 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 S1728280AbgLWSiw (ORCPT + 99 others); Wed, 23 Dec 2020 13:38:52 -0500 Received: from smtp-fw-6002.amazon.com ([52.95.49.90]:61521 "EHLO smtp-fw-6002.amazon.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727207AbgLWSiw (ORCPT ); Wed, 23 Dec 2020 13:38:52 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=amazon.com; i=@amazon.com; q=dns/txt; s=amazon201209; t=1608748732; x=1640284732; h=from:to:cc:subject:date:message-id:in-reply-to: mime-version; bh=PMQG4qz/czIhu/3Vb66DfarbU9VPAw72RQIGHA4B6zU=; b=fCYdRZh9d5cM3hF2hQNeZKPl/maSbdB3g3dOE2C9gClhmWUTAyKAITCM 0OHhiwiuhA354Vtj7Jxp3/Pt2YJyRIF2RCc220aGW4gzj5cbqMZ27M3TO zOR6Vvtq7UOZzqTSfzJscDVBVkGmmOSzHqCHx+LqR097A4tVBneqtDmaW c=; 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) Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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.