From patchwork Tue Jan 30 01:35:40 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: SeongJae Park X-Patchwork-Id: 13536655 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from kanga.kvack.org (kanga.kvack.org [205.233.56.17]) by smtp.lore.kernel.org (Postfix) with ESMTP id 5A9CCC47DA9 for ; Tue, 30 Jan 2024 01:36:01 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id D284E6B0085; Mon, 29 Jan 2024 20:36:00 -0500 (EST) Received: by kanga.kvack.org (Postfix, from userid 40) id CD83E6B008A; Mon, 29 Jan 2024 20:36:00 -0500 (EST) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id BA0BF6B0093; Mon, 29 Jan 2024 20:36:00 -0500 (EST) X-Delivered-To: linux-mm@kvack.org Received: from relay.hostedemail.com (smtprelay0010.hostedemail.com [216.40.44.10]) by kanga.kvack.org (Postfix) with ESMTP id A9A226B0085 for ; Mon, 29 Jan 2024 20:36:00 -0500 (EST) Received: from smtpin05.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay07.hostedemail.com (Postfix) with ESMTP id 7E242160AA9 for ; Tue, 30 Jan 2024 01:36:00 +0000 (UTC) X-FDA: 81734261280.05.273A27A Received: from dfw.source.kernel.org (dfw.source.kernel.org [139.178.84.217]) by imf03.hostedemail.com (Postfix) with ESMTP id DB66A20010 for ; Tue, 30 Jan 2024 01:35:58 +0000 (UTC) Authentication-Results: imf03.hostedemail.com; dkim=pass header.d=kernel.org header.s=k20201202 header.b=TyTGrLjQ; spf=pass (imf03.hostedemail.com: domain of sj@kernel.org designates 139.178.84.217 as permitted sender) smtp.mailfrom=sj@kernel.org; dmarc=pass (policy=none) header.from=kernel.org ARC-Seal: i=1; s=arc-20220608; d=hostedemail.com; t=1706578559; a=rsa-sha256; cv=none; b=zxoC3mr68w1RJJNWa3u2EDO2YIsBGSF1dNYYMCDqdxnvPYBuR8sWQ/bJcRgPhDfjYPuFNQ hyjxcInwq2W6LVb/WSKRQ/uCMXiOTgB4sA7kab/dNoQLpSRJRBTD+E1m3L32HdG+GjQI11 5EFdLvn2/tqbJJ4o1fBY4/vePWwf6yY= ARC-Authentication-Results: i=1; imf03.hostedemail.com; dkim=pass header.d=kernel.org header.s=k20201202 header.b=TyTGrLjQ; spf=pass (imf03.hostedemail.com: domain of sj@kernel.org designates 139.178.84.217 as permitted sender) smtp.mailfrom=sj@kernel.org; dmarc=pass (policy=none) header.from=kernel.org ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=hostedemail.com; s=arc-20220608; t=1706578559; h=from:from:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references:dkim-signature; bh=UzC8ulRKhx2TkCWNSpXrkL8CCPSSFTRwD3zm/bCozXE=; b=uYdpmTgDdeP/sX+N7QeIsuzQkxOMLbzlp+cXef14QRW+944Fe5OZ3dmdNu5N/Ng5KW7drh CIMs/sL3Dp8ItGBM6MgDvG17W6ySuRy58lqvJdzAHcXuoPyRZ6r45mEPPvS8gqFdHcGLGO Q56dJ/YQolWb+yet1AmiSE1eBGBh1ak= Received: from smtp.kernel.org (transwarp.subspace.kernel.org [100.75.92.58]) by dfw.source.kernel.org (Postfix) with ESMTP id F019B60693; Tue, 30 Jan 2024 01:35:57 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 2ADB8C43390; Tue, 30 Jan 2024 01:35:57 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1706578557; bh=77VtE5VeGNNpbwa0hrebctF5G9UJB4sc86yojoaICLY=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=TyTGrLjQCQhz8bD5mowo3BX2lOX8zP9+UFaUtGUfheU1Uga89bmlQqQelNt3gE8hy PauFBb9VoHKnGQDPacecP/BTTR1EEFJC3kkM57zEqm/y1HA5DXYwSiRz7BkD10BbAZ 4N5f0LVlsLMTdBmyHOQyegGstohPrML3/8mtPMvJuIa9a5AegAE33ILmxRSQtbJR8/ dHglWue96C9Z8l6orgyB+HDb8j8V1+P4e27BBR+IdlQpT3ItD4Gq9VOBQIhO5FvDs5 hK7URWQ03wLuU6J+N3oUBz+Kp7yAvXCYx4uPCzV2e887ccgqZn9cVhd3QcGqEmvk9t w0mJHW11Ao0Sg== 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 1/9] Docs/admin-guide/mm/damon/usage: use sysfs interface for tracepoints example Date: Mon, 29 Jan 2024 17:35:40 -0800 Message-Id: <20240130013549.89538-2-sj@kernel.org> X-Mailer: git-send-email 2.39.2 In-Reply-To: <20240130013549.89538-1-sj@kernel.org> References: <20240130013549.89538-1-sj@kernel.org> MIME-Version: 1.0 X-Rspamd-Server: rspam08 X-Rspamd-Queue-Id: DB66A20010 X-Stat-Signature: yche9co6j3m1fhnjsugtenzxektoy9ki X-Rspam-User: X-HE-Tag: 1706578558-589199 X-HE-Meta: U2FsdGVkX1/02eEJpWHOIA0vMMn3PimD3ZFS4pyYpwJtktDuCKMJb5WQHCYgk2f0jrYqCqTQhqF7f++ZKjqLs9BmaMczp8usHYl92y6Y0YxCThUGqRSmUFVSje4n69sT1ZReVZsjZX7Di6C7mqipGUKOQpIzMb7aXtyaNKghC5kY4V5U3ASQ4m7gx6kb0QbGle+i9QU4/LqmgYDHj606DWstRcNGHxUsShcBV1Gzp11WmbcOzQ72r421rfuwEOAEUO9HTQFDZHYImvwfu3kFjsESqprONUGBSrvnumVdl1soElsZj+jnHNo4M2jjwNEh6KdmPA/3r5haGemvHQMFqEs6hGYIdtWGv7YU+vahk3C8wCBSVRd7jcwMq8/+KdXQ+FWnkronFDk9eE0X9gXpvPdAzVZhGf63WGtnQd+TW7t+aLMu/BkT4UU7cxOTiy/DzEdzJWyzOffMO4JZfyEqNWgkUvau86W8s9mvHVO5+ONzv1Lagc6eWbZKa+AEL4/BstA4JTZ5AlRzUqOvzUCA2pXfeGJwbMCRDsQYNa3NhjQgcDrlfeg1lrMjTSNsLgbiTOiubZu8yR8meLLPRoq4IDX9M99h7/djE9OiZKzIOayhVjmROnw8OhFu6NsY9D0I5g8f2FxL97RZ09JAmeNwKUoOt5icJ2wBPF8r761k1W7W+EibzInXBRZERKz5D6ZzsAxtJij1qiRUvFhnq7uLw8AK17s5h6EUIddLwfwIwMBAHk1dJTs+Fz+oDir8DpeNEtZhLNfg+EHIxFaerXWu1gwh5fJJKPexfFF/rajMHUxKW6Jk/UxI+Qb1RkIJwqnlKtRpCJFEr954AY7COSK9w2wNSLLy60Db6EZYVGpJ098x+Pz8oRmVKgA9jhBzyU/l6+HmumI7aAfp9tf+SyLc06kUppscpG7MHeBeqQCgJqQdcqRkmJqQmx2+7ckJf9BxjgixpKIbSLot9szReSR d1+x2kVn Dd6bLas3ZrodwaH8TqAbjpjoxmbR2CzJFtY6HTR9mmas2Rd2YlpDX8AyLZBqGhlfqzMS5gB6KUd76ibYXparcE8f5jjR7u99BaGS+CFYypQ4x2zbUVLpMNQrwYXQInd5CHNaqvENILHxCMhDq/Tw6cy67RjLjPAwI6yZIqeIHGtaGVkr857JgbT5GN2HVfaTz7QyO717Q5+BCYa4+DF/LUU4arsv9xb7nN6yeMDI4qv2wIDQ= 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: List-Subscribe: List-Unsubscribe: DAMON tracepoints example on the DAMON usage document is using DAMON debugfs interface, which is deprecated. Use its alternative, DAMON sysfs interface. Signed-off-by: SeongJae Park --- Documentation/admin-guide/mm/damon/usage.rst | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Documentation/admin-guide/mm/damon/usage.rst b/Documentation/admin-guide/mm/damon/usage.rst index 9d23144bf985..f2feabb4bd35 100644 --- a/Documentation/admin-guide/mm/damon/usage.rst +++ b/Documentation/admin-guide/mm/damon/usage.rst @@ -579,11 +579,11 @@ monitoring results recording. While the monitoring is turned on, you could record the tracepoint events and show results using tracepoint supporting tools like ``perf``. For example:: - # echo on > monitor_on + # echo on > kdamonds/0/state # perf record -e damon:damon_aggregated & # sleep 5 # kill 9 $(pidof perf) - # echo off > monitor_on + # echo off > kdamonds/0/state # perf script kdamond.0 46568 [027] 79357.842179: damon:damon_aggregated: target_id=0 nr_regions=11 122509119488-135708762112: 0 864 [...]